/* find.css */

/* Общие настройки */
body {
    background: #e6eefb;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #2f3640;
}

/* Контейнер опросника */
.onboarding-container {
    max-width: 600px;
    margin: 80px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Прогресс-бар */
.progress-container {
    width: 100%;
    height: 6px;
    background: #f1f2f6;
    border-radius: 10px;
    margin-bottom: 40px;
}

.progress-bar {
    height: 100%;
    background: #4cafef;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Управление шагами */
.onboarding-step {
    display: none; /* Скрыто по умолчанию */
}

.onboarding-step.active {
    display: block; /* Показываем активный */
    animation: fadeIn 0.5s ease forwards;
}

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

/* Заголовки и текст */
h1, h2 {
    color: #3b4c58;
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    color: #718093;
    margin-bottom: 25px;
}

/* Сетки выбора (Темы и Пол) */
.quiz-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}

/* Стиль "Чипсов" (Темы) */
.quiz-chip-label input { display: none; }

.quiz-chip {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #e0e6ed;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718093;
    background: #ced8dc;
    font-weight: 600;
    border: 1px solid #e0e6ed;
}

.quiz-chip-label input:checked + .quiz-chip {
    background: #4cafef;
    border-color: #4cafef;
    color: #fff;
    box-shadow: 0 4px 12px rgba(106, 137, 204, 0.3);
}

/* Стиль для отключенных чипсов */
.quiz-chip-label.chip-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quiz-chip-label.chip-disabled .quiz-chip {
    pointer-events: none; /* Чтобы нельзя было кликнуть */
    filter: grayscale(0.5);
}




/* Компактная сетка для чипсов */
.quiz-grid.compact {
    gap: 8px; /* Уменьшаем расстояние между кнопками */
}

.quiz-grid.compact .quiz-chip {
    padding: 8px 16px; /* Делаем сами кнопки чуть меньше */
    font-size: 0.9rem;
}

/* Стиль Карточек (Пол) */
.quiz-card {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

.quiz-card input { display: none; }

.card-content {
    padding: 25px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fdfdfd;
    font-weight: 600;
}

.quiz-card input:checked + .card-content {
    border-color: #6a89cc;
    background: #f0f4ff;
    color: #6a89cc;
    box-shadow: 0 8px 20px rgba(106, 137, 204, 0.15);
}

/* Ползунок цены */
.price-input {
    margin: 40px 0;
    text-align: center;
}

.price-input input[type=range] {
    width: 100%;
    height: 8px;
    background: #e0e6ed;
    border-radius: 5px;
    outline: none;
    accent-color: #4cafef;/* Цвет кружка ползунка */
}

.price-input output {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4cafef;
    margin-top: 15px;
}

.price-input span {
    font-size: 1.2rem;
    color: #718093;
    font-weight: 600;
}

/* Навигация и Кнопки */
.navigation-buttons {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Кнопка по центру на первом шаге */
#step1 .navigation-buttons {
    justify-content: center;
}

button[type="button"], .submit-btn {
    background: #4cafef;
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(106, 137, 204, 0.3);
}

button[type="button"]:hover, .submit-btn:hover {
    background: rgb(65, 109, 163);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 137, 204, 0.4);
}

button[type="button"]:active, .submit-btn:active {
    transform: translateY(-1px);
}

/* Стрелка назад */
.back-arrow {
    cursor: pointer;
    font-size: 28px;
    color: #b2bec3;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px;
    user-select: none;
}

.back-arrow:hover {
    color: #6a89cc;
    transform: translateX(-5px);
}

/* Адаптивность для мобилок */
@media (max-width: 480px) {
    .onboarding-container {
        margin: 20px;
        padding: 25px;
    }
    
    .quiz-grid {
        flex-direction: column;
    }
    
    .navigation-buttons {
        flex-direction: column-reverse;
        gap: 20px;
    }
}



/* ==================================== */
/* СТИЛИ ДЛЯ КРУГОВ НА ФОНЕ     */
/* ==================================== */
.background-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #0041cc, #25b7d7);
    opacity: 0.3; /* Сделаем их полупрозрачными */
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -10%;
    left: -5%;
}

.circle-2 {
    width: 400px;
    height: 400px;
    top: 5%;
    left: 70%;
}

.circle-3 {
    width: 200px;
    height: 200px;
    bottom: 3%;
    left: 10%;
}

.circle-4 {
    width: 300px;
    height: 300px;
    bottom: -10%;
    right: -8%;
}



/* Кнопка закрытия/выхода */
.quiz-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    color: #7fadc0;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 100;
}

.quiz-close:hover {
    color: #eb4d4b; /* Красный оттенок при наведении — намек на закрытие */
    transform: scale(1.2);
}

/* Фикс для контейнера, чтобы кнопка не перекрывалась */
.onboarding-container {
    max-width: 700px;
    margin: 40px auto; /* Уменьшил отступ сверху, чтобы на мобилках было выше */
    background: #ffffff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    
    /* ВАЖНО: Убираем overflow: hidden, чтобы страница могла расти вниз */
    overflow: visible; 
    height: auto; 
}



/* Красивый скроллбар для списка тем */
.quiz-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.quiz-scroll-area::-webkit-scrollbar-track {
    background: #f1f2f6;
    border-radius: 10px;
}
.quiz-scroll-area::-webkit-scrollbar-thumb {
    background: #6a89cc;
    border-radius: 10px;
}




/* Категории делаем аккуратнее */
.category-title {
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    color: #6a89cc;
    border-left: 3px solid #6a89cc;
    padding-left: 8px;
}

/* Плавный скролл для всей страницы */
html {
    scroll-behavior: smooth;
}