/* ============================================
   CONTACT US SECTION - Version 1.0
   ============================================ */

.contact-us-section {
    padding: 0 120px;
    margin: 0 auto;
    color: #ffffff;
}

.contact-us-wrapper {
    background-color: #005b68;
    border-radius: 40px;
    padding: 40px 64px;
    margin: 0 auto;
    max-width: 1200px;
}

.contact-us-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.contact-header {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-text-content {
    flex: 1;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-title {
    font-family: 'IvyOra Display', serif;
    font-size: 32px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0;
}

.contact-title .italic {
    font-weight: 500;
    font-style: italic;
}

.contact-description {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: normal;
    letter-spacing: 0;
}

.contact-description p {
    color: #ffffff;
    margin: 0 0 16px 0;
}

.contact-description p:last-child {
    margin-bottom: 0;
}

.contact-header-image {
    flex-shrink: 0;
    width: 393px;
    height: 255px;
    border-radius: 24px 24px 200px 24px;
    overflow: hidden;
}

.contact-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ============================================
   MAIN SECTION
   ============================================ */

.contact-main-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-section-heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-subtitle {
    font-family: 'IvyOra Display', serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0;
}

.contact-subtitle .italic {
    font-weight: 500;
    font-style: italic;
}

.contact-subtext {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0;
    max-width: 530px;
}

/* ============================================
   CONTACT CONTENT (Form + Calendar)
   ============================================ */

.contact-content {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* Form Container */
.contact-form-container {
    flex: 1;
    border: 1px solid #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Title - Desktop only */
.form-title {
    color: #ffffff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 4px 0;
}

/* Form Rows - Two Column Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 41.58px;
    padding: 12px 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #403936;
    line-height: normal;
    letter-spacing: 0;
    outline: none;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
    color: #403936;
}

.form-textarea {
    border-radius: 16.632px;
    resize: vertical;
    min-height: 187px;
    padding: 16px;
}

/* Select Wrapper */
.form-select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.form-select-wrapper.open .select-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown List - Hidden by default */
.dropdown-list {
    display: none;
}

/* Submit Button */
.contact-submit-btn {
    cursor: pointer;
    text-align: center;
    width: auto;
    align-self: flex-start;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 1200px)
   ============================================ */

@media (max-width: 1200px) {
    .contact-us-section {
        padding: 0 60px;
    }

    .contact-header {
        gap: 32px;
    }

    .contact-text-content {
        min-width: 300px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-subtitle {
        font-size: 24px;
    }

    .contact-header-image {
        width: 340px;
        height: 220px;
        /* border-radius: 20px 20px 20px 150px; */
    }

    .contact-content {
        min-height: auto;
    }
}

/* ============================================
   RESPONSIVE - BELOW 1200px (Stack Form & Calendar)
   ============================================ */

@media (max-width: 1200px) {
    .contact-content {
        flex-direction: column;
        gap: 24px;
    }

    .contact-form-container {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (<768px)
   ============================================ */

@media (max-width: 767px) {
    .contact-us-section {
        padding: 0 24px;
        border-radius: 40px;
    }

    .contact-us-wrapper {
        padding: 40px 16px;
    }

    .contact-us-container {
        gap: 48px;
    }

    .contact-header {
        flex-direction: column;
        gap: 16px;
    }

    .contact-text-content {
        min-width: 100%;
        gap: 16px;
    }

    .contact-title {
        font-size: 24px;
        font-weight: 500;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-header-image {
        width: 100%;
        height: 253px;
        border-radius: 9.939px 9.939px 124.238px 9.939px;
    }

    .contact-main-section {
        gap: 24px;
    }

    .contact-section-heading {
        gap: 16px;
    }

    .contact-subtitle {
        font-size: 16px;
        font-weight: 700;
        font-style: italic;
    }

    .contact-subtext {
        font-size: 16px;
        max-width: 100%;
    }

    .contact-content {
        flex-direction: column;
        gap: 24px;
        min-height: auto;
    }

    .contact-form-container {
        padding: 16px;
        border-radius: 18px;
    }

    .contact-form {
        gap: 20px;
    }

    /* Form Rows - Stack on Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-input,
    .form-select {
        font-size: 16px;
        padding: 10px 16px;
        height: 41.58px;
    }

    .form-textarea {
        min-height: 95.635px;
        font-size: 16px;
    }

    /* Hide form title on mobile */
    .form-title {
        display: none;
    }
}

/* ============================================
   CONTACT SUCCESS MODAL
   ============================================ */

.cf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cf-modal-overlay[hidden] {
    display: none;
}

.cf-modal-overlay.is-visible {
    opacity: 1;
}

.cf-modal {
    background: #005b68;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    opacity: 0;
}

.cf-modal-overlay.is-visible .cf-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cf-modal-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.cf-modal-title {
    font-family: 'IvyOra Display', serif;
    font-size: 28px;
    font-weight: 500;
    font-style: italic;
    color: #ffffff;
    margin: 0;
    line-height: normal;
}

.cf-modal-message {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.cf-modal-close-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    height: 52px;
    background: #ffffff;
    color: #005b68;
    border: 1px solid #ffffff;
    border-radius: 100px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cf-modal-close-btn:hover,
.cf-modal-close-btn:focus {
    background: transparent;
    color: #ffffff;
    outline: none;
}

@media (max-width: 480px) {
    .cf-modal {
        padding: 36px 24px 32px;
    }

    .cf-modal-title {
        font-size: 24px;
    }
}
