:root {
    --input-shadow: 0 9px 10px rgba(0, 0, 0, .35);
    --orange: #f04a24;
    --text-muted: #b8b8bb;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #052512;
}

.landing {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
}

.landing__background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.landing__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing__stage {
    position: relative;
    z-index: 1;
    width: min(100vw, calc(100svh * 16 / 9));
    height: min(100svh, calc(100vw * 9 / 16));
    min-height: 620px;
    margin: 0 auto;
}

.landing__title {
    position: absolute;
    top: 7.6%;
    left: 50%;
    width: 49.4%;
    transform: translateX(-50%);
    display: block;
}

.landing__instructions {
    position: absolute;
    top: 72.4%;
    left: 50%;
    width: 30.4%;
    transform: translateX(-50%);
    display: block;
    cursor: pointer;
}

.promo-form {
    position: absolute;
    top: 56.85%;
    left: 50%;
    width: 55.4%;
    transform: translateX(-50%);
}

.promo-form__row {
    display: grid;
    gap: 2.6%;
}

.promo-form__row--top {
    grid-template-columns: 2.13fr 1fr;
}

.promo-form__row--bottom {
    grid-template-columns: 1fr 1fr;
    width: 88%;
    margin: 3.5% auto 0;
}

.promo-form label {
    display: block;
    margin: 0;
}

.promo-form label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.promo-form input {
    width: 100%;
    height: clamp(40px, 2.5vw, 48px);
    border: 0;
    border-radius: 4px;
    box-shadow: var(--input-shadow);
    padding: 0 clamp(14px, 1.2vw, 22px);
    color: #333;
    font-size: clamp(19px, 1.65vw, 31px);
    font-weight: 700;
    outline: 0;
    background: #fff;
}

.promo-form input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.promo-form input[type="number"]::-webkit-inner-spin-button,
.promo-form input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.promo-form input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.promo-form input:focus {
    box-shadow: 0 0 0 4px rgba(240, 74, 36, .35), var(--input-shadow);
}

.promo-form__submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    padding: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .68);
}

.modal[hidden] {
    display: none;
}

.modal__dialog {
    position: relative;
    width: min(92vw, 560px);
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.modal__image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
}

.modal__image[hidden] {
    display: none;
}

.modal__message {
    margin: 10px 0 22px;
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

.modal__button {
    border: 0;
    border-radius: 4px;
    padding: 12px 30px;
    background: var(--orange);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767px) {
    body {
        overflow-y: auto;
    }

    .landing {
        min-height: 100svh;
    }

    .landing__background {
        position: absolute;
    }

    .landing__stage {
        width: 100vw;
        height: max(100svh, 180vw);
        min-height: 100svh;
    }

    .landing__title {
        top: 10.85%;
        width: 94.7%;
    }

    .promo-form {
        top: 46.7%;
        width: 70%;
    }

    .promo-form__row,
    .promo-form__row--top,
    .promo-form__row--bottom {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.25svh;
        margin: 0;
    }

    .promo-form__row--bottom {
        margin-top: 1.25svh;
    }

    .promo-form input {
        height: 3.25svh;
        min-height: 28px;
        border-radius: 7px;
        padding: 0 7.6%;
        font-size: clamp(15px, 3.2vw, 30px);
    }

    .landing__instructions {
        top: 66.8%;
        width: 58.2%;
    }
}

@media (max-width: 520px) {
    .promo-form input {
        font-size: clamp(15px, 4.6vw, 24px);
    }

    .landing__instructions {
        width: 66%;
    }
}
