/* Основной контейнер квиза */
.quiz-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Заголовок квиза */
.quiz-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.quiz-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

/* Прогресс бар */
.quiz-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.progress-text {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Контент вопроса */
.question-content {
    margin-bottom: 30px;
}

.question-title {
    font-size: 16px;
    margin: 0 0 15px 0;
    font-family: "Subway Six-inch";
    color: rgb(88, 88, 88);
}

.question-text {
    font-size: 20px;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.6;
    font-weight: 500;
    font-family: "Subway Six-inch";
    font-size: 18px;
    color: black;
}

.question-description {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.question-notice {
        font-size: 11px;
    opacity: .5;
    font-style: italic;
}

.notice-icon {
    margin-right: 8px;
    font-size: 18px;
    display: none !important;
}

/* Список ответов */
.answers-list {
    margin: 25px 0;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    padding: 5px 20px;
    margin-bottom: 2px;
   

    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.answer-option:hover {
   
}

.answer-option.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
    font-size: 16px;
    color: rgb(88, 88, 88);
    line-height: 1.5;
    font-family: "Subway Six-inch";
}

.answer-option.selected .answer-text {
    font-weight: 600;
    color: #2e7d32;
}

/* Компактный режим для большого количества вариантов */
.answers-compact .answer-option {
    padding: 12px 16px;
    margin-bottom: 8px;
}

.answers-compact .answer-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Навигация */
.question-navigation {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}



/* Кнопки */
.btn {
    
    color: white;
    text-transform: uppercase;
    border-radius: 0;
    font-family: "Subway Footlong";
    padding: 0.375rem 1.5rem;
    -webkit-font-smoothing: antialiased;
    background-color: #F2B700;
    border-color: #F2B700;
    border: none;
    padding: 10px 20px;
    float: left;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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



.btn-secondary {
    background: #757575;
    color: white;
}

.btn-secondary:hover {
    background: #616161;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    margin: 20px 0;
}

/* Форма пользователя */
#user-info-form {
    animation: fadeIn 0.5s ease;
}

.user-form-content {
    max-width: 600px;
    margin: 0 auto;
}

.user-form-content h3 {
    font-size: 26px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.form-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: "Subway Six-inch";
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.required {
    color: #f44336;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.field-hint {
    display: block;
    color: #999;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.form-actions .btn-secondary {
    flex: 0 0 auto;
}

.form-actions .btn-success {
    flex: 1;
}

/* Результаты */
#quiz-results {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.results-content {
    padding: 40px 20px;
}

.results-icon {
    font-size: 80px;
    margin-bottom: 25px;
    animation: bounceIn 0.6s ease;
}

.results-icon.success:before {
    content: '🎉';
}

.results-icon.fail:before {
    content: '📚';
}

#results-title {
    font-size: 32px;
    color: #333;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.score-display {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.score-display.score-fail {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.score-number {
    font-size: 56px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 10px;
}

.score-display.score-fail .score-number {
    color: #e65100;
}

.score-text {
    font-size: 18px;
    color: #1b5e20;
    font-weight: 500;
}

.score-display.score-fail .score-text {
    color: #bf360c;
}

#results-message {
    font-size: 18px;
    color: #666;
    margin: 25px 0;
    line-height: 1.6;
}

.certificate-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Загрузка */
#quiz-loading {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f0f0f0;
    border-top-color: #4CAF50;
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

#quiz-loading p {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Ошибка */
.quiz-error {
    padding: 25px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    color: #856404;
    font-size: 16px;
    text-align: center;
}

.error-message {
    color: #d32f2f;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Разбор ответов */
.question-review {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.question-review.correct {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.question-review.incorrect {
    border-color: #f44336;
    background: #fef5f5;
}

.question-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.question-review-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-review-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    line-height: 1.5;
}

.answer-review {
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

.answer-review.user-selected {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding-left: 15px;
}

.answer-review.correct-answer {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding-left: 15px;
    font-weight: 600;
}

.answer-review.wrong-answer {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding-left: 15px;
}

.review-label {
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-label.correct {
    background: #4CAF50;
    color: white;
}

.review-label.incorrect {
    background: #f44336;
    color: white;
}

.review-label.selected {
    background: #2196F3;
    color: white;
}

#results-details {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

#results-details h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

#results-breakdown {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

#results-breakdown::-webkit-scrollbar {
    width: 8px;
}

#results-breakdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#results-breakdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#results-breakdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quiz-wrapper {
        padding: 20px;
        margin: 20px auto;
        width: 70%;
        margin-left: 25px;
    }
    
    .quiz-header h2 {
        font-size: 22px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .answer-option {
        padding: 12px 15px;
    }
    
    .answer-text {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
  
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .score-number {
        font-size: 42px;
    }
    
    #results-title {
        font-size: 24px;
    }
    
    .question-review {
        padding: 15px;
    }
    
    .question-review-title {
        font-size: 14px;
    }
    
    .answer-review {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .quiz-wrapper {
        padding: 15px;
        margin: 10px;
        width: 70%;
        margin-left: 25px;
    }
    
    .quiz-header h2 {
        font-size: 20px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .answer-option {
        padding: 10px 12px;
    }
    
    .answer-text {
        font-size: 14px;
    }
}

.quiz-header{
    display: none !important;
}
.has-global-padding{
    padding: 0 !important;
}

.wp-block-group{
    margin-top: 0 !important;
}