/* =========================================================
   CONTACT PAGE
========================================================= */

/* Page Hero */

.contact-hero {
    position: relative;
    padding: 190px 0 105px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 34%,
            rgba(237, 28, 36, .12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #17181c 0%,
            #22242a 56%,
            #111216 100%
        );
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: #fff;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

    background-size: 50px 50px;

    mask-image: linear-gradient(to bottom, black, transparent);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
}

.contact-hero h1 {
    margin: 18px 0 20px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -.045em;
    color: #fff !important;
}

.contact-hero h1 span,
.contact-section h2 span,
.location-heading h2 span {
    color: var(--red);
}

.contact-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}


/* Contact Section */

.contact-section {
    position: relative;
    padding: 110px 0;
    background: var(--soft);
}

.contact-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(340px, .75fr);

    gap: 55px;
    align-items: start;
}


/* Contact Form */

.contact-form-wrap {
    padding: 48px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-form-heading {
    margin-bottom: 40px;
}

.contact-form-heading h2,
.contact-info-wrap h2,
.location-heading h2 {
    margin: 14px 0 15px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.contact-form-heading h2,
.contact-info-wrap h2,
.location-heading h2 {
    color: var(--ink);
}

.contact-form-wrap .eyebrow,
.contact-info-wrap .eyebrow,
.location-heading .eyebrow {
    color: var(--ink);
}

.contact-form-heading p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label,
.form-group legend {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.form-group label > span,
.form-group legend > span {
    color: var(--red);
}

.form-group input {
    width: 100%;
    height: 58px;
    padding: 0 17px;

    color: var(--ink);
    font-family: inherit;
    font-size: 15px;

    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 10px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.form-group input::placeholder {
    color: #9a9da5;
}

.form-group input:hover {
    border-color: #c8cbd1;
}

.form-group input:focus {
    background: #fff;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(237,28,36,.1);
}


/* Radio Cards */

.traded-before {
    padding: 0;
    margin: 3px 0 4px;
    border: 0;
}

.traded-before legend {
    margin-bottom: 12px;
}

.radio-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 76px;
    padding: 15px 17px;

    cursor: pointer;

    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 10px;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.radio-card:hover {
    border-color: rgba(237,28,36,.55);
    background: rgba(237,28,36,.04);
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-indicator {
    position: relative;
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    border-radius: 50%;
    border: 2px solid #b9bdc6;
}

.radio-indicator::after {
    content: "";

    position: absolute;
    inset: 3px;

    border-radius: 50%;
    background: var(--red);

    transform: scale(0);
    transition: transform .18s ease;
}

.radio-card:has(input:checked) {
    border-color: var(--red);
    background: rgba(237,28,36,.06);
}

.radio-card input:checked + .radio-indicator {
    border-color: var(--red);
}

.radio-card input:checked + .radio-indicator::after {
    transform: scale(1);
}

.radio-card:has(input:focus-visible) {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.radio-card strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 14px;
}

.radio-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.contact-submit {
    justify-self: start;
    margin-top: 5px;
}


/* Contact Info */

.contact-info-wrap {
    position: sticky;
    top: 115px;

    padding: 42px;

    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-intro {
    margin-bottom: 34px;
    color: var(--muted);
    line-height: 1.7;
}

.contact-info-list {
    display: grid;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;

    padding: 24px 0;

    border-top: 1px solid var(--line);
}

.contact-info-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border-radius: 10px;

    color: var(--red);
    background: rgba(237,28,36,.1);
    border: 1px solid rgba(237,28,36,.2);
}

.contact-info-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-label {
    display: block;
    margin-bottom: 6px;

    color: #8a8e97;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.contact-info-item p,
.contact-info-item a {
    margin: 0;

    color: var(--ink);
    font-size: 14px;
    line-height: 1.65;

    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--red);
}

.contact-note {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 11px;

    margin-top: 12px;
    padding: 17px;

    background: #fafafb;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.contact-note-icon {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    color: var(--red);
    font-size: 12px;
    font-weight: 700;

    border: 1px solid rgba(237,28,36,.35);
    border-radius: 50%;
}

.contact-note p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}


/* Map */

.location-section {
    padding-top: 100px;
    background: #fff;
}

.location-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;

    padding-bottom: 45px;
}

.location-heading p {
    width: min(420px, 100%);
    margin: 0;

    color: var(--muted);
    line-height: 1.7;
}

.map-wrap {
    position: relative;
    height: 500px;
    overflow: hidden;

    border-top: 1px solid var(--line);
}

.map-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.18),
            transparent 25%
        );
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;

    filter: grayscale(.25) contrast(.98);
    opacity: 1;
}

.form-alert {
    margin-bottom: 25px;
    padding: 15px 18px;
    border-radius: 8px;
    font-size: .9rem;
    line-height: 1.6;
}

.form-alert-success {
    color: #176b37;
    background: #edf9f1;
    border: 1px solid #bde5c9;
}

.form-alert-error {
    color: #9d2028;
    background: #fff1f2;
    border: 1px solid #f0c6c9;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Responsive */

@media (max-width: 900px) {

    .contact-hero {
        padding: 155px 0 80px;
    }

    .contact-section {
        padding: 80px 0;
    }

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

    .contact-info-wrap {
        position: static;
    }

    .location-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

}


@media (max-width: 640px) {

    .contact-hero {
        padding: 135px 0 65px;
    }

    .contact-hero p {
        font-size: 16px;
    }

    .contact-form-wrap,
    .contact-info-wrap {
        padding: 28px 22px;
    }

    .form-row,
    .radio-options {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }

    .location-section {
        padding-top: 75px;
    }

    .map-wrap {
        height: 390px;
    }

}