/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    padding: 90px 0 120px;
    background: #080808;
}

.contact-container {
    width: min(1100px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.contact-heading {
    margin-bottom: 65px;
}

.contact-heading h1 {
    margin-top: 25px;

    font-size: clamp(55px, 8vw, 100px);

    line-height: .86;

    font-weight: 900;

    letter-spacing: -5px;

    text-transform: uppercase;
}

.contact-heading h1 span {
    display: block;
    color: #ff7300;
}

.contact-heading p {
    max-width: 850px;

    margin-top: 25px;

    color: #858585;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px 22px;
}

.form-field {
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.form-field small {
    display: block;

    margin-top: 8px;

    color: #555555;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   INPUTS
========================================================= */

.form-field input,
.form-field textarea,
.form-field select {

    width: 100%;

    border: 1px solid #303030;

    background: #111111;

    color: #ffffff;

    border-radius: 2px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.form-field input,
.form-field select {
    height: 52px;

    padding: 0 16px;
}

.form-field textarea {
    padding: 16px;

    resize: vertical;

    min-height: 170px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #5e5e5e;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #ff7300;
    background: #141414;
}


/* =========================================================
   NATIVE SELECT
========================================================= */

.form-field select {
    appearance: none;

    -webkit-appearance: none;

    background-color: #111111;

    background-image:
        linear-gradient(45deg, transparent 50%, #aaa 50%),
        linear-gradient(135deg, #aaa 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 22px,
        calc(100% - 12px) 22px;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}


/* =========================================================
   CUSTOM DROPDOWNS
========================================================= */

.custom-dropdown {
    position: relative;

    width: 100%;
}

.country-fixed {
    min-height: 52px;
    padding: 0 16px;

    display: flex;
    align-items: center;

    border: 1px solid #303030;
    background: #111111;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.dropdown-trigger {
    width: 100%;

    min-height: 52px;

    padding: 0 16px;

    border: 1px solid #303030;

    background: #111111;

    color: #ffffff;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: space-between;

    text-align: left;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.dropdown-trigger:hover,
.custom-dropdown.open .dropdown-trigger {
    border-color: #ff7300;

    background: #141414;
}

.dropdown-trigger:focus-visible,
.dropdown-item:focus-visible,
.dropdown-arrow {
    color: #888888;

    font-size: 13px;

    transition:
        transform .2s ease;
}

.custom-dropdown.open
.dropdown-arrow {
    transform:
        rotate(180deg);
}


/* =========================================================
   CUSTOM DROPDOWN LIST
========================================================= */

.dropdown-list {
    position: absolute;

    z-index: 2000;

    top: calc(100% + 7px);

    left: 0;

    width: 100%;

    max-height: 300px;

    overflow-y: auto;

    padding: 6px;

    background: #111111;

    border: 1px solid #333333;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.65);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-7px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.custom-dropdown.open
.dropdown-list {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}

.dropdown-item {
    width: 100%;

    min-height: 43px;

    padding: 10px 13px;

    border: 0;

    background: transparent;

    color: #dddddd;

    cursor: pointer;

    text-align: left;

    font-size: 13px;

    transition:
        background .15s ease,
        color .15s ease;
}

.dropdown-item:hover {
    background: #ff7300;

    color: #080808;
}

.dropdown-item.selected {
    background: #1c1c1c;

    color: #ff7300;
}


/* =========================================================
   PHONE
========================================================= */

.phone-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-width: 0;
}

.phone-country-picker {
    position: relative;
    min-width: 0;
}

.phone-code-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 52px;
    padding: 0 9px;
    border: 1px solid #303030;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    background: #171717;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.phone-code-trigger:hover,
.phone-code-trigger[aria-expanded="true"] {
    background: #1d1d1d;
    color: #ff7300;
}

.phone-code-chevron { color: #999; font-size: 11px; }

.phone-code-trigger:focus-visible,
.phone-country-search:focus-visible,
.phone-country-option:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #ff7300;
    outline-offset: 2px;
}

.phone-field > input[name="phone"] {
    border-left: 0;
    border-radius: 0 2px 2px 0;
    min-width: 0;
}

.phone-country-menu {
    position: fixed;
    z-index: 5000;
    width: min(310px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid #383838;
    border-radius: 3px;
    background: #101010;
    box-shadow: 0 18px 48px rgb(0 0 0 / 75%);
    overflow: hidden;
}

.phone-country-search-label {
    display: block;
    margin: 0 0 7px;
    color: #aaa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.phone-country-search {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #383838;
    border-radius: 2px;
    background: #080808;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.phone-country-search:focus { border-color: #ff7300; outline: none; }

.phone-country-options {
    max-height: min(290px, calc(100dvh - 190px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 8px;
}

.phone-country-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 6px 9px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #eee;
    text-align: left;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.phone-country-option:hover,
.phone-country-option[aria-selected="true"] {
    background: #24201c;
    color: #ff8a2b;
}

.phone-country-option-code { color: #aaa; font-variant-numeric: tabular-nums; }
.phone-country-empty { margin: 10px 2px 2px; color: #aaa; font-size: 12px; }
.phone-validation-message.is-error { color: #ffaaa3; }

@media (max-width: 500px) {
    .phone-field { grid-template-columns: 104px minmax(0, 1fr); }
    .phone-code-trigger { gap: 5px; padding: 0 6px; }
    .phone-field > input[name="phone"] { padding: 0 10px; font-size: 12px; }
}


/* =========================================================
   SUBMIT
========================================================= */

.form-submit {
    margin-top: 35px;
}

.form-turnstile {
    margin-top: 24px;
}

.form-submit .btn {
    min-width: 240px;

    cursor: pointer;
}

.form-message {
    display: none;

    margin-top: 20px;

    padding: 15px;

    border: 1px solid #333333;

    background: #111111;

    color: #aaa;

    font-size: 12px;
}

.form-message.is-error {
    border-color: #8f352e;
    color: #ffaaa3;
}

.form-message.is-success {
    border-color: #3d754e;
    color: #a9dfb5;
}

.form-submit .btn:disabled {
    cursor: wait;
    opacity: .7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 750px) {

    .contact-container {
        width:
            calc(100% - 40px);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

}


@media (max-width: 500px) {

    .contact-container {
        width:
            calc(100% - 28px);
    }

    .contact-heading h1 {
        font-size: 52px;

        letter-spacing: -3px;
    }

}
