.contact-page {
    color: #08094d;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

/*
 * Contact hero is panoramic (headset center, plant left, laptop right).
 * Shared page-hero object-position:center right crops too far right.
 * Same treatment as About Us: keep image on the right, frame the subject.
 */
.contact-page > .page-hero {
    padding-right: 0 !important;
}

.contact-page > .page-hero > img {
    object-fit: cover !important;
    object-position: 50% center !important;
}

/* Unified split panel */
.contact-section {
    padding: 28px max(var(--page-gutter), calc((100% - var(--page-max)) / 2)) 40px !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    align-items: stretch;
    gap: 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-form-col,
.contact-reach-col {
    padding: 36px 40px;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid #d9e6f5;
    box-shadow: 0 8px 30px rgba(8, 39, 84, 0.04);
}

.contact-form-col {
    background: #fff;
}

.contact-reach-col {
    background: #eef6ff;
}

.contact-form-col h2,
.contact-reach-col h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.7px;
    line-height: 1.15;
    color: #08094d;
}

.contact-lead {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.45;
    color: #6974a7;
}

#contact-form {
    display: grid;
    gap: 16px;
}

#contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #08094d;
}

#contact-form .required-star {
    color: #ed3344;
    font-weight: 700;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 14px;
    border: 1px solid #cfd9ef;
    border-radius: 8px;
    background: #fff;
    color: #08094d;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

#contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #8a92c0;
}

.contact-message-label {
    position: relative;
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 12px;
    font-weight: 400;
    color: #8a92c0;
    pointer-events: none;
}

/* Visual reCAPTCHA-style control (design match; wire real keys later if needed) */
.contact-recaptcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 304px;
    padding: 10px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    background: #f9f9f9;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.08);
}

.recaptcha-box {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #202124 !important;
    cursor: pointer;
}

.recaptcha-box input {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #1a73e8;
}

.recaptcha-brand {
    text-align: right;
    line-height: 1.2;
}

.recaptcha-logo {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #555;
}

.recaptcha-brand small {
    font-size: 9px;
    color: #888;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(110deg, #06244d, #0b2c5d);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.contact-submit svg {
    width: 18px;
    height: 18px;
}

.contact-submit:hover {
    filter: brightness(1.08);
}

#contact-status:empty {
    display: none;
}

#contact-status {
    margin: 4px 0 0;
    color: #4e598a;
    font-size: 13px;
}

/* Reach column */
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
}

.contact-detail + .contact-detail {
    border-top: 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #06244d;
    color: #fff;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #08094d;
}

.contact-value {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #08094d;
    text-decoration: none;
}

a.contact-value:hover {
    color: #005bff;
}

.contact-muted {
    font-weight: 400;
    color: #6974a7;
}

.contact-detail p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6974a7;
}

.contact-follow {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #d4e3f4;
}

.contact-follow h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #08094d;
}

.contact-social {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
}

.contact-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-social-btn.is-facebook { background: #1877f2; }
.contact-social-btn.is-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.contact-social-btn.is-linkedin { background: #0a66c2; }
.contact-social-btn.is-youtube { background: #ff0000; }

.contact-follow > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6974a7;
}

/* Demo CTA */
.contact-page .page-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px max(var(--page-gutter), calc((100% - var(--page-max)) / 2)) !important;
    background: linear-gradient(110deg, #e6f5ff 0%, #f0faff 48%, #e5f4ff 100%);
}

.contact-page .page-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        35deg,
        transparent 0% 15%,
        #ffffff80 8% 15%,
        transparent 15% 89%,
        #ffffff85 89% 100%
    );
}

.contact-page .page-cta::after {
    content: "";
    position: absolute;
    right: 20.5%;
    top: 8px;
    width: 210px;
    height: 65px;
    border-radius: 50px;
    background: linear-gradient(90deg, #cceaff99, #d9efff80);
    transform: rotate(-34deg);
    z-index: -1;
    pointer-events: none;
}

.contact-page .page-cta h2 {
    font-size: clamp(24px, 2.4vw, 28px) !important;
}

.contact-page .page-cta .primary {
    background: linear-gradient(110deg, #06244d, #0b2c5d) !important;
    color: #fff !important;
    border: 1px solid #193768 !important;
    border-radius: 4px !important;
}

@media (max-width: 980px) {
    .contact-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-col,
    .contact-reach-col {
        padding: 28px 24px;
    }
}

@media (max-width: 760px) {
    .contact-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .contact-page .page-cta {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
