/* Simple hero: container filled by image, Motofont title overlay, no parallax/strip */
.test-drive-header {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    height: clamp(220px, 34vw, 420px);
    overflow: hidden;
}

.test-drive-header__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.test-drive-header__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.test-drive-header__title {
    margin: 0;
    max-width: 18ch;
    color: #fff !important;
    text-transform: uppercase;
    font-family: "Motofont", "Arial", "Helvetica", "Noto Sans", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1.05em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.test-drive-form__lead {
    margin: 0 0 1.5rem;
    max-width: 40rem;
    line-height: 1.6;
}

.test-drive-form__step {
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.test-drive-form__world-select-wrap {
    display: none;
}

.test-drive-form__worlds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.15rem;
    margin: 1.25rem 0 0.85rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.test-drive-form__world {
    appearance: none;
    margin: 0;
    padding: 0.65rem 0.85rem 0.7rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #555;
    cursor: pointer;
    font-family: "Motofont", "Arial", "Helvetica", "Noto Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.test-drive-form__world:hover {
    color: #111;
}

.test-drive-form__world.is-active {
    color: #111;
    border-bottom-color: #111;
}

.test-drive-form__world:focus-visible {
    outline: 2px solid #0057ff;
    outline-offset: 2px;
}

@media (max-width: 959px) {
    .test-drive-form__worlds,
    .test-drive-form__world-hint {
        display: none;
    }

    .test-drive-form__world-select-wrap {
        display: block;
        width: 100%;
        max-width: none;
        margin: 1rem 0 0.85rem;
    }
}

.test-drive-form__world-hint,
.test-drive-form__world-empty {
    margin: 0.85rem 0 1.25rem;
    color: #555;
    line-height: 1.5;
}

.test-drive-form [hidden] {
    display: none !important;
}

.test-drive-form__vehicles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.25rem 0 1.75rem;
}

@media (min-width: 960px) {
    .test-drive-form__vehicles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.test-drive-form__vehicle {
    position: relative;
    display: block;
    margin: 0;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

@media (max-width: 639px) {
    .test-drive-form__vehicles {
        gap: 0.55rem;
    }

    .test-drive-form__vehicle {
        padding: 0.8rem 0.7rem;
    }
}

.test-drive-form__vehicle:hover {
    border-color: #111;
}

.test-drive-form__vehicle:has(input:checked),
.test-drive-form__vehicle.is-selected {
    border-color: #111;
    background: #f7f7f7;
    box-shadow: inset 0 0 0 1px #111;
}

.test-drive-form__vehicle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.test-drive-form__vehicle-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.test-drive-form__vehicle-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.test-drive-form__vehicle-name {
    flex: 1 1 auto;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

@media (max-width: 639px) {
    .test-drive-form__vehicle-name {
        font-size: 0.92rem;
    }

    .test-drive-form__vehicle-top {
        gap: 0.45rem;
        align-items: flex-start;
    }
}

.test-drive-form__vehicle-check {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(17, 17, 17, 0.35);
    border-radius: 50%;
    background: #fff;
    position: relative;
}

.test-drive-form__vehicle:has(input:checked) .test-drive-form__vehicle-check,
.test-drive-form__vehicle.is-selected .test-drive-form__vehicle-check {
    border-color: #111;
    background: #111;
}

.test-drive-form__vehicle:has(input:checked) .test-drive-form__vehicle-check::after,
.test-drive-form__vehicle.is-selected .test-drive-form__vehicle-check::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.18rem;
    width: 0.35rem;
    height: 0.65rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.test-drive-form__meta,
.test-drive-form__desc {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.test-drive-form__meta {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
}

.test-drive-form__step > label,
.test-drive-form__step > .test-drive-form__row label,
.test-drive-form label[for] {
    display: block;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.95rem;
}

.test-drive-form input[type="text"],
.test-drive-form input[type="email"],
.test-drive-form input[type="tel"],
.test-drive-form select {
    width: 100%;
    max-width: 32rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #111;
    background: #fff;
}

@media (max-width: 959px) {
    .test-drive-form .test-drive-form__world-select-wrap select {
        width: 100%;
        max-width: none;
        min-height: 2.75rem;
        padding: 0.7rem 2.5rem 0.7rem 0.8rem;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.9rem center;
        background-size: 12px 8px;
    }
}

.test-drive-form__row {
    display: grid;
    gap: 1rem;
    max-width: 32rem;
}

@media (min-width: 640px) {
    .test-drive-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.test-drive-form__address-label {
    margin: 1.25rem 0 0.75rem;
    max-width: 40rem;
    font-weight: 700;
    line-height: 1.45;
}

.test-drive-form__check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    max-width: 40rem;
    margin: 0.85rem 0;
    cursor: pointer;
}

.test-drive-form__check.input-invalid {
    color: #b00020;
}

.test-drive-form__check.input-invalid input[type="checkbox"] {
    outline: 2px solid #b00020;
    outline-offset: 1px;
}

.test-drive-form__check input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0.2rem 0 0;
    flex: 0 0 auto;
    accent-color: #0057ff;
    background: #fff;
    border: 1px solid #8b8b8b;
    cursor: pointer;
}

.test-drive-form__success {
    margin: 1rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid #111;
}

.test-drive-form__verify {
    margin: 1.5rem 0;
    max-width: 28rem;
}
