/* contact — Figma page styles. Loaded after assets/css/style.css (see panacea_enqueue_assets). Scope every selector to this page/section. */

/* =====================================================================
   1. HEADER over the dark hero (contact page only)
   The header is taken out of flow (no `top`, so it keeps its static
   position, below any admin bar) and the hero slides up underneath it.
   style.css sets the navbar bg / link colours with !important, so the
   overrides below have to as well.
   ===================================================================== */

body.page-template-page-contact .site-header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.page-template-page-contact .site-header .navbar {
    background: transparent !important;
    box-shadow: none !important;
}

/* mobile burger icon -> white */
body.page-template-page-contact .site-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

body.page-template-page-contact .site-header .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

@media (min-width: 992px) {
    body.page-template-page-contact .site-header .navbar-nav > .nav-item > .nav-link {
        color: #ffffff !important;
    }

    body.page-template-page-contact .site-header .navbar-nav > .nav-item > .nav-link:hover,
    body.page-template-page-contact .site-header .navbar-nav > .nav-item > .nav-link.show {
        color: #F1921F !important;
    }
}

/* =====================================================================
   2. HERO (common/inner-hero.php -> .about-hero)
   Figma: full-bleed dark photo + dark overlay, white 50px title, white
   17px subtitle, bottom edge = downward convex curve with a 13px orange
   stroke (drawn by ::after as an SVG: white fill below the curve + stroke).
   No contact photo exists in uploads yet -> dark-blue fallback. To add the
   photo later set --ct-hero-photo: url(...) on the rule below.
   ===================================================================== */

body.page-template-page-contact .about-hero {
    --ct-hero-photo: none;
    --ct-curve-h: clamp(44px, 7.35vw, 141px);
    min-height: 686px;
    padding: 250px 0 calc(var(--ct-curve-h) + 150px);
    background-color: #0E2A5C;
    background-image:
        linear-gradient(rgba(12, 18, 32, 0.62), rgba(12, 18, 32, 0.62)),
        var(--ct-hero-photo),
        radial-gradient(ellipse at 30% 20%, #1E4A92 0%, rgba(30, 74, 146, 0) 60%),
        linear-gradient(135deg, #0B1F45 0%, #16397A 55%, #1A4DA1 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.page-template-page-contact .about-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--ct-curve-h);
    pointer-events: none;
    z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 141' preserveAspectRatio='none'%3E%3Cpath d='M0 13.5C525 121.5 825 134 960 134S1395 121.5 1920 13.5V141H0Z' fill='%23fff'/%3E%3Cpath d='M-2 13C525 121.5 825 134 960 134S1395 121.5 1922 13' fill='none' stroke='%23F1921F' stroke-width='13' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}

body.page-template-page-contact .about-hero > .container {
    position: relative;
    z-index: 3;
}

body.page-template-page-contact .about-hero-title {
    color: #ffffff;
    font-size: 50px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    max-width: 1000px;
    margin: 0 auto 10px;
}

body.page-template-page-contact .about-hero-sub {
    color: #ffffff;
    font-size: 17px;
    line-height: 27px;
    max-width: 820px;
}

/* no buttons on this hero -> drop the empty row */
body.page-template-page-contact .about-hero-btns:not(:has(a)) {
    display: none;
}

/* =====================================================================
   3. CONTACT INFO ROW  (.ci-*)
   Figma: 65px blue circles with white outline icons, 24px text,
   phone/email underlined links; columns start at 16 / 633 / 1012 of 1440.
   ===================================================================== */

body.page-template-page-contact .ci-section {
    position: relative;
    padding: 82px 0 80px;
    background: #ffffff;
}

body.page-template-page-contact .ci-grid {
    display: grid;
    grid-template-columns: 617fr 379fr 444fr;
    align-items: center;
    padding-left: 16px;
}

body.page-template-page-contact .ci-card {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

body.page-template-page-contact .ci-icon {
    flex: 0 0 65px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-color, #1A4DA1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    line-height: 1;
}

body.page-template-page-contact .ci-card-body {
    min-width: 0;
}

body.page-template-page-contact .ci-card-text {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    color: #1E1F1F;
    max-width: 380px;
    overflow-wrap: anywhere;
}

body.page-template-page-contact .ci-link {
    color: #1E1F1F;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 0.2s ease;
}

body.page-template-page-contact .ci-link:hover,
body.page-template-page-contact .ci-link:focus-visible {
    color: var(--primary-color, #1A4DA1);
}

/* decorative diamonds (same family as .mv-diamond) */
body.page-template-page-contact .ci-diamond {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 5px solid;
    border-radius: 9px;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 2;
    animation: float-box 3s ease-in-out infinite;
}

body.page-template-page-contact .ci-diamond-blue {
    border-color: #0084FF;
    left: max(24px, calc(50% - 839px));
    bottom: 9px;
}

body.page-template-page-contact .ci-diamond-orange {
    border-color: #F26430;
    left: min(calc(100% - 60px), calc(50% + 629px));
    bottom: -24px;
    animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    body.page-template-page-contact .ci-diamond {
        animation: none;
    }
}

/* =====================================================================
   4. MAP + "SEND US A MESSAGE" CARD  (.git-*)
   Figma (1440 column): map x 0–84%, h 1002, radius 12, greyscale;
   blue card x 45%–100%, 152px inset top/bottom, radius 20,
   padding 47 86 27 48; underline inputs in 2 cols (gap 50).
   ===================================================================== */

body.page-template-page-contact .git-section {
    position: relative;
    padding: 0 0 8px; /* + footer-cta's own top spacing = Figma's ~83px gap */
    background: #ffffff;
}

body.page-template-page-contact .git-inner {
    display: grid;
    grid-template-columns: 45fr 39fr 16fr;
    align-items: stretch;
}

body.page-template-page-contact .git-map-col {
    grid-column: 1 / 3;
    grid-row: 1;
    position: relative;
    z-index: 1;
    min-height: 600px;
}

body.page-template-page-contact .git-map-outer {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #F2F2F2;
}

body.page-template-page-contact .git-map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(0.9) brightness(1.04);
}

body.page-template-page-contact .git-form-col {
    grid-column: 2 / 4;
    grid-row: 1;
    position: relative;
    z-index: 2;
    margin: 152px 0;
    padding: 47px 86px 30px 48px;
    background: var(--primary-color, #1A4DA1);
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(16, 38, 82, 0.18);
}

body.page-template-page-contact .git-heading {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

body.page-template-page-contact .git-sub {
    margin: 0 0 34px;
    font-size: 16px;
    line-height: 1.6;
    color: #BACAE3;
}

/* ---- Contact Form 7 markup ---- */

body.page-template-page-contact .git-form-col .wpcf7 form p {
    margin: 0;
}

body.page-template-page-contact .git-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 34px;
}

body.page-template-page-contact .git-form .git-field:has(textarea),
body.page-template-page-contact .git-form > p {
    grid-column: 1 / -1;
}

body.page-template-page-contact .git-form .wpcf7-form-control-wrap {
    display: block;
}

body.page-template-page-contact .git-form .git-input {
    display: block;
    width: 100%;
    padding: 10px 2px 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #CFCFCF;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-template-page-contact .git-form .git-input::placeholder {
    color: #E4E9F2;
    opacity: 1;
}

body.page-template-page-contact .git-form .git-input:focus {
    border-bottom-color: #ffffff;
    box-shadow: 0 1px 0 #ffffff;
}

body.page-template-page-contact .git-form .git-input:-webkit-autofill,
body.page-template-page-contact .git-form .git-input:-webkit-autofill:hover,
body.page-template-page-contact .git-form .git-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    transition: background-color 9999s ease-out 0s;
}

body.page-template-page-contact .git-form .git-textarea {
    height: 128px;
    min-height: 80px;
    resize: vertical;
}

/* submit: outline-white pill, 168 x 62, arrow drawn as background image
   (CF7 renders an <input type=submit>, which cannot hold an <i> icon) */
body.page-template-page-contact .git-form > p:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
}

body.page-template-page-contact .git-form .git-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 62px;
    padding: 0 60px 0 36px;
    border: 1px solid #ffffff;
    border-radius: 100px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z'/%3E%3C/svg%3E") no-repeat right 34px center / 18px 18px;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, background-position 0.25s ease;
}

body.page-template-page-contact .git-form .git-submit:hover,
body.page-template-page-contact .git-form .git-submit:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    background-position: right 30px center;
}

body.page-template-page-contact .git-form .git-submit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

body.page-template-page-contact .git-form > p:last-child {
    position: relative;
}

/* CF7 ajax spinner: out of flow, at the row's left (where Figma's checkbox sits) */
body.page-template-page-contact .git-form .wpcf7-spinner {
    position: absolute;
    left: 0;
    top: calc(50% + 5px);
    margin: -12px 0 0;
}

/* validation: keep messages legible on the blue card */
body.page-template-page-contact .git-form .wpcf7-not-valid {
    border-bottom-color: #FFB3B3;
}

body.page-template-page-contact .git-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #FFC9C9;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

body.page-template-page-contact .git-form-col .wpcf7 form .wpcf7-response-output {
    margin: 22px 0 0;
    padding: 10px 16px;
    border-width: 1px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
}

body.page-template-page-contact .git-form-col .wpcf7 form.sent .wpcf7-response-output {
    border-color: #7BE0A5;
}

/* =====================================================================
   5. RESPONSIVE
   ===================================================================== */

@media (max-width: 1399px) {
    body.page-template-page-contact .ci-card-text {
        font-size: 21px;
        line-height: 28px;
    }

    body.page-template-page-contact .git-form-col {
        padding-right: 48px;
    }
}

@media (max-width: 1199px) {
    body.page-template-page-contact .ci-grid {
        grid-template-columns: 1.4fr 1fr 1.2fr;
        column-gap: 24px;
        padding-left: 0;
    }

    body.page-template-page-contact .ci-card {
        gap: 16px;
    }

    body.page-template-page-contact .ci-card-text {
        font-size: 18px;
        line-height: 26px;
    }

    body.page-template-page-contact .ci-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    body.page-template-page-contact .git-inner {
        grid-template-columns: 35fr 49fr 16fr;
    }

    body.page-template-page-contact .git-form-col {
        margin: 100px 0;
        padding: 40px 40px 28px;
    }
}

@media (max-width: 991px) {
    body.page-template-page-contact .about-hero {
        min-height: 0;
        padding: 150px 0 calc(var(--ct-curve-h) + 80px);
    }

    body.page-template-page-contact .about-hero-title {
        font-size: 40px;
    }

    body.page-template-page-contact .ci-section {
        padding: 56px 0 64px;
    }

    body.page-template-page-contact .ci-grid {
        grid-template-columns: 1fr;
        row-gap: 22px;
        max-width: 520px;
        margin: 0 auto;
    }

    body.page-template-page-contact .git-inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    body.page-template-page-contact .git-form-col,
    body.page-template-page-contact .git-map-col {
        grid-column: 1;
        grid-row: auto;
    }

    body.page-template-page-contact .git-form-col {
        margin: 0;
    }

    body.page-template-page-contact .git-map-col {
        min-height: 360px;
    }


    body.page-template-page-contact .ci-diamond-orange {
        bottom: 24px;
        left: auto;
        right: 28px;
    }
}

@media (max-width: 575px) {
    body.page-template-page-contact .about-hero {
        padding: 120px 0 calc(var(--ct-curve-h) + 56px);
    }

    body.page-template-page-contact .about-hero::after {
        background-size: 100% 100%;
    }

    body.page-template-page-contact .about-hero-title {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    body.page-template-page-contact .about-hero-sub {
        font-size: 15px;
        line-height: 24px;
    }

    body.page-template-page-contact .ci-section {
        padding: 44px 0 56px;
    }

    body.page-template-page-contact .ci-card-text {
        font-size: 17px;
        line-height: 25px;
    }

    body.page-template-page-contact .ci-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    body.page-template-page-contact .ci-diamond {
        width: 30px;
        height: 30px;
        border-width: 4px;
        border-radius: 7px;
    }

    body.page-template-page-contact .ci-diamond-blue {
        display: none;
    }

    body.page-template-page-contact .ci-diamond-orange {
        bottom: auto;
        top: 18px;
        left: auto;
        right: 22px;
    }

    body.page-template-page-contact .git-form-col {
        padding: 32px 22px 24px;
        border-radius: 16px;
    }

    body.page-template-page-contact .git-heading {
        font-size: 26px;
    }

    body.page-template-page-contact .git-sub {
        font-size: 15px;
        margin-bottom: 22px;
    }

    body.page-template-page-contact .git-form {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    body.page-template-page-contact .git-form .git-submit {
        height: 56px;
    }

    body.page-template-page-contact .git-map-col {
        min-height: 300px;
    }
}
