/* ==========================================================================
   Contact Page
   ========================================================================== */

/* ---- Hero ---- */
.ct-hero {
    background: var(--color-primary-blue);
    color: var(--color-white);
    text-align: center;
    padding: 80px 0 70px;
}
.ct-hero__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 14px;
}
.ct-hero__subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

/* ---- Conversation section ---- */
.ct-conversation {
    background: var(--color-white);
    padding: 90px 0 60px;
    position: relative;
    z-index: 2;
}
.ct-conversation__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.ct-conversation__left {
    padding-top: 10px;
}
.ct-conversation__heading {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 42px;
    line-height: 1.2;
    color: var(--color-black);
    margin: 0 0 28px;
    max-width: 420px;
}
.ct-conversation__text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray);
    margin: 0 0 12px;
    max-width: 420px;
}
.ct-conversation__text:last-of-type {
    margin-bottom: 0;
}
.ct-conversation__divider {
    border: none;
    border-top: 2px solid var(--color-primary-blue);
    width: 50px;
    margin: 36px 0;
}
.ct-contact-person__label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-black);
    margin: 0 0 14px;
}
.ct-contact-person__name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-primary-blue);
    margin: 0 0 4px;
}
.ct-contact-person__designation {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-gray);
    margin: 0 0 14px;
    line-height: 1.5;
}
.ct-contact-person__email {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-contact-person__email svg {
    flex-shrink: 0;
    color: var(--color-gray);
}
.ct-contact-person__email a {
    color: var(--color-gray);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ct-contact-person__email a:hover {
    color: var(--color-primary-blue);
}

/* ---- Form card ---- */
.ct-conversation__right {
    position: relative;
    z-index: 3;
}
.ct-form-card {
    background: var(--color-cream);
    padding: 44px 40px 48px;
    border-radius: 6px;
    margin-bottom: -160px;
    position: relative;
    z-index: 3;
}
.ct-form-card__heading {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.3;
    color: var(--color-primary-blue);
    margin: 0 0 32px;
}

/* ---- Contact Form 7 — match existing design ---- */
.ct-form-card .wpcf7 {
    margin: 0;
    padding: 0;
}
.ct-form-card .wpcf7-form p {
    margin: 0 0 24px;
}
.ct-form-card .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}
.ct-form-card .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 10px 0;
    color: var(--color-black);
    outline: none;
    transition: border-color 0.25s ease;
    resize: none;
    border-radius: 0;
    -webkit-appearance: none;
    box-shadow: none;
}
.ct-form-card .wpcf7-form-control:not(.wpcf7-submit)::placeholder {
    color: #999;
    font-weight: 400;
}
.ct-form-card .wpcf7-form-control:not(.wpcf7-submit):focus {
    border-bottom-color: var(--color-primary-blue);
    box-shadow: none;
    outline: none;
}
.ct-form-card .wpcf7-form-control.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 13px 36px;
    background: var(--color-primary-blue);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 8px;
    -webkit-appearance: none;
}
.ct-form-card .wpcf7-form-control.wpcf7-submit:hover {
    background: #C18E3D;
}

/* CF7 validation & response messages */
.ct-form-card .wpcf7-not-valid-tip {
    font-family: var(--font-body);
    font-size: 13px;
    color: #d32f2f;
    margin-top: 6px;
    display: block;
}
.ct-form-card .wpcf7-response-output {
    font-family: var(--font-body);
    font-size: 14px;
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
}
.ct-form-card .wpcf7-mail-sent-ok,
.ct-form-card .wpcf7 form.sent .wpcf7-response-output {
    background: #e8f5e9;
    color: #2e7d32;
}
.ct-form-card .wpcf7 form.failed .wpcf7-response-output,
.ct-form-card .wpcf7 form.aborted .wpcf7-response-output {
    background: #ffebee;
    color: #c62828;
}
.ct-form-card .wpcf7 form.invalid .wpcf7-response-output,
.ct-form-card .wpcf7 form.unaccepted .wpcf7-response-output {
    background: #fff3e0;
    color: #e65100;
}
.ct-form-card .wpcf7-spinner {
    margin: 8px 0 0 12px;
}

/* ---- Offices section ---- */
.ct-offices {
    background: var(--color-primary-blue);
    color: var(--color-white);
    padding: 160px 0 80px;
    position: relative;
    z-index: 1;
}
.ct-offices__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 42px;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 44px;
}
.ct-offices__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.ct-office__heading {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-white);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    text-decoration: none;
}
.ct-office__company {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    margin: 0 0 16px;
}
.ct-office__address {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ct-office__address svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .ct-hero__title { font-size: 40px; }
    .ct-conversation__heading { font-size: 36px; }
    .ct-offices__title { font-size: 36px; }
}

@media (max-width: 768px) {
    .ct-hero { padding: 60px 0 50px; }
    .ct-hero__title { font-size: 34px; }

    .ct-conversation { padding: 60px 0 50px; }
    .ct-conversation__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ct-conversation__heading {
        font-size: 32px;
        max-width: none;
    }
    .ct-conversation__text { max-width: none; }

    .ct-form-card {
        margin-bottom: -100px;
        padding: 32px 28px 36px;
    }

    .ct-offices {
        padding: 140px 0 60px;
    }
    .ct-offices__title { font-size: 30px; }
    .ct-offices__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .ct-hero { padding: 50px 0 40px; }
    .ct-hero__title { font-size: 28px; }
    .ct-hero__subtitle { font-size: 14px; }

    .ct-conversation { padding: 50px 0 40px; }
    .ct-conversation__heading { font-size: 28px; }

    .ct-form-card {
        padding: 28px 22px 32px;
        margin-bottom: -70px;
    }

    .ct-offices {
        padding: 110px 0 50px;
    }
    .ct-offices__title { font-size: 26px; }

    .ct-form-card .wpcf7-form-control.wpcf7-submit {
        width: 100%;
    }
}
