.quiz {
    padding: 60px 0;
}
.quiz-holder {
    background-color: #fff;
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    padding: 40px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    @media (width <= 768px) {
        padding: 20px;
    }
}

.quiz-header {
    margin-bottom: 40px;
    @media (width <= 768px) {
        margin-bottom: 25px;
    }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    @media (width <= 768px) {
        flex-direction: column;
        align-items: flex-start;
    }
}

.quiz-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--font-color);
    @media (width <= 768px) {
        font-size: 24px;
        line-height: 29px;
    }
}

.step-counter {
    font-size: 16px;
    color: #888;
    white-space: nowrap;
}

    /* Полоса прогресса */
.progress-bar-container {
    display: flex;
    gap: 0;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    @media (width <= 768px) {
        display: none;
    }
}

.progress-segment {
    flex: 1;
    height: 6px;
    background-color: #e8ebee;
    border-radius: 0;
    transition: background-color 0.3s ease;
    &.active {
        background-color: var(--primary-color)
    }
}

.progress-small-wrapper {
    display: flex;
    gap: 20px;
    @media (width <= 768px) {
        width: 100%;
        justify-content: space-between;
    }
}
    
.progress-small-container {
    display: flex;
    gap: 3px;
    align-items: center;
}
    
.progress-small-segment {
    width: 32px;
    height: 6px;
    border-radius: 6px;
    background-color: #e8ebee;
    &.active {
        background-color: var(--primary-color);
    }
}

    /* Контент шагов */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

    /* Сетка вариантов ответа */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

    /* Карточка варианта */
.option-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.option-card:hover {
    border-color: var(--primary-color);
}

    /* Скрываем стандартный радио инпут */
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

    /* Кастомный кружок */
.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #dcdcdc;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.option-text {
    font-size: 16px;
}

    /* Состояние выбранного варианта */
.option-card.selected {
    border-color: var(--primary-color);
    background-color: #f2f9fd;
}

.option-card.selected .radio-custom {
    border-color: var(--primary-color);
}

.option-card.selected .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: block;
}

    /* Подвал квиза (Кнопки) */
.quiz-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    gap: 15px;
    &.active {
        justify-content: space-between;
    }
    @media (width <= 768px) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        &.grid-100 {
            grid-template-columns: 100%;
        }
    }
}

.quiz-btn {
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 52px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
    @media (width > 768px) {
        padding: 0 28px;
    }
}

.btn-next {
    background-color: var(--secondary-color);
    color: #282828;
    &:hover {
        background-color: #e5af00;
    }
}

.btn-back {
    background-color: #e7e7e9;
    color: #282828;
    display: none;
    &:hover {
        background-color: #b2b2b2;
        color: #fff;
    }
}
    
.btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    display: none;
    &:hover {
        background-color: var(--secondary-color);
    }
}

    /* Адаптив под мобильные */
@media (max-width: 992px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quiz-title {
        font-size: 24px;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Группа для поля ввода (подпись + инпут) */
.input-group {
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние между подписью и полем */
    margin-top: 10px;
}

/* Подпись "Метраж, м" */
.input-label {
    font-size: 16px;
    color: #444444;
    white-space: nowrap;
}

/* Само поле ввода */
.text-input {
    width: 100%;
    max-width: 330px; /* Ширина как на скриншоте */
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
}

/* Цвет плейсхолдера */
.text-input::placeholder {
    color: #a0a0a0;
}

/* Подсветка при фокусе */
.text-input:focus {
    border-color: #0084c6;
}

.contact-row {
    display: flex;
    gap: 20px;
    width: 100%;
    @media (width <= 768px) {
        flex-direction: column;
        gap: 15px;
    }
}
.contact-group {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex: 1;
    min-width: 0;
    @media (width <= 768px) {
        flex-direction: column;
        align-items: flex-start;
    }
}
.contact-label {
    font-size: 16px;
    color: #444;
    white-space: nowrap;
}
.contact-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}
.contact-input:focus {
    border-color: #0084c6;
}