
/* Новый враппер для квиза */
.quiz-section-wrapper {
    margin: 40px auto; /* Центрируем и добавляем отступы */
}

.quiz-outer-container {
    padding: 20px; /* Отступы внутри рамки до самого квиза */
    background-color: #fff; /* Белый фон внутри пунктирной рамки */
    border-radius: 8px; /* Небольшое скругление для рамки (опционально) */
    margin-bottom: 2px; /* Чтобы линия была вплотную */
}

.quiz-container {
    background-color: #fff; /* Белый фон самого квиза (уже был) */
    /* padding: 30px 40px; Убираем, т.к. padding теперь у .quiz-outer-container */
    border-radius: 0; /* Убираем, если скругление у .quiz-outer-container */
    box-shadow: none; /* Убираем тень, т.к. ее нет на новом скриншоте */
}

.quiz-title {
    text-align: left;
    font-size: 1.8em;
    font-weight: normal;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px; /* Уменьшил отступ */
    text-transform: uppercase;
    line-height: 1.4;
}

.quiz-title .highlight {
    color: var(--primary-color);
    font-weight: bold;
    /* padding: 0 2px; */ /* Кажется, на новом скриншоте нет явного padding */
}

.step-question {
    font-size: 0.85em; /* Поменьше, как на скриншоте */
    color: #555;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.options-grid {
    display: grid;
    /* На скриншоте 6 карточек, вероятно, grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Подбираем minmax */
    gap: 15px; /* Уменьшил отступ */
}

.option-item {
    background-color: #f7f2ec;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px; /* Уменьшил padding */
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px; /* Уменьшил высоту */
}
.option-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}
.option-item.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light); /* Более светлый зеленый для выбранного */
}

.option-item img {
    max-width: 100%;
    height: auto;
    max-height: 150px; /* Уменьшил высоту картинки */
    margin-bottom: 8px;
    object-fit: contain;
}
.option-item .option-question-mark {
    font-size: 2.5em; /* Уменьшил */
    font-weight: bold;
    color: #888;
    margin: auto;
    line-height: 80px; /* Чтобы по высоте совпадало с картинками */
}

.option-item span {
    font-size: 0.8em; /* Уменьшил */
    color: #333;
    margin-top: auto;
}

.quiz-footer {
    display: flex;
    justify-content: space-between; /* Теперь кнопка справа, прогресс слева */
    align-items: center;
    margin-top: 25px; /* Уменьшил */
    padding-top: 15px; /* Уменьшил */
    border-top: 1px solid #eee;
}

.progress-info {
    flex-grow: 1; /* Занимает доступное место */
    margin-right: 20px;
}



.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 6px; /* Тоньше */
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.quiz-navigation {
   /* display: flex; уже есть */
   /* gap: 10px; уже есть */
}

.quiz-btn {
    padding: 10px 25px; /* Кнопка "Далее" стала шире */
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.quiz-btn-next {
    background-color: #ccc; /* Неактивная */
    color: #fff;
}
/* Стили для активной кнопки "Далее" */
.quiz-btn-next:not(:disabled) {
    background-color: var(--primary-color); /* Новый зеленый цвет кнопки */
    color: #fff;
}
.quiz-btn-next:not(:disabled):hover {
    background-color: var(--primary-dark); /* Темнее при наведении */
}

.quiz-btn-prev { /* Кнопка "Назад", если будет использоваться */
    background-color: #f0f0f0;
    color: #555;
}
.quiz-btn-prev:hover {
    background-color: #e0e0e0;
}

.quiz-btn:disabled {
    opacity: 0.6; /* Немного другая прозрачность */
    cursor: not-allowed;
}
.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.quiz-modal-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 1000px;
    width: 90%;
}
.quiz-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
}
body.modal-open {
    overflow: hidden;
}

.final-quiz-form a {
    color: var(--primary-color);
}
.final-quiz-form a:hover {
    color: var(--primary-dark);
}

/* 1. Делаем так, чтобы сам инпут выглядел как надо */
.final-quiz-form .iti input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px; /* <-- УБРАЛИ БОЛЬШОЙ ОТСТУП СЛЕВА */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    height: auto;
}

/* 2. Убираем лишнюю внешнюю рамку */
.final-quiz-form .iti {
    box-shadow: none;
    border: none;
    width: 100%; /* Заставляем контейнер занимать всю ширину */
}

/* 3. Растягиваем контейнер на всю ширину */
.final-quiz-form .iti--container {
    width: 100%;
}
.final-quiz-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.final-quiz-form .form-group input {
    width: 95%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}
.final-quiz-form .form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.final-quiz-form .form-group-checkbox label {
    font-size: 0.8em;
    color: #555;
}

/* НОВЫЕ СТИЛИ: Для красивых текстовых карточек */
.option-item.text-only {
    justify-content: center; /* Центрируем текст по вертикали */
    align-items: center;     /* И по горизонтали */
    min-height: 100px;       /* Можно сделать их чуть ниже */
    padding: 20px 10px;
}

.option-item.text-only span {
    font-size: 1.1em;      /* Делаем шрифт крупнее */
    font-weight: 500;
    margin-top: 0;         /* Убираем верхний отступ у текста */
}