/* Базовые стили и обнуление */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Arial", sans-serif;
    background: url(../img/hero.svg) center center/cover no-repeat;
    color: white;
    font-size: 16px;
    line-height: 1.6;
}

/* Скрытые элементы */
.hidden {
    display: none !important;
}

/* Шапка */
.top-bar {
    display: flex;
    align-items: center;
    padding: 30px 40px 0;
}

#logo {
    width: 120px;
    height: auto;
}

/* Основной контейнер */
.content {
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Intro блок */
#intro {
    width: 100%;
    max-width: 885px;
    margin: 0 auto;
}

#intro h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
}

#intro p {
    color: #ccc;
    margin-bottom: 12px;
    font-size: 16px;
}

#start-btn {
    margin-top: 25px;
    width: 100%;
}

/* Кнопки */
button {
    background-color: #e30613;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    padding: 16px;
    border: none;
    border-radius: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #be0611;
}

#next-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ====== QUIZ ====== */
#quiz {
    width: 100%;
    max-width: 885px;
    margin: 0 auto;
    background-color: transparent;
    border: 1px solid #e30613;
    padding: 30px;
    border-radius: 20px;
}

#quiz h1 {
    font-size: 16px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    text-decoration: underline;
}

.answers {
    list-style: none;
    padding: 0;
}

.answers li {
    margin-bottom: 16px;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
}

.custom-radio input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #e30613;
    border-radius: 50%;
    background-color: transparent;
    position: relative;
    cursor: pointer;
}

.custom-radio input[type="radio"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

.custom-radio input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

#additional-text {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    margin-top: 20px;
    resize: none;
}

/* Навигация в квизе */
#nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

/* ====== ФОРМА ====== */
#form-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #0d0d0d;
    padding: 30px;
    border: 1px solid #e30613;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#form-container h1 {
    font-size: 20px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 24px;
    text-decoration: underline;
}

/* Поля формы */
#final-form .input,
#final-form select {
    width: 100%;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    font-size: 15px;
}

/* Телефон */
.phone-wrapper {
    position: relative;
}

.phone-wrapper input[type="tel"] {
    width: 100%;
}

.iti {
    width: 100%;
}

.iti__selected-dial-code {
    color: #000 !important;
}

/* Чекбокс возраста */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #fff;
    margin: 12px 0 20px;
}

.checkbox-label input {
    margin-right: 10px;
}

/* Кнопка */
#submit-btn {
    width: 100%;
    background-color: #e30613;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px;
    border: none;
    border-radius: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#submit-btn:hover {
    background-color: #be0611;
}

/* ====== Подвал ====== */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px 30px;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    text-align: left;
}

.footer a {
    font-size: 16px;
    color: #fff;
    text-decoration: underline;
}

.copy {
    color: #fff;
    font-size: 16px;
    text-align: right;
}

/* ====== Адаптив ====== */
@media screen and (max-width: 600px) {
    body {
        padding: 20px;
    }

    #form-container {
        padding: 20px;
        border-radius: 16px;
        max-width: 100%;
    }

    #form-container h1 {
        font-size: 18px;
    }

    #submit-btn {
        font-size: 18px;
    }

    .final-text h2 {
        font-size: 20px;
    }

    .final-text p {
        font-size: 16px;
    }

    .copy,
    .footer p {
        text-align: center;
        width: 100%;
    }
}
