/* Общие стили для квиза */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Контент квиза */
.quiz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.quiz-step {
    display: none;
    width: 100%;
    max-width: 800px;
    text-align: center;
    animation: fadeOut 0.3s ease-out;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.quiz-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: black
}

/* Сетка брендов */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.brand-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid black;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
    color: black;
    user-select: none;
}

.brand-checkbox:hover {
    background: #f8d971;
    border-color: rgba(248, 217, 113, 0.3);
    transform: translateY(-2px);
    color: black;
}

.brand-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-checkbox input:checked + .checkmark {
    background: #f8d971;
    border-color: #f8d971;
}

.brand-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
}

.brand-checkbox input:checked ~ span:not(.checkmark) {
    color: #f8d971;
}

.brand-checkbox.checked {
    background: rgba(248, 217, 113, 0.1);
    border-color: #f8d971;
}

/* Примечание */
.step-note {
    color: #888;
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

/* Текстовое поле */
.additional-info {
    width: 100%;
    min-height: 150px;
    background: #fff;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: black;
    resize: vertical;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.additional-info:focus {
    outline: none;
    border-color: #f8d971;
}

.additional-info::placeholder {
    color: #888;
    opacity: 1;
}

/* Поле телефона */
.phone-input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #444;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #f8d971;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    background: rgba(248, 217, 113, 0.1);
    border-right: 1px solid #444;
    gap: 8px;
}

.phone-prefix img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.phone-prefix span {
    color: black;
    font-weight: 500;
}
.quiz_section h2{
    color: black;
}

.phone-input {
    flex: 1;
    padding: 18px 15px;
    background: transparent;
    border: none;
    color: black;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.phone-input:focus {
    outline: none;
}

.phone-input::placeholder {
    color: #888;
}

/* Текст политики конфиденциальности */
.privacy-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 40px;
    line-height: 1.5;
}

.privacy-text a {
    color: #f8d971;
    text-decoration: underline;
}

.privacy-text a:hover {
    color: #f8d971;
}

/* Навигация */
.quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-prev {
    background: transparent;
    color: #888;
    border: 2px solid #444;
}

.btn-prev:hover {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #666;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #f8d971 0%, #f8d971 100%);
    color: #1a1a1a;
    border: 2px solid transparent;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-next:disabled,
.btn-submit:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.btn-next::before,
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-next:hover::before,
.btn-submit:hover::before {
    left: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }

    
    .quiz-step h3 {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brand-checkbox {
        padding: 15px;
        font-size: 14px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .additional-info {
        min-height: 120px;
        padding: 15px;
        font-size: 14px;
    }
    
    .phone-input-container {
        flex-direction: row;
    }
    
    .phone-prefix,
    .phone-input {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    
    .quiz-step h3 {
        font-size: 12px;
    }
    
    .brand-checkbox {
        padding: 12px;
        font-size: 13px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }
} 