/* ============================================================
   CONTACT PAGE STYLES  (loaded only on contact.php)
   ============================================================ */

/* ---------------- banner ---------------- */

.ct-banner {
    position: relative;
    padding: 150px 0 70px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #ffffff 100%),
        linear-gradient(136.76deg, #E7EBFA 0%, #F2F2F9 38%, #EDF0FA 62%, #FEFCFD 100%);
    overflow: hidden;
}

.ct-banner-inner {
    max-width: 640px;
}

.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 40px;
   background: #FFFFFFB2;
    border: 1px solid #f0f0f0;
    backdrop-filter: blur(20px);
    color: #012854;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ct-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-dot);
    flex-shrink: 0;
}

.ct-title {
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--blue);
    margin: 0;
}

.ct-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    background: var(--grad-green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-right: .08em;
}

/* ---------------- contact + map grid ---------------- */

.ct-main {
    padding: 0 0 100px;
}

.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.ct-card {
    background: #fff;
    border: 1px solid #E4E4E5;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(20, 35, 80, .10);
    padding: 34px 34px 30px;
    display: flex;
    flex-direction: column;
}

.ct-card h2 {
    font-family: 'Geist', var(--font-sans);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #012854;
    margin: 0 0 6px;
}

.ct-card .ct-card-sub {
    color: rgba(12, 18, 26, .50);
    font-family: 'Geist', var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 16.5px;
    letter-spacing: 0;
    margin: 0 0 26px;
}

/* form tweaks (reuses global .form-group / .chip styles) */
.ct-form .form-group {
    margin-bottom: 16px;
}

.ct-form .form-group label {
    color: rgba(12, 18, 26, .55);
}

/* validation states */
.ct-form .field-error {
    display: block;
    margin-top: 7px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    color: #D93440;
    min-height: 1em;
    line-height: 1.3;
}

.ct-form .form-group input.is-invalid {
    border-color: #D93440;
}

.ct-form .form-group input.is-invalid:focus {
    border-color: #D93440;
    box-shadow: 0 0 0 4px rgba(217, 52, 64, .12);
}

.ct-form .btn-block {
    margin-top: 8px;
}

/* map card */
.ct-map-card {
    padding: 34px 34px 34px;
}

.ct-map-frame {
    flex: 1;
    margin-top: 0px;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid #e8edf4;
}

.ct-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* ---------------- our contact info (offices) ---------------- */

.ct-offices {
    background: #012958;
    padding: 90px 0;
}

.ct-offices-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.ct-offices-head {
    position: sticky;
    top: 120px;
}

.ct-off-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    color: #E8EDF6;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.ct-off-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-dot);
    flex-shrink: 0;
}

.ct-off-title {
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.ct-off-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    background: var(--grad-green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-right: .08em;
}

.ct-office {
    max-width: 460px;
}

/* head office — highlighted (no card background), left-aligned above the sales offices */
.ct-office--hq {
    position: relative;
    max-width: none;
    margin-bottom: 44px;
}

.ct-office-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #4DEBD6;
    background: rgba(0,189,190,.15);
    border: 1px solid rgba(0,189,190,.4);
    border-radius: 30px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.ct-office--hq .ct-office-name {
    color: #fff;
    font-size: 22px;
}

/* corporate address/contact/email — same wrap width as the sales office
   cards below (the shared cap lives on .ct-office-line) */
.ct-office--hq .ct-office-line {
    max-width: 300px;
}

/* sales offices — pill heading to match the HEAD OFFICE / OUR LOCATIONS tags,
   then a grid of equally-styled cards */
.ct-sales-heading {
    display: flex;
    width: fit-content;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #4DEBD6;
    background: rgba(0,189,190,.15);
    border: 1px solid rgba(0,189,190,.4);
    border-radius: 30px;
    padding: 5px 14px;
    margin: 0 0 22px;
}

/* --- PREVIOUS VERSION (kept for reference — wider gap, used when the grid
   held every office including Corporate, before it moved to its own card) ---
.ct-offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px 40px;
}
--- END PREVIOUS VERSION --- */
.ct-offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-sales .ct-office {
    padding: 0;
}

.ct-sales .ct-office-name {
    min-height: 0;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    line-height: 23px;
}

.ct-office-name {
    font-family: 'Geist', var(--font-sans);
    font-size: 19px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: 0;
    color: #50AAFF;
    margin: 0 0 12px;
}

.ct-office-line {
    font-family: 'Geist', var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    color: #DADADA;
    margin: 0 0 12px;
    /* the info block wraps at a fixed width and both edges sit flush */
    max-width: 300px;
    text-align: justify;
}

.ct-office-line:last-child {
    margin-bottom: 0;
}

.ct-office-line a {
    color: #DADADA;
    text-decoration: none;
    transition: color .25s;
}

.ct-office-line a:hover {
    color: #50AAFF;
}

/* ---------------- responsive ---------------- */

@media (max-width: 991.98px) {
    .ct-banner {
        padding: 120px 0 50px;
    }

    .ct-main {
        padding: 0 0 70px;
    }

    .ct-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ct-map-frame,
    .ct-map-frame iframe {
        min-height: 340px;
    }

    .ct-offices {
        padding: 60px 0;
    }

    .ct-offices-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ct-offices-head {
        position: static;
        top: auto;
    }

    .ct-offices-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ct-office {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ct-banner {
        padding: 110px 0 44px;
    }

    .ct-card {
        padding: 28px 22px 26px;
    }

    .ct-map-card {
        padding: 28px 22px;
    }
}


/* ============================================================
   FAQ  (shared markup borrowed from the generic page,
   styles duplicated here so this page is self-contained)
   ============================================================ */

.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-section .faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 60px;
}

.faq-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid #f0f0f0;
    border-radius: 40px;
    background: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 550;
}

.faq-dot {
    width: 8px;
    height: 8px;
    background: #00b894;
    border-radius: 50%;
}

.faq-title {
    font-size: 49px;
    font-weight: 500;
    line-height: 1.05;
    color: var(--blue);
    margin-bottom: 20px;
}

.faq-title span {
    color: #00b894;
    font-style: italic;
    font-size: 49px;
    font-family: var(--font-serif);
}

.faq-description {
    color: #777;
    font-size: 15px;
    line-height: 1.8;
    max-width: 270px;
    font-weight: 400;
}

.faq-accordion .accordion-item {
    border-bottom: 1px solid #e6e6e6;
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border: none;
    cursor: pointer;
    background: #fff;
    box-shadow: none;
    padding: 25px 30px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
}

.faq-accordion .accordion-button::after {
    content: "+";
    font-size: 28px;
    font-weight: 300;
    color: #555;
    line-height: 1;
    margin-left: 16px;
}

.faq-accordion .accordion-item.is-open {
    background-image: url('../images/faq-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq-accordion .accordion-item.is-open .accordion-button {
    color: #1f2937;
    background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: "\2212";
}

.faq-accordion .accordion-collapse {
    display: none;
}

.faq-accordion .accordion-collapse.show {
    display: block;
}

.faq-accordion .accordion-body {
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    padding: 0 30px 26px;
}

@media (max-width: 991.98px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-section .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-title,
    .faq-title span {
        font-size: 36px;
    }

    .faq-description {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .faq-accordion .accordion-button {
        padding: 18px 20px;
        font-size: 16px;
    }

    .faq-accordion .accordion-body {
        padding: 0 20px 20px;
    }
}

@media (max-width: 575.98px) {
    .faq-title,
    .faq-title span {
        font-size: 26px;
    }
}

/* submit loader */
#contactSubmit { position: relative; }
#contactSubmit .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin .7s linear infinite;
}
#contactSubmit.is-loading { pointer-events: none; opacity: .85; cursor: default; }
#contactSubmit.is-loading .btn-label { opacity: .7; }
#contactSubmit.is-loading .btn-circle { display: none; }
#contactSubmit.is-loading .btn-spinner { display: inline-block; }

@keyframes contact-spin { to { transform: rotate(360deg); } }
