/*
 * Contact — issue #17.
 *
 * The supplied page is a compact service directory: a bright map-led hero,
 * dense form and office cards, a pale support band, then a dark global CTA.
 */

.gl-main:has(.gl-contact) {
    padding-bottom: 0;
}

.gl-contact {
    overflow: hidden;
    color: #071838;
    background: #fff;
}

.gl-contact .gl-shell {
    max-width: 1086px;
    padding-inline: clamp(1.25rem, 5.8vw, 4rem);
}

.gl-contact h1,
.gl-contact h2,
.gl-contact h3,
.gl-contact p {
    margin: 0;
}

.gl-contact-eyebrow {
    color: #c77d00;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- hero */

.gl-contact-hero {
    position: relative;
    isolation: isolate;
    min-height: 16.2rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 65% 45%, rgba(223, 231, 241, 0.32), transparent 23rem),
        linear-gradient(90deg, #fff 0%, #fff 43%, #fbfcfe 100%);
}

.gl-contact-hero__inner {
    display: grid;
    grid-template-columns: minmax(20rem, 0.85fr) minmax(26rem, 1.15fr);
    align-items: center;
    gap: 1.8rem;
    min-height: 16.2rem;
    padding-block: 1.85rem 1.3rem;
}

.gl-contact-hero__copy {
    position: relative;
    z-index: 2;
    align-self: start;
    padding-top: 0.1rem;
}

.gl-contact-hero h1 {
    max-width: 12ch;
    margin-top: 0.8rem;
    color: #07183a;
    font-size: clamp(2.8rem, 4.3vw, 3.55rem);
    font-weight: 720;
    letter-spacing: -0.048em;
    line-height: 1.03;
}

.gl-contact-hero__copy > p:last-child {
    max-width: 31ch;
    margin-top: 0.75rem;
    color: #3a4967;
    font-size: 0.9rem;
    line-height: 1.48;
}

.gl-contact-hero__map {
    position: relative;
    align-self: stretch;
    color: #dbe3ed;
}

.gl-contact-hero__map .gl-contact-map {
    position: absolute;
    top: -2rem;
    right: -4.5rem;
    width: 42rem;
    max-width: none;
    opacity: 0.92;
}

.gl-contact-map__connections {
    fill: none;
    stroke: #c9d9ea;
    stroke-width: 1.1;
}

.gl-contact-map__markers {
    fill: #a6bdd7;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 4;
}

.gl-contact-map__italy {
    fill: #e59a19;
    color: #e59a19;
}

.gl-contact-hero__pulse {
    position: absolute;
    z-index: 2;
    top: 44.5%;
    left: 51.7%;
    width: 0.74rem;
    height: 0.74rem;
    border: 0.2rem solid #fff;
    border-radius: 50%;
    background: #09234a;
    box-shadow: 0 0 0 0.24rem #dda02f, 0 0 0 0.48rem rgba(222, 160, 47, 0.18);
}

/* ---------------------------------------------------------- form + team */

.gl-contact-main {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
    margin-top: -0.2rem;
    padding-bottom: 0.95rem;
}

.gl-contact-form-card,
.gl-contact-country-card,
.gl-contact-office-card,
.gl-contact-team > a,
.gl-contact-support__grid article {
    border: 1px solid #e1e5eb;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(13, 35, 69, 0.045);
}

.gl-contact-form-card {
    padding: 1.55rem 1.6rem 0.8rem;
}

.gl-contact-form-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.45rem;
    font-weight: 690;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.gl-contact-form-card form {
    position: relative;
    display: grid;
    gap: 0.52rem;
}

.gl-contact-field {
    display: grid;
    gap: 0.32rem;
}

.gl-contact-field label,
.gl-contact-country-card > label {
    color: #142340;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.2;
}

.gl-contact-field input,
.gl-contact-field select,
.gl-contact-field textarea,
.gl-contact-country-card select {
    width: 100%;
    border: 1px solid #d9dfe8;
    border-radius: 0.28rem;
    outline: none;
    background: #fff;
    color: #1a2946;
    font-size: 0.73rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gl-contact-field input,
.gl-contact-field select {
    min-height: 1.85rem;
    padding: 0.35rem 0.65rem;
}

.gl-contact-field select,
.gl-contact-country-card select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #193254 50%), linear-gradient(135deg, #193254 50%, transparent 50%);
    background-position: calc(100% - 0.85rem) 50%, calc(100% - 0.59rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.28rem 0.28rem, 0.28rem 0.28rem;
    padding-right: 1.7rem;
}

.gl-contact-field textarea {
    height: 5.2rem;
    min-height: 5.2rem;
    resize: vertical;
    padding: 0.6rem 0.65rem;
    line-height: 1.45;
}

.gl-contact-field input::placeholder,
.gl-contact-field textarea::placeholder {
    color: #78849a;
    opacity: 1;
}

.gl-contact-field input:focus,
.gl-contact-field select:focus,
.gl-contact-field textarea:focus,
.gl-contact-country-card select:focus {
    border-color: #577ca9;
    box-shadow: 0 0 0 0.16rem rgba(40, 93, 155, 0.12);
}

.gl-contact-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.gl-contact-error {
    color: #a82d26;
    font-size: 0.66rem;
    line-height: 1.3;
}

.gl-contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gl-contact-routing-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #536078;
    font-size: 0.68rem;
}

.gl-contact-routing-note .gl-icon {
    width: 1rem;
    height: 1rem;
    color: #183659;
}

.gl-contact-form-card form > .gl-btn {
    justify-self: start;
    min-width: 9.2rem;
    height: 1.95rem;
    min-height: 1.95rem;
    padding-block: 0;
    font-size: 0.72rem;
}

.gl-contact-success {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    border: 1px solid #b9dfc8;
    border-radius: 0.35rem;
    padding: 0.65rem 0.8rem;
    color: #17633b;
    background: #effaf3;
    font-size: 0.72rem;
}

.gl-contact-success .gl-icon {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.gl-contact-directory {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.gl-contact-country-card {
    padding: 0.55rem 1.35rem;
}

.gl-contact-country-card > div {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0.45rem;
}

.gl-contact-country-card .gl-flag {
    position: absolute;
    z-index: 1;
    left: 0.65rem;
    width: 1.28rem;
    height: 1.28rem;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.gl-contact-country-card select {
    min-height: 2.05rem;
    padding: 0.45rem 1.8rem 0.45rem 2.45rem;
}

.gl-contact-office-card {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1.05rem;
    min-height: 8.95rem;
    padding: 0.9rem 1.35rem;
}

.gl-contact-round-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 50%;
    color: #fff;
    background: #041a3d;
}

.gl-contact-round-icon .gl-icon {
    width: 1.65rem;
    height: 1.65rem;
    stroke-width: 1.35;
}

.gl-contact-office-card h2 {
    margin-bottom: 0.28rem;
    font-size: 1rem;
    font-weight: 700;
}

.gl-contact-office-card p {
    color: #35435f;
    font-size: 0.74rem;
    line-height: 1.4;
}

.gl-contact-office-card a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    margin-top: 0.48rem;
    color: #142542;
    font-size: 0.74rem;
    text-decoration: none;
}

.gl-contact-office-card a .gl-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.gl-contact-team {
    display: grid;
    gap: 0.35rem;
}

.gl-contact-team > a {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 1rem;
    align-items: center;
    gap: 1.05rem;
    min-height: 4.65rem;
    padding: 0.7rem 1.35rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gl-contact-team > a:hover {
    transform: translateY(-1px);
    border-color: #c8d2df;
    box-shadow: 0 8px 18px -14px rgba(13, 35, 69, 0.35);
}

.gl-contact-team small,
.gl-contact-team strong,
.gl-contact-team em {
    display: block;
    font-style: normal;
    line-height: 1.25;
}

.gl-contact-team small {
    font-size: 0.66rem;
    font-weight: 650;
}

.gl-contact-team strong {
    margin-top: 0.08rem;
    font-size: 0.8rem;
}

.gl-contact-team em {
    margin-top: 0.13rem;
    color: #546078;
    font-size: 0.66rem;
}

.gl-contact-team > a > .gl-icon {
    width: 0.9rem;
    height: 0.9rem;
    color: #dc9218;
}

/* -------------------------------------------------------- support cards */

.gl-contact-support {
    padding-block: 0.95rem 1.05rem;
    background: #f8f9fb;
}

.gl-contact-support h2,
.gl-contact-coverage h2 {
    font-size: 1.3rem;
    font-weight: 690;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.gl-contact-support__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 0.75rem;
}

.gl-contact-support__grid article {
    display: grid;
    grid-template-columns: 3.15rem minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 7.8rem;
    padding: 1.4rem 0.75rem;
}

.gl-contact-support__grid article > span {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: #dd9117;
    background: #f7f6f3;
    box-shadow: inset 0 0 0 1px #eee6d9;
}

.gl-contact-support__grid .gl-icon {
    width: 1.85rem;
    height: 1.85rem;
    stroke-width: 1.35;
}

.gl-contact-support__grid h3 {
    margin-top: 0.12rem;
    font-size: 0.66rem;
    font-weight: 680;
    line-height: 1.25;
}

.gl-contact-support__grid p {
    margin-top: 0.58rem;
    color: #536079;
    font-size: 0.62rem;
    line-height: 1.55;
}

/* ------------------------------------------------------- market coverage */

.gl-contact-coverage {
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.68fr;
    min-height: 12.8rem;
    padding-block: 1.25rem 0.85rem;
}

.gl-contact-coverage__legend {
    padding-right: 1.5rem;
    border-right: 1px solid #e3e7ed;
}

.gl-contact-coverage__legend dl {
    display: grid;
    gap: 0.62rem;
    margin-top: 1rem;
    font-size: 0.68rem;
}

.gl-contact-coverage__legend dl > div {
    display: grid;
    grid-template-columns: 7.8rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
}

.gl-contact-coverage__legend dt {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.gl-contact-coverage__legend dt i {
    width: 0.72rem;
    height: 0.72rem;
    flex: none;
    border-radius: 50%;
    background: #bfd0e5;
}

.gl-contact-coverage__legend .is-active dt i {
    background: #d4901b;
}

.gl-contact-coverage__legend dd {
    color: #59657b;
}

.gl-contact-coverage__map {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #e3e7ed;
    color: #dce4ee;
}

.gl-contact-coverage__map .gl-contact-map {
    position: absolute;
    inset: -1rem -0.2rem auto 0;
    width: 100%;
    height: 13rem;
}

.gl-contact-map-label {
    position: absolute;
    z-index: 2;
    border: 1px solid #b8c7d9;
    border-radius: 0.16rem;
    padding: 0.15rem 0.48rem;
    color: #233452;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 5px rgba(11, 31, 60, 0.08);
    font-size: 0.6rem;
    font-weight: 620;
    line-height: 1.25;
}

.gl-contact-map-label--germany { top: 0.15rem; left: 51%; }
.gl-contact-map-label--france { top: 4.1rem; left: 24%; }
.gl-contact-map-label--spain { top: 7.5rem; left: 12%; }
.gl-contact-map-label--italy {
    top: 4.7rem;
    left: 59%;
    border-color: #d79a32;
    color: #fff;
    background: #d99521;
}

.gl-contact-map-pin {
    position: absolute;
    z-index: 3;
    top: 7.2rem;
    left: 56.5%;
    width: 0.7rem;
    height: 0.7rem;
    border: 0.18rem solid #fff;
    border-radius: 50%;
    background: #09234a;
    box-shadow: 0 0 0 0.18rem #d99521;
}

.gl-contact-coverage__note {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 0.8rem;
    padding-left: 1.9rem;
}

.gl-contact-coverage__note > span {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    color: #102b52;
    background: #f0f3f8;
}

.gl-contact-coverage__note .gl-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.gl-contact-coverage__note p {
    color: #536078;
    font-size: 0.68rem;
    line-height: 1.55;
}

.gl-contact-coverage__note a {
    color: #cf8410;
    text-decoration: none;
}

/* ------------------------------------------------------------------ CTA */

.gl-contact .gl-contact-cta-wrap {
    padding-inline: 2.65rem;
    padding-block: 0 0.75rem;
}

.gl-contact-cta {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 4.6rem 21rem 1fr auto;
    align-items: center;
    gap: 1.35rem;
    min-height: 8.5rem;
    overflow: hidden;
    border-radius: 0.65rem;
    padding: 1.4rem 2.45rem;
    color: #fff;
    background:
        radial-gradient(circle at 64% 52%, rgba(31, 78, 130, 0.34), transparent 19rem),
        #04182f;
}

.gl-contact-cta__icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 0.13rem solid #e49b1a;
    border-radius: 50%;
    color: #e9a124;
}

.gl-contact-cta__icon .gl-icon {
    width: 2.4rem;
    height: 2.4rem;
    stroke-width: 1.25;
}

.gl-contact-cta h2 {
    font-size: 1.55rem;
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.gl-contact-cta p {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
}

.gl-contact-cta__map {
    position: absolute;
    z-index: -1;
    inset: -2.6rem 9.8rem -2.4rem 42%;
    color: rgba(174, 199, 227, 0.17);
}

.gl-contact-cta__map .gl-contact-map {
    width: 100%;
    height: 100%;
}

.gl-contact-cta__map .gl-contact-map__connections {
    stroke: rgba(224, 165, 61, 0.44);
}

.gl-contact-cta__map .gl-contact-map__markers {
    fill: #f0b341;
    stroke: rgba(240, 179, 65, 0.25);
    filter: drop-shadow(0 0 0.4rem #e9a72f);
}

.gl-contact-cta > .gl-btn {
    grid-column: 4;
    min-width: 10.8rem;
    font-size: 0.82rem;
}

.gl-body:has(.gl-contact) .gl-btn--gold {
    background: #e9a126;
}

.gl-body:has(.gl-contact) .gl-btn--gold:hover {
    background: #cf8813;
}

.gl-body:has(.gl-contact) .gl-sitefooter--compact {
    padding: 0;
    background: #03152b;
}

.gl-body:has(.gl-contact) .gl-sitefooter__compact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1086px;
    min-height: 4.8rem;
    margin-inline: auto;
    padding: 1rem 3rem;
}

.gl-body:has(.gl-contact) .gl-sitefooter__compact-inner p {
    color: #fff;
    font-size: 0.78rem;
    text-align: center;
}

.gl-body:has(.gl-contact) .gl-sitefooter__compact-inner > a {
    color: #fff;
    text-decoration: none;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1180px) and (min-width: 1024px) {
    .gl-body:has(.gl-contact) .gl-topbar__inner {
        gap: 0.85rem;
        padding-inline: 2.25rem;
    }

    .gl-body:has(.gl-contact) .gl-nav {
        gap: 0.25rem;
    }

    .gl-body:has(.gl-contact) .gl-nav__link {
        padding-inline: 0.25rem;
        font-size: 0.78rem;
    }

    .gl-body:has(.gl-contact) .gl-topbar__aside > .gl-locale {
        display: none;
    }

    .gl-body:has(.gl-contact) .gl-topbar__aside .gl-btn {
        padding-inline: 0.85rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 900px) {
    .gl-contact-hero__inner {
        grid-template-columns: minmax(17rem, 0.9fr) minmax(20rem, 1.1fr);
    }

    .gl-contact-main {
        grid-template-columns: 1fr;
    }

    .gl-contact-directory {
        grid-template-columns: 1fr 1fr;
    }

    .gl-contact-country-card,
    .gl-contact-office-card {
        grid-column: span 1;
    }

    .gl-contact-team {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gl-contact-team > a {
        grid-template-columns: 2.7rem minmax(0, 1fr);
        gap: 0.7rem;
        padding-inline: 0.8rem;
    }

    .gl-contact-team > a > .gl-icon {
        display: none;
    }

    .gl-contact-support__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gl-contact-coverage {
        grid-template-columns: 1fr 1.3fr;
    }

    .gl-contact-coverage__map {
        border-right: 0;
    }

    .gl-contact-coverage__note {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        align-items: center;
        padding: 1rem 0 0;
    }

    .gl-contact-cta {
        grid-template-columns: 4.6rem minmax(0, 1fr) auto;
    }

    .gl-contact-cta__map {
        display: none;
    }

    .gl-contact-cta > .gl-btn {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .gl-contact .gl-contact-cta-wrap {
        padding-inline: 1.25rem;
    }

    .gl-contact-hero__inner {
        grid-template-columns: 1fr;
        min-height: 25rem;
        padding-top: 2.2rem;
    }

    .gl-contact-hero__copy > p:last-child {
        max-width: 35ch;
    }

    .gl-contact-hero__map {
        min-height: 11rem;
    }

    .gl-contact-hero__map .gl-contact-map {
        top: -5rem;
        right: -7rem;
        width: 38rem;
    }

    .gl-contact-hero__pulse {
        top: 18%;
        left: 54%;
    }

    .gl-contact-form-card {
        padding: 1.25rem 1rem;
    }

    .gl-contact-fields-row,
    .gl-contact-directory,
    .gl-contact-team,
    .gl-contact-support__grid,
    .gl-contact-coverage {
        grid-template-columns: 1fr;
    }

    .gl-contact-team {
        grid-column: auto;
    }

    .gl-contact-coverage__legend {
        border-right: 0;
        border-bottom: 1px solid #e3e7ed;
        padding: 0 0 1.2rem;
    }

    .gl-contact-coverage__map {
        min-height: 13rem;
        border-bottom: 1px solid #e3e7ed;
    }

    .gl-contact-coverage__note {
        grid-column: auto;
        grid-template-columns: auto 1fr;
        padding-bottom: 1rem;
    }

    .gl-contact-cta {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 1.7rem 1.25rem;
        text-align: center;
    }

    .gl-contact-cta > .gl-btn {
        width: 100%;
    }

    .gl-body:has(.gl-contact) .gl-sitefooter__compact-inner {
        flex-direction: column;
        gap: 0.7rem;
        padding: 1.4rem 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    .gl-contact,
    .gl-contact-hero {
        color: var(--gl-ink);
        background: var(--gl-surface);
    }

    .gl-contact-hero h1,
    .gl-contact-form-card h2,
    .gl-contact-support h2,
    .gl-contact-coverage h2 {
        color: var(--gl-ink);
    }

    .gl-contact-hero__copy > p:last-child,
    .gl-contact-office-card p,
    .gl-contact-team em,
    .gl-contact-support__grid p,
    .gl-contact-coverage__legend dd,
    .gl-contact-coverage__note p {
        color: var(--gl-ink-2);
    }

    .gl-contact-form-card,
    .gl-contact-country-card,
    .gl-contact-office-card,
    .gl-contact-team > a,
    .gl-contact-support__grid article,
    .gl-contact-field input,
    .gl-contact-field select,
    .gl-contact-field textarea,
    .gl-contact-country-card select {
        border-color: var(--gl-line);
        color: var(--gl-ink);
        background-color: var(--gl-surface);
    }

    .gl-contact-support {
        background: var(--gl-surface-2);
    }

    .gl-contact-map-label {
        color: var(--gl-ink);
        background: var(--gl-surface);
    }

    .gl-contact-map-label--italy {
        color: #fff;
        background: #b87912;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gl-contact * {
        scroll-behavior: auto;
    }
}
