/* ==========================================================================
   Contact Us Page Dedicated Stylesheet (100% Match to Figma MCP View)
   ========================================================================== */

.contact-page-body {
    background-color: #ffffff;
}

/* Hero Banner */
.contact-hero-banner {
    position: relative;
    width: 100%;
    height: clamp(340px, 31.25vw, 600px);
    background-color: var(--hero-dark);
    overflow: hidden;
}

.contact-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 276px;
    background: linear-gradient(180deg, rgba(5, 15, 29, 0.85) 0%, rgba(5, 15, 29, 0) 100%);
    pointer-events: none;
}

/* Breadcrumb Bar (64px Height) */
.contact-breadcrumb-bar {
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(18, 41, 73, 0.08);
}

.contact-breadcrumb-bar .crumb-link {
    color: var(--navy);
    font-weight: 450;
    transition: opacity 0.3s ease;
}

.contact-breadcrumb-bar .crumb-link:hover {
    opacity: 0.7;
}

.contact-breadcrumb-bar .crumb-slash {
    color: var(--navy);
    font-size: 18px;
    font-weight: 450;
}

.contact-breadcrumb-bar .crumb-active {
    color: #282828;
    font-weight: 600;
}

/* Main Contact Section (Node 32:2463) */
.contact-main-section {
    width: 100%;
    background-color: #ffffff;
    padding: clamp(40px, 4.16vw, 60px) 0 clamp(80px, 8.33vw, 120px);
}

.contact-container {
    max-width: 1600px;
    width: min(calc(100% - 80px), 1600px);
    margin: 0 auto;
}

/* Page Header */
.contact-page-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(48px, 5.55vw, 80px);
}

.contact-main-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(36px, 4.16vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--navy);
    text-transform: capitalize;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-family: var(--font-sans);
    font-weight: 450;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.35;
    color: #727272;
}

/* Two Column Layout: Left White Overlay Card + Right Form */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(480px, 756px) 1fr;
    gap: clamp(32px, 4.16vw, 60px);
    align-items: start;
}

/* Left Column: Contact Card Container (756x756px) */
.contact-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 756px;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating White Inner Card (572x636px) */
.contact-white-card {
    position: relative;
    z-index: 2;
    width: min(572px, 88%);
    height: min(636px, 92%);
    background-color: #ffffff;
    padding: clamp(32px, 3.5vw, 50px) clamp(24px, 3.3vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

.card-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.card-logo img {
    width: min(249px, 80%);
    height: auto;
}

.card-details {
    display: flex;
    width: 249.206px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    margin: 0 auto;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.detail-label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.33;
    color: var(--navy);
}

.detail-text, .detail-text a {
    font-family: var(--font-sans);
    font-weight: 450;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.33;
    color: var(--navy);
    text-decoration: none;
}

.detail-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin-top: 12px;
}

.whatsapp-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    color: #122949;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-outline-btn:hover {
    border-color: #25d366;
    color: #25d366;
}

/* Right Column: Get in Touch Form (793px wide) */
.contact-form-section {
    width: 100%;
    max-width: 793px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-heading {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 32px;
    line-height: 42px;
    color: #022f41;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.field-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #022f41;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.underline-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 24px 8px 0;
    font-family: var(--font-sans);
    font-size: 18px;
    color: #022f41;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 0;
    font-size: 14px;
    color: #022f41;
    pointer-events: none;
}

.underline-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-family: var(--font-sans);
    font-size: 18px;
    color: #022f41;
    outline: none;
}

.textarea-wrapper {
    width: 100%;
    min-height: 80px;
}

.borderless-textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-family: var(--font-sans);
    font-size: 18px;
    color: #022f41;
    outline: none;
    resize: vertical;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-code-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.phone-code-select {
    border: none;
    background: transparent;
    padding: 8px 18px 8px 0;
    font-family: var(--font-sans);
    font-size: 18px;
    color: #022f41;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.phone-code-select-wrapper .flag-arrow {
    position: absolute;
    right: 0;
    font-size: 12px;
    color: #022f41;
    pointer-events: none;
}

.field-divider {
    width: 100%;
    height: 1.5px;
    background-color: #ededed;
    margin-top: 4px;
}

.form-action-row {
    margin-top: 24px;
}

.cta-submit-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 0 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1.5px;
    color: #1b4e8d;
    text-transform: uppercase;
    position: relative;
    transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.cta-submit-btn:hover {
    animation: kf_1_30_translate_0 0.3s linear forwards;
}

.cta-submit-btn svg {
    transition: transform 0.3s ease-out;
}

.cta-submit-btn:hover svg {
    animation: kf_1_31_translate_0 0.3s linear forwards;
}

/* Webkit Date Input Styling for Clean Mobile Rendering */
input[type="date"].underline-input {
    min-height: 40px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* Field Focus Highlight Line */
.form-field:focus-within .field-divider {
    background-color: #1b4e8d;
    height: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Responsiveness Breakpoints for Contact Page
   ========================================================================== */

/* Ultra-wide Screens (> 1600px) */
@media (min-width: 1601px) {
    .contact-container {
        width: 100%;
        max-width: 1600px;
    }
}

/* Small Laptops & Mid Desktops (1025px - 1440px) */
@media (max-width: 1440px) {
    .contact-container {
        width: calc(100% - 64px);
    }
}

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 793px;
        margin: 0 auto;
        gap: 48px;
    }

    .contact-card-wrapper {
        width: 100%;
        aspect-ratio: 16 / 10;
        height: auto;
        max-height: 520px;
    }

    .contact-white-card {
        width: min(520px, 90%);
        height: auto;
        padding: 36px 32px;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .contact-hero-banner {
        height: clamp(260px, 45vw, 320px);
    }

    .contact-breadcrumb-bar {
        height: 50px;
    }

    .contact-main-section {
        padding: 28px 0 50px;
    }

    .contact-page-header {
        margin-bottom: 36px;
    }

    .contact-main-title {
        font-size: 38px;
        line-height: 42px;
        margin-bottom: 10px;
    }

    .contact-subtitle {
        font-size: 15px;
        line-height: 22px;
    }

    .contact-container {
        width: calc(100% - 32px);
    }

    .contact-form {
        gap: 22px;
    }

    .form-heading {
        font-size: 26px;
        line-height: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-field {
        gap: 4px;
    }

    .field-title {
        font-size: 15px;
        font-weight: 600;
        color: #022f41;
    }

    .underline-input,
    .underline-select,
    .borderless-textarea,
    .phone-code-select {
        font-size: 16px; /* Prevents auto-zoom on iOS Safari */
        min-height: 42px;
        padding: 8px 0;
    }

    .select-arrow,
    .flag-arrow {
        font-size: 13px;
    }

    .form-action-row {
        margin-top: 28px;
    }

    .contact-card-wrapper {
        aspect-ratio: auto;
        height: auto;
        padding: 32px 16px;
        background-color: var(--navy);
        border-radius: 8px;
    }

    .card-bg-img {
        opacity: 0.2;
    }

    .contact-white-card {
        width: 100%;
        padding: 28px 20px;
    }

    .whatsapp-outline-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-submit-btn {
        font-size: 15px;
        padding: 10px 0;
        min-height: 44px;
    }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    .contact-hero-banner {
        height: 220px;
    }

    .contact-breadcrumb-bar {
        height: 44px;
    }

    .contact-container {
        width: calc(100% - 20px);
    }

    .contact-main-title {
        font-size: 32px;
        line-height: 36px;
    }

    .contact-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-form {
        gap: 20px;
    }

    .form-heading {
        font-size: 22px;
        line-height: 28px;
    }

    .form-field {
        gap: 4px;
    }

    .field-title {
        font-size: 14px;
    }

    .underline-input,
    .underline-select,
    .borderless-textarea,
    .phone-code-select {
        font-size: 16px; /* Ensures minimum 16px to prevent iOS Safari input focus auto-zoom */
        min-height: 40px;
    }

    .contact-white-card {
        padding: 22px 14px;
    }

    .detail-label,
    .detail-text,
    .detail-text a {
        font-size: 15px;
    }

    .whatsapp-outline-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .phone-row {
        gap: 8px;
    }

    .cta-submit-btn {
        font-size: 14px;
        letter-spacing: 1px;
        padding: 12px 0;
        min-height: 44px;
        width: auto;
        justify-content: flex-start;
        gap: 10px;
    }
}
