/* ============================================================
   LYLA JEWELRY - CONTACT PAGE
   Contact form and private viewing booking
   ============================================================ */

/* ==================== MEDIA QUERY BREAKPOINTS ====================
   Large Desktop: 1440px+
   Desktop:       1025px - 1439px (default base styles)
   Tablet:        768px - 1024px
   Large Mobile:  481px - 767px  
   Mobile:        max-width: 480px
   ============================================================ */

/* ==================== BASE STYLES (Desktop 1025px-1439px) ==================== */

/* Contact Section */
.contact-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: white;
    font-family: 'Avenir', sans-serif;
    color: black;
    min-height: 100vh;
}

/* Background Image */
.contact-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-div-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Contact Container */
.contact-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 120px 40px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

/* Left Side - Contact Info */
.contact-info-side {
    width: 50%;
}

.contact-main-title {
    font-size: 50px;
    font-weight: 500;
    line-height: 110%;
    margin-top: 10px;
    margin-bottom: 8rem;
    width: 84%;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-item h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 128%;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 14px;
    opacity: 90%;
    margin: 3px 0;
}

/* Social Icons */
.icon-img-wrapper-contact {
    width: 35px;
    height: 35px;
    background: #ddd;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-img-wrapper-contact:hover {
    border-color: #fff;
    background: #ddd;
}

.contact-social {
    display: flex;
    gap: 4px;
    margin-top: 15px;
}

.info-item img {
    width: 14px;
    height: 14px;
    opacity: 100%;
    -webkit-filter: invert(1);
}

/* Form Card */
.contact-form-card {
    background: #eee;
    backdrop-filter: blur(30px);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #eee;
    width: 600px;
    min-height: 650px;
}

.form-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 30px;
    padding-top: 20px;
    color: #000;
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    padding-bottom: 8px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: black;
    opacity: 0.8;
    margin-bottom: 5px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #000;
    outline: none;
    font-family: 'Avenir', sans-serif;
    font-size: 15px;
    padding: 5px 0;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.input-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Custom Select */
.custom-select {
    width: 100%;
    background: transparent;
    border: none;
    color: rgb(0, 0, 0);
    padding: 5px 0;
    outline: none;
    font-family: 'Avenir', sans-serif;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 15px;
}

.custom-select option {
    background: #000;
    color: #000;
}

/* Form Row (side by side inputs) */
.form-row-mobile {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-row-mobile .input-group {
    width: 50%;
    margin-bottom: 50px;
}

.half-width {
    flex: 1;
}

/* Send Button */
.send-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid rgb(0, 0, 0);
    color: rgb(0, 0, 0);
    padding: 12px 35px;
    cursor: pointer;
    font-family: 'Avenir', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: rgb(0, 0, 0);
    color: white;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Display Control */
.mobile-form-only {
    display: none;
}

.desktop-form-only {
    display: block;
}

/* ==================== Date Picker ====================
   The trigger is intentionally styled to mirror .custom-select so the
   field looks identical to the original date dropdown. Clicking it
   opens an absolutely-positioned calendar popover instead of a native
   list of dates. */
.date-picker {
    position: relative;
    width: 100%;
    font-family: 'Avenir', sans-serif;
}

.dp-trigger {
    width: 100%;
    background: transparent;
    border: none;
    color: #000;
    padding: 5px 0;
    outline: none;
    font-family: 'Avenir', sans-serif;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.dp-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-trigger-text.dp-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.dp-caret {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.date-picker.is-open .dp-caret {
    transform: rotate(180deg);
}

/* Floating calendar */
.dp-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    width: 280px;
    max-width: 90vw;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: 'Avenir', sans-serif;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dp-month {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.dp-nav {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.4);
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Avenir', sans-serif;
    padding: 0;
}

.dp-nav:hover:not(:disabled) {
    background: #000;
    color: #fff;
    border-color: #000;
}

.dp-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-weekday {
    font-size: 10px;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 0;
    font-weight: 500;
}

.dp-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 50%;
    font-family: 'Avenir', sans-serif;
    color: #000;
    transition: all 0.15s ease;
    padding: 0;
}

.dp-cell.dp-empty {
    cursor: default;
}

.dp-day:not(.dp-disabled):hover {
    border-color: #000;
}

.dp-disabled {
    color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.dp-today:not(.dp-selected) {
    font-weight: 600;
    border-color: rgba(0, 0, 0, 0.25);
}

.dp-selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Mobile: keep popover within viewport */
@media (max-width: 480px) {
    .dp-popover {
        width: 260px;
        padding: 12px;
    }
}

/* ==================== Booking Success Card ====================
   Replaces the form inside .contact-form-card after a successful
   submission. Same Avenir / black-on-cream aesthetic as the form. */
.booking-success {
    text-align: center;
    padding: 30px 10px;
    /* Fill the form card so the message sits centered vertically. The
       card has min-height: 650px and ~40px top/bottom padding, leaving
       ~570px of inner space — match that minus a little breathing room. */
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: bookingSuccessIn 0.4s ease;
}

@keyframes bookingSuccessIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booking-success-icon {
    color: #000;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.booking-success-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 14px;
    color: #000;
    letter-spacing: 0.5px;
}

.booking-success-text {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.booking-success-text strong {
    color: #000;
    font-weight: 600;
}

.booking-success-again {
    /* inherits .send-btn styling */
    margin-top: 0;
}

/* ==================== LARGE DESKTOP: 1440px+ ==================== */
@media (min-width: 1440px) {
    .contact-container {
        padding: 140px 60px;
        gap: 80px;
    }

    .contact-main-title {
        font-size: 50px;
    }

    .contact-form-card {
        width: 700px;
        height: 700px;
        padding: 50px;
    }

    .form-title {
        font-size: 45px;
    }
}

/* ==================== TABLET: 768px - 1024px ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .desktop-form-only {
        display: none !important;
    }

    .mobile-form-only {
        display: block !important;
        width: 100%;
        background: none !important;
        border: none !important;
        padding: 0;
    }

    .contact-container {
        flex-direction: column;
        padding: 80px 40px;
    }

    .contact-image-wrapper {
        height: 450px;
    }

    .contact-info-side {
        width: 65%;
        margin-top: 40px;
    }

    .contact-main-title {
        font-size: 40px;
        margin-bottom: 3rem;
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
        margin-bottom: 50px;
    }

    .contact-form-card {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        background: #000000;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: none;
    }

    .form-title {
        font-size: 32px;
        margin-bottom: 3rem;
    }
}

/* ==================== LARGE MOBILE: 481px - 767px ==================== */
@media (min-width: 481px) and (max-width: 767px) {
    .contact-info-side{
        display: none;
    }
    .desktop-form-only {
        display: none !important;
    }

    .mobile-form-only {
        display: block !important;
        width: 100%;
        background: none !important;
        border: none !important;
        padding: 0;
    }

    .contact-container {
        flex-direction: column;
        padding: 60px 20px;
    }

    .contact-image-wrapper {
        height: 450px;
    }

    .contact-info-side {
        width: 75%;
        margin-top: 40px;
    }

    .contact-main-title {
        font-size: 35px;
        margin-bottom: 3rem;
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
        margin-bottom: 50px;
    }

    .info-item h3 {
        font-size: 15px;
    }

    .info-item p {
        font-size: 13px;
    }

    .contact-form-card {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        background: #000000;
        border: 1px solid rgba(0, 0, 0, 0.1);
        backdrop-filter: none;
    }

    .form-title {
        font-size: 28px;
        margin-bottom: 3rem;
    }

    .form-row-mobile .send-btn {
        width: 100px;
        padding: 15px;
    }
}

/* ==================== MOBILE: ≤480px ==================== */
@media (max-width: 480px) {
    .contact-info-side{
        display: none;
    }
    .desktop-form-only {
        display: none !important;
    }

    .mobile-form-only {
        display: block !important;
        width: 100%;
        background: none !important;
        border: none !important;
        padding: 0;
    }

    .contact-container {
        flex-direction: column;
        padding: 40px 20px;
    }

    .contact-image-wrapper {
        height: 500px;
    }

    .contact-info-side {
        width: 85%;
        margin-top: 40px;
    }

    .contact-main-title {
        font-size: 31px;
        margin-bottom: 3rem;
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
        margin-bottom: 50px;
    }

    .info-item h3 {
        font-size: 14px;
    }

    .info-item p {
        font-size: 12px;
    }

    .icon-img-wrapper-contact {
        width: 30px;
        height: 30px;
    }

    .info-item img {
        width: 12px;
        height: 12px;
    }

    .contact-form-card {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        background: #000000;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: none;
    }

    .form-title {
        font-size: 28px;
        margin-bottom: 3rem;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-group label {
        font-size: 13px;
    }

    .input-group input,
    .input-group textarea {
        font-size: 14px;
    }

    .form-row-mobile .send-btn {
        width: 100%;
        padding: 15px;
    }

    .send-btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 14px;
    }
}
