* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    /* Фоновое изображение. Убедитесь, что bg.jpg лежит в папке static */
    background-image: url('bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Слой затемнения поверх картинки */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); /* 0.65 - степень затемнения */
    z-index: 1;
}

.container {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2; /* Поверх затемнения */
    overflow: hidden;
}

.logo {
    max-width: 130px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Прогресс-бар */
.progress-wrapper {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #fce000;
    width: 25%; /* Начальное значение */
    transition: width 0.4s ease;
}

.step-indicator {
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Анимации шагов формы */
.form-step {
    display: none;
    animation: fadeInSlide 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOutSlide {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-20px); }
}

.input-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="number"], input[type="tel"], select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fcfcfc;
    appearance: none; /* Убирает стандартную стрелку select в некоторых браузерах */
}

input:focus, select:focus {
    border-color: #fce000;
    background-color: #fff;
}

/* Красивые радиокнопки для переезда */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.radio-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-card:hover { border-color: #e0e0e0; }

.radio-card input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #fce000; /* Цвет выбранной точки */
}

/* Кнопки */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-group-single {
    margin-top: 20px;
}

button {
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.next-btn, .submit-btn {
    background-color: #fce000;
    color: #000;
    border: none;
    width: 100%;
}

.next-btn:hover, .submit-btn:hover { background-color: #e6cb00; }

.prev-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #f0f0f0;
}

.prev-btn:hover { background-color: #f9f9f9; border-color: #e0e0e0; }

.consent-text { margin-top: 20px; font-size: 12px; color: #999; }
.consent-text a { color: #000; text-decoration: underline; }

/* Модалка осталась прежней */
.modal { display: none; position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border-radius: 12px; width: 90%; max-width: 500px; }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }

/* Сетка преимуществ */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.benefit-item {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
}

.benefit-icon {
    font-size: 18px;
}

.benefit-item p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #444;
    line-height: 1.2;
}

/* Небольшая адаптация для мобильных устройств */
@media (max-width: 400px) {
    .benefits-grid {
        grid-template-columns: 1fr; /* На совсем маленьких экранах в одну колонку */
    }
}

/* Улучшение внешнего вида заголовка на 1 шаге */
#step1 h2 {
    margin-bottom: 10px;
}