/**
 * GAL Contact page.
 * Desktop composition follows Figma prototype node 597:9452.
 */

body.page-template-page-contact .wp-site-blocks,
body.page-template-page-contact-supplier-portal .wp-site-blocks,
body.page-id-0 .wp-site-blocks {
    padding-block: 0;
}

.gal-contact,
.gal-contact > * {
    margin-block-start: 0;
}

.gal-contact {
    overflow: hidden;
    background: var(--color-background);
}

.gal-contact-hero {
    position: relative;
    min-height: clamp(42rem, 45vw, 54rem);
    overflow: hidden;
    background-color: var(--color-background-deep);
    background-image: var(--gal-contact-hero-image);
    background-position: center 42%;
    background-size: cover;
    isolation: isolate;
}

.gal-contact-hero__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 14, 28, 1) 0%, rgba(9, 14, 28, 0.4) 49.5192289352417%, rgba(9, 14, 28, 1) 100%);
}

.gal-contact-hero__inner {
    display: flex;
    min-height: inherit;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5.5rem;
}

.gal-contact-hero h1 {
    margin: 0 0 6rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(3.5rem, 4.2vw, 5rem);
    font-weight: var(--font-weight-light);
    line-height: 1.05;
}

.gal-contact-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.gal-contact-tabs .button {
    min-width: 12rem;
}

.gal-contact-tabs .is-active {
    background: rgba(255, 255, 255, 0.1);
}

.gal-contact-tabs__disabled {
    cursor: default;
    opacity: 0.72;
}

.gal-supplier-hero {
    background-position: center 38%;
}

.gal-supplier-hero .gal-contact-hero__shade {
    background: linear-gradient(180deg, rgba(9, 14, 28, 1) 0%, rgba(9, 14, 28, 0.4) 49.5192289352417%, rgba(9, 14, 28, 1) 100%);
}

.gal-supplier-registration {
    position: relative;
    min-height: 82rem;
    overflow: hidden;
    padding-block: 8.75rem 10.5rem;
    isolation: isolate;
}

.gal-supplier-registration__blueprint {
    position: absolute;
    z-index: -1;
    inset: 7rem -8rem auto auto;
    width: min(78vw, 90rem);
    aspect-ratio: 4 / 3;
    background: url("../images/training-wireframe.png") center / contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
    filter: grayscale(1) brightness(1.3) sepia(0.25);
}

.gal-supplier-registration__inner {
    position: relative;
    z-index: 1;
}

.gal-supplier-registration h2 {
    max-width: 60rem;
    margin: 0 0 7rem;
    color: var(--color-accent);
    font-size: clamp(1.9rem, 2.35vw, 2.8rem);
    font-weight: var(--font-weight-light);
    line-height: 1.08;
    text-transform: uppercase;
}

.gal-supplier-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.gal-supplier-process__step {
    position: relative;
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 1.5rem;
    min-width: 0;
    padding-right: clamp(1.5rem, 3vw, 4rem);
}

.gal-supplier-process__step:not(:last-child)::after {
    position: absolute;
    top: 2.625rem;
    right: 0;
    left: 5.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0 1.5rem, rgba(186, 154, 57, 0.7) 1.5rem calc(100% - 0.7rem), transparent calc(100% - 0.7rem));
    content: "";
    transform: translateX(1.5rem);
}

.gal-supplier-process__step:not(:last-child)::before {
    position: absolute;
    z-index: 1;
    top: 2.37rem;
    right: 0.05rem;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 1px solid rgba(186, 154, 57, 0.8);
    border-right: 1px solid rgba(186, 154, 57, 0.8);
    content: "";
    transform: rotate(45deg);
}

.gal-supplier-process__marker {
    position: relative;
    z-index: 2;
    display: grid;
    width: 5.25rem;
    height: 5.25rem;
    place-items: center;
    border: 1px solid rgba(186, 154, 57, 0.78);
    background: rgba(9, 14, 28, 0.82);
    color: var(--color-accent);
    font-size: 1.15rem;
    font-weight: var(--font-weight-light);
    letter-spacing: 0.08em;
}

.gal-supplier-process h3 {
    margin: 0 0 0.8rem;
    padding-top: 0.3rem;
    font-size: clamp(1.1rem, 1.3vw, 1.42rem);
    font-weight: var(--font-weight-regular);
    line-height: 1.15;
}

.gal-supplier-process p {
    max-width: 16rem;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.gal-supplier-form {
    position: relative;
    margin-top: 9.5rem;
}

.gal-supplier-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1.25rem;
}

.gal-supplier-field {
    min-width: 0;
}

.gal-supplier-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.gal-supplier-field--wide {
    grid-column: 1 / -1;
}

.gal-supplier-form :where(input:not([type="checkbox"]), select, textarea) {
    min-height: 4rem;
    padding: 0.95rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.38);
    background-color: rgba(5, 9, 19, 0.72);
    color: var(--color-text-strong);
    font-size: 1rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gal-supplier-form textarea {
    min-height: 10rem;
}

.gal-supplier-form select {
    padding-right: 3rem;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.75) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, transparent 50%);
    background-position:
        calc(100% - 1.35rem) calc(50% - 0.1rem),
        calc(100% - 1rem) calc(50% - 0.1rem);
    background-repeat: no-repeat;
    background-size: 0.38rem 0.38rem;
    appearance: none;
}

.gal-supplier-form :where(input:not([type="checkbox"]), select, textarea):focus-visible {
    border-color: var(--color-accent);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(186, 154, 57, 0.22);
}

.gal-supplier-confirmation {
    display: inline-flex;
    margin-top: 2rem;
    gap: 0.85rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.5;
    cursor: pointer;
}

.gal-supplier-confirmation input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.18rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    accent-color: var(--color-accent);
}

.gal-supplier-form__submit {
    display: flex;
    width: min(100%, 19rem);
    margin-top: 2.75rem;
}

.gal-supplier-form__notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--color-accent);
    background: rgba(17, 24, 47, 0.72);
    color: var(--color-text-strong);
    font-size: 1rem;
}

.gal-supplier-form__notice--error {
    border-left-color: #e4a6a6;
}

.gal-supplier-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gal-contact-content {
    position: relative;
    padding-block: 9rem 0;
}

.gal-contact-content::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: -7rem;
    width: 28rem;
    height: 20rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 2.5rem 0 0;
    content: "";
    pointer-events: none;
}

.gal-contact-content::after {
    position: absolute;
    z-index: 0;
    top: 0;
    right: -7rem;
    width: 28rem;
    height: 20rem;
    border-top: 1.4px solid rgba(211, 186, 89, 0.92);
    border-left: 1.4px solid rgba(211, 186, 89, 0.92);
    border-radius: 2.5rem 0 0;
    content: "";
    pointer-events: none;
    filter: drop-shadow(0 0 0.35rem rgba(211, 186, 89, 0.72));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 54%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 54%, transparent 100%);
    -webkit-mask-position: -45% 0;
    mask-position: -45% 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 32% 100%;
    mask-size: 32% 100%;
    opacity: 0;
    animation: gal-contact-line-glow 3400ms cubic-bezier(0.16, 1, 0.3, 1) 1450ms infinite paused;
}

.gal-contact-content:has(.gal-contact-card.is-visible)::after {
    animation-play-state: running;
}

@keyframes gal-contact-line-glow {
    0% {
        -webkit-mask-position: -45% 0;
        mask-position: -45% 0;
        opacity: 0;
    }

    12%, 58% {
        opacity: 1;
    }

    72%, 100% {
        -webkit-mask-position: 145% 0;
        mask-position: 145% 0;
        opacity: 0;
    }
}

.gal-contact-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.gal-contact-card {
    min-height: 24.5rem;
    padding: 3rem 3.75rem;
    border: 1px solid rgba(35, 45, 85, 0.95);
    background: linear-gradient(
        180deg,
        rgba(9, 14, 28, 1) 0%,
        rgba(9, 14, 28, 0.3) 0.009999999747378752%,
        rgba(0, 26, 65, 0.7) 100%
    ), linear-gradient(to left, #090e1c, #090e1c);
}

.gal-contact-card h2 {
    margin-bottom: 2rem;
    font-size: clamp(1.6rem, 1.78vw, 2.125rem);
}

.gal-contact-card > p {
    max-width: 47rem;
    margin-bottom: 1.25rem;
}

.gal-contact-list {
    display: grid;
    margin: 0;
    gap: 1.35rem;
}

.gal-contact-list__item {
    position: relative;
    padding-left: 2.75rem;
}

.gal-contact-list__icon {
    position: absolute;
    top: 0.125rem;
    left: 0;
    display: block;
    width: auto;
    height: auto;
    max-width: none;
}

.gal-contact-list__item--location {
    padding-left: 2.375rem;
}

.gal-contact-list__item--location .gal-contact-list__icon {
    top: 0;
}

.gal-contact-list dt {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.45;
}

.gal-contact-list dd {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.gal-contact-list a {
    color: inherit;
    text-decoration: none;
}

.gal-contact-list a:hover,
.gal-contact-list a:focus-visible {
    color: var(--color-accent);
}

.gal-contact-card__note {
    margin-top: 1.25rem;
    margin-bottom: 0 !important;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.gal-contact-map {
    position: relative;
    min-height: 48.75rem;
    margin-top: 11rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 9, 24, 0.06), rgba(3, 9, 24, 0.06)),
        url("../images/contact-map.png") center / cover no-repeat,
        #030917;
}

.gal-contact-map.gal-focus-frame::after {
    display: none;
}

.gal-contact-map::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 22, 53, 0.22) 0%, rgba(0, 22, 53, 0.02) 42%, rgba(3, 7, 20, 0.08) 100%);
    content: "";
    pointer-events: none;
}

.gal-contact-map__pin {
    position: absolute;
    z-index: 1;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50% 50% 50% 0;
    background: var(--color-accent);
    box-shadow: none;
    transform: rotate(-45deg);
}

.gal-contact-map__pin::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--color-background);
    content: "";
    transform: translate(-50%, -50%);
}

.gal-contact-map__pin--hq {
    top: 29.5%;
    left: 41%;
}

.gal-contact-map__pin--business {
    top: 40.5%;
    left: 49.9%;
}

.gal-contact-map__pin--business-second {
    top: 42.5%;
    left: 50.7%;
}

.gal-contact-map__fullscreen,
.gal-contact-map__zoom {
    position: absolute;
    z-index: 2;
    right: 1.75rem;
}

.gal-contact-map__fullscreen {
    display: none;
    width: 2.625rem;
    min-width: 0;
    height: 2.625rem;
    min-height: 0;
    padding: 0;
    border: 0;
    background: #ffffff;
    color: #050715;
    cursor: default;
    place-items: center;
}

.gal-contact-map__fullscreen:hover,
.gal-contact-map__fullscreen:focus-visible {
    border: 0;
    background: #ffffff;
    color: #050715;
}

.gal-contact-map__fullscreen span {
    width: 1.25rem;
    height: 1.25rem;
    background:
        linear-gradient(#050715, #050715) left top / 0.42rem 2px no-repeat,
        linear-gradient(#050715, #050715) left top / 2px 0.42rem no-repeat,
        linear-gradient(#050715, #050715) right top / 0.42rem 2px no-repeat,
        linear-gradient(#050715, #050715) right top / 2px 0.42rem no-repeat,
        linear-gradient(#050715, #050715) left bottom / 0.42rem 2px no-repeat,
        linear-gradient(#050715, #050715) left bottom / 2px 0.42rem no-repeat,
        linear-gradient(#050715, #050715) right bottom / 0.42rem 2px no-repeat,
        linear-gradient(#050715, #050715) right bottom / 2px 0.42rem no-repeat;
}

.gal-contact-map__zoom {
    bottom: 8.875rem;
    display: grid;
    width: 2.625rem;
    background: #ffffff;
    color: #050715;
    font-size: 1.875rem;
    line-height: 1;
    text-align: center;
}

.gal-contact-map__zoom span {
    display: grid;
    height: 2.625rem;
    place-items: center;
}

.gal-contact-map__zoom span + span {
    border-top: 1px solid rgba(5, 7, 21, 0.24);
}

.gal-contact-locations {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 1.875rem;
    width: min(35.5rem, calc(100% - 3.75rem));
    min-height: 34.25rem;
    padding: 4.5rem 3.75rem 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 48% 55%, rgba(3, 30, 72, 0.97), rgba(3, 13, 34, 0.98) 63%, rgba(3, 9, 26, 0.99) 100%);
    box-shadow: none;
}

.gal-contact-locations h2 {
    margin-bottom: 2rem;
    color: var(--color-accent);
    font-size: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.gal-contact-location {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.875rem;
}

.gal-contact-location + .gal-contact-location {
    margin-top: 1.875rem;
}

.gal-contact-location__icon {
    position: relative;
    top: 0.28rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.gal-contact-location__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.35rem;
    height: 0.35rem;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
}

.gal-contact-location h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.5625rem;
    font-weight: var(--font-weight-regular);
    line-height: 1;
}

.gal-contact-location p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.gal-contact .gal-reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 600ms ease-out, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-contact .gal-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 74.9375rem) {
    .gal-contact-card {
        padding-inline: 2.5rem;
    }

    .gal-supplier-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem 2rem;
    }

    .gal-supplier-process__step:nth-child(2)::after,
    .gal-supplier-process__step:nth-child(2)::before {
        display: none;
    }
}

@media (max-width: 63.9375rem) {
    .gal-contact-hero {
        min-height: 44rem;
        background-position: 55% center;
    }

    .gal-contact-content {
        padding-top: 7rem;
    }

    .gal-contact-cards {
        grid-template-columns: 1fr;
    }

    .gal-contact-card {
        min-height: 0;
    }

    .gal-contact-map {
        min-height: 42rem;
        margin-top: 8rem;
    }

    .gal-contact-locations {
        width: min(31rem, calc(100% - 3.75rem));
        min-height: 0;
        padding: 3rem;
    }

    .gal-supplier-registration {
        padding-block: 7rem 8rem;
    }

    .gal-supplier-registration h2 {
        margin-bottom: 5rem;
    }

    .gal-supplier-form {
        margin-top: 7rem;
    }

    .gal-supplier-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 47.9375rem) {
    .gal-contact-hero {
        min-height: 38rem;
        background-position: 58% center;
    }

    .gal-contact-hero__inner {
        padding-bottom: 4.5rem;
    }

    .gal-contact-hero h1 {
        margin-bottom: 3.5rem;
    }

    .gal-contact-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gal-contact-tabs .button {
        min-width: 0;
        padding-inline: 0.75rem;
    }

    .gal-contact-content {
        padding-top: 5rem;
    }

    .gal-contact-card {
        padding: 2rem 1.5rem;
    }

    .gal-contact-card h2 {
        line-height: 1.1;
    }

    .gal-contact-map {
        min-height: 0;
        margin-top: 5rem;
        padding-top: 20rem;
    }

    .gal-contact-map__pin--hq {
        top: 6rem;
        left: 43%;
    }

    .gal-contact-map__pin--business {
        top: 10rem;
        left: 61%;
    }

    .gal-contact-map__pin--business-second {
        top: 11rem;
        left: 64%;
    }

    .gal-contact-map__fullscreen {
        top: 0.75rem;
        right: 0.75rem;
    }

    .gal-contact-map__zoom {
        right: 0.75rem;
        top: 12rem;
        bottom: auto;
    }

    .gal-contact-locations {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
        margin: 0 0.75rem 0.75rem;
        padding: 1.75rem;
    }

    .gal-contact-locations h2 {
        font-size: 1.75rem;
    }

    .gal-contact-location h3 {
        font-size: 1.375rem;
    }

    .gal-contact-location p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .gal-supplier-hero {
        background-position: 46% center;
    }

    .gal-supplier-registration {
        min-height: 0;
        padding-block: 5rem 6rem;
    }

    .gal-supplier-registration__blueprint {
        top: 10rem;
        right: -15rem;
        width: 58rem;
        opacity: 0.055;
    }

    .gal-supplier-registration h2 {
        margin-bottom: 3.5rem;
    }

    .gal-supplier-process {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .gal-supplier-process__step {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        padding-right: 0;
    }

    .gal-supplier-process__marker {
        width: 4.5rem;
        height: 4.5rem;
    }

    .gal-supplier-process__step::after,
    .gal-supplier-process__step::before {
        display: none;
    }

    .gal-supplier-form {
        margin-top: 5.5rem;
    }

    .gal-supplier-form__grid {
        grid-template-columns: 1fr;
    }

    .gal-supplier-confirmation {
        font-size: 0.92rem;
    }
}

@media (max-width: 29.9375rem) {
    .gal-contact-tabs {
        grid-template-columns: 1fr;
    }

    .gal-supplier-process__step {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        gap: 1rem;
    }

    .gal-supplier-process__marker {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gal-contact .gal-reveal {
        opacity: 1;
        transform: none;
    }

    .gal-contact-content::after {
        animation: none;
        opacity: 0;
    }
}
