.grecaptcha-badge {
    visibility: hidden;
}
/* --- Базовые стили для квиза --- */
.quiz-wrapper {
    width: 100%;
    max-width: 740px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease;
    overflow: hidden; /* Важно: скрывает контент, пока контейнер меняет высоту */
    position: relative;
}

.steps-wrapper {
    flex-grow: 1;
}

/* --- Шаги --- */
.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Заголовок вопроса --- */
.quiz-question {
    color: #3C2314;
    text-align: center;
    font-family: "Tenor Sans", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* --- Инпуты --- */
.input-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    border-radius: 30px;
    border: 1px solid #BF9FCB;
    background: #FFF;
    color: #3C2314;
    font-size: 20px;
    height: 60px;
    padding: 0 24px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #a57cb5;
}

input::placeholder {
    color: #828282;
}

/* --- Валидация --- */
.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.group-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    border-radius: 30px;
}

.error-text {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    margin-left: 20px;
    display: none;
}

.checkbox-label.group-error + .error-text {
    display: block;
}

/* --- Кнопки-таблетки (город) --- */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.chip {
    display: inline-flex;
    height: 39px;
    padding: 8px 20px 7px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: #BF9FCB;
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.chip:hover {
    background: #a57cb5;
    transform: translateY(-2px);
}

.chip:active {
    transform: translateY(0);
}

.chip.selected {
    background: #8e5e9e;
    box-shadow: 0 0 0 3px rgba(191, 159, 203, 0.4);
}

.chip-other {
    background: #f0e6f0;
    color: #8a6a8a;
    border: 1px solid #BF9FCB;
}

.chip-other:hover {
    background: #e6d0e6;
}

/* --- Карточки форматов --- */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.card {
    border: 1px solid #BF9FCB;
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 16px;
    color: #7a6a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    background: #fafafa;
    text-transform: uppercase;
}

.card:hover {
    border-color: #a57cb5;
}

.card.selected {
    border-color: #f5c518;
    background-color: #fffdf5;
    color: #3C2314;
}

/* --- Радио-кнопки --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border: 1px solid #BF9FCB;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #3C2314;
    background: #fafafa;
}

.radio-label:hover {
    border-color: #a57cb5;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #f5c518;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #f5c518;
    border-radius: 50%;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #f5c518;
    background-color: #fffdf5;
}

/* --- Справочная строка --- */
.hint-text {
    font-size: 13px;
    color: #8a7a7a;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
    min-height: 20px;
    text-align: center;
}

/* --- Способы связи --- */
.contact-label {
    font-size: 14px;
    color: #7a6a6a;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.contact-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.method-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid #BF9FCB;
    border-radius: 30px;
    background: #fafafa;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #7a6a6a;
    transition: all 0.2s ease;
}

.method-btn.selected {
    border-color: #f5c518;
    background-color: #fffdf5;
    color: #3C2314;
    font-weight: 600;
}

/* --- Чекбокс согласия --- */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 12px;
    color: #8a7a7a;
    line-height: 1;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #f5c518;
    border-color: #f5c518;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Кнопки навигации --- */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.btn-back {
    background: none;
    border: none;
    color: #a09090;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
    font-weight: 500;
}

.btn-back:hover {
    color: #3C2314;
}

.agb-btn {
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* --- Экран успеха --- */
.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #f5c518;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: #fff;
}

.success-title {
    text-transform: none !important;
    font-size: 40px;
    margin-bottom: 16px;
}

.success-screen p {
    font-size: 18px;
    color: #7a6a6a;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-screen .highlight {
    font-weight: 700;
    color: #3C2314;
}

/* --- Прогресс-бар (внизу) --- */
.progress-bar {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.progress-step {
    flex: 1;
    height: 6px;
    background-color: #e0d5d5;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.progress-step.active {
    background-color: #f5c518;
}

.progress-bar.hidden {
    display: none;
}

/* --- Адаптив --- */
@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    .contact-methods {
        flex-direction: column;
    }
    .quiz-question {
        font-size: 20px;
    }
    .chips-container {
        justify-content: flex-start;
    }
}