/* ========== Đăng ký lái thử ========== */
.testdrive-page {
    background: #fff;
    padding: 40px 0 72px;
}

.testdrive-page__header {
    text-align: center;
    margin-bottom: 36px;
}

.testdrive-page__title {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.25;
}

.testdrive-page__intro {
    margin: 0 auto;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.testdrive-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 28px 40px;
    align-items: start;
}

.testdrive-aside {
    order: 2;
    background: #f5f5f5;
    border: 1px solid #ececec;
    padding: 24px 22px;
}

.testdrive-aside__title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a1a1a;
}

.testdrive-aside__item + .testdrive-aside__item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.testdrive-aside__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.testdrive-aside__item p,
.testdrive-aside__item a {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.testdrive-aside__item a:hover {
    color: #eb0a1e;
}

.testdrive-form-wrap {
    order: 1;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    padding: 28px 28px 32px;
}

.testdrive-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 4px;
}

.testdrive-alert strong {
    margin-right: 4px;
}

.testdrive-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.testdrive-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.testdrive-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.testdrive-field--full {
    grid-column: 1 / -1;
}

.testdrive-field > label,
.testdrive-field__legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #101010;
    line-height: 1.4;
}

.testdrive-field > label em {
    color: #eb0a1e;
    font-style: normal;
}

.testdrive-field input[type="text"],
.testdrive-field input[type="tel"],
.testdrive-field input[type="email"],
.testdrive-field input[type="date"],
.testdrive-field input[type="time"],
.testdrive-field select,
.testdrive-field textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #101010;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.testdrive-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.testdrive-field input[type="text"]:focus,
.testdrive-field input[type="tel"]:focus,
.testdrive-field input[type="email"]:focus,
.testdrive-field input[type="date"]:focus,
.testdrive-field input[type="time"]:focus,
.testdrive-field select:focus,
.testdrive-field textarea:focus {
    border-color: #eb0a1e;
    box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.08);
}

.testdrive-select {
    position: relative;
}

.testdrive-select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.testdrive-select select {
    padding-right: 36px;
    cursor: pointer;
}

.testdrive-radios {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}

.testdrive-radios--wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.testdrive-field .testdrive-radio {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
    cursor: pointer;
    width: auto;
}

.testdrive-field .testdrive-radio input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
    padding: 0;
    flex: 0 0 18px;
    appearance: auto;
    -webkit-appearance: radio;
    accent-color: #eb0a1e;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.testdrive-field .testdrive-radio span {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 18px;
    vertical-align: middle;
    white-space: nowrap;
}

.testdrive-form__actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.testdrive-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 48px;
    padding: 0 28px;
    border: 2px solid #eb0a1e;
    background-color: #eb0a1e;
    color: #eb0a1e !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.testdrive-form__submit:hover:not(:disabled) {
    background-color: #fff;
    color: #eb0a1e !important;
}

.testdrive-form__submit--loading {
    opacity: 0.7;
    cursor: wait;
}

@media (max-width: 991px) {
    .testdrive-page__layout {
        grid-template-columns: 1fr;
    }

    .testdrive-page__title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .testdrive-page {
        padding: 28px 0 48px;
    }

    .testdrive-form-wrap {
        padding: 20px 16px 24px;
    }

    .testdrive-form__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .testdrive-radios--wrap {
        grid-template-columns: 1fr;
    }

    .testdrive-form__submit {
        width: 100%;
    }
}
