/* Frontend Quiz Styles */

.aqc7-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aqc7-quiz-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Timer Styles */
.aqc7-timer-container {
    margin-bottom: 25px;
}

.aqc7-timer-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.aqc7-timer-display.warning {
    background: linear-gradient(135deg, #f09819 0%, #ff512f 100%);
    animation: pulse-warning 1s infinite;
}

.aqc7-timer-display.danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    animation: pulse-danger 0.5s infinite;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 4px 20px rgba(235, 51, 73, 0.6); }
}

.timer-icon {
    font-size: 32px;
    animation: tick 1s infinite;
}

@keyframes tick {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.timer-label {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-time {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    min-width: 100px;
}

/* Question Navigation */
.aqc7-question-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.aqc7-question-progress {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.aqc7-question-progress .current-question {
    font-size: 32px;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.aqc7-question-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Custom scrollbar for bullets */
.aqc7-question-bullets::-webkit-scrollbar {
    width: 8px;
}

.aqc7-question-bullets::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.aqc7-question-bullets::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.aqc7-question-bullets::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.question-bullet {
    min-width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-bullet:hover {
    border-color: white;
    background: rgba(255,255,255,0.3);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.question-bullet.active {
    background: white;
    color: #667eea;
    border-color: white;
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(255,255,255,0.4);
    font-weight: 800;
}

.question-bullet.answered {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.question-bullet.answered:hover {
    background: #45a049;
    border-color: #45a049;
}

.question-bullet.answered.active {
    background: #4caf50;
    color: white;
    border-color: white;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.6);
}

.aqc7-cf7-form-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.aqc7-cf7-form-wrapper h3 {
    margin-top: 0;
    color: white;
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.aqc7-cf7-form-wrapper .wpcf7 {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.aqc7-cf7-after-quiz {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.3);
}

.aqc7-cf7-after-quiz h3 {
    margin-top: 0;
    color: white;
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.aqc7-cf7-after-quiz .wpcf7 {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.aqc7-question {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aqc7-question-number {
    font-weight: bold;
    color: #0073aa;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.aqc7-question-image {
    margin: 15px 0;
    text-align: center;
}

.aqc7-question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aqc7-question-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.aqc7-question-marks {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.aqc7-question-options {
    margin-top: 20px;
}

.aqc7-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aqc7-option:hover {
    background: #e3f2fd;
    border-color: #0073aa;
}

.aqc7-option input[type="radio"],
.aqc7-option input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.aqc7-option span {
    flex: 1;
    font-size: 16px;
    color: #333;
}

/* Question Navigation Buttons */
.aqc7-question-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.aqc7-nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 17px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.aqc7-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
}

.aqc7-nav-btn:hover::before {
    left: 100%;
}

.aqc7-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.aqc7-nav-btn:active {
    transform: translateY(-1px);
}

.aqc7-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aqc7-prev-btn {
    background: linear-gradient(135deg, #7f7fd5 0%, #86a8e7 100%);
    box-shadow: 0 4px 15px rgba(127, 127, 213, 0.4);
}

.aqc7-prev-btn:hover {
    box-shadow: 0 6px 20px rgba(127, 127, 213, 0.5);
}

.aqc7-next-btn,
.aqc7-submit-btn {
    margin-left: auto;
}

.aqc7-submit-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    font-size: 18px;
    padding: 16px 40px;
}

.aqc7-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

/* Loading Spinner */
.aqc7-loading {
    text-align: center;
    padding: 40px;
}

.aqc7-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Styles */
.aqc7-result-container {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.aqc7-result-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 32px;
}

.aqc7-result-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 10px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.aqc7-result-summary.passed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.aqc7-result-summary.failed {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

/* Confidence Level Specific Backgrounds */
.aqc7-result-summary.confidence-low {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.aqc7-result-summary.confidence-medium {
    background: linear-gradient(135deg, #f09819 0%, #ff512f 100%);
}

.aqc7-result-summary.confidence-high {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Confidence Badge */
.aqc7-confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.confidence-icon {
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.aqc7-result-score {
    margin-bottom: 20px;
}

.score-label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.aqc7-result-percentage {
    margin: 20px 0;
    background: #e1e1e138;
    padding: 20px 10px 10px 10px;
    width: fit-content;
    margin: auto;
    border-radius: 10px;
}

.percentage-value {
    font-size: 64px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.aqc7-result-status {
    margin-top: 20px;
}

.status-badge {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.passed {
    background: rgba(255,255,255,0.3);
}

.status-badge.failed {
    background: rgba(0,0,0,0.2);
}

.aqc7-result-message {
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
}

/* Result Actions */
.aqc7-result-actions {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
}

.aqc7-reset-quiz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.aqc7-reset-quiz-btn::before {
    content: '🔄';
    margin-right: 10px;
    font-size: 20px;
}

.aqc7-reset-quiz-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.aqc7-reset-quiz-btn:hover::after {
    width: 300px;
    height: 300px;
}

.aqc7-reset-quiz-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.aqc7-reset-quiz-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Answer Review */
.aqc7-answers-review {
    margin-top: 40px;
}

.aqc7-answers-review h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.aqc7-answer-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.aqc7-answer-item.correct {
    border-color: #4caf50;
    background: #f1f8f4;
}

.aqc7-answer-item.incorrect {
    border-color: #f44336;
    background: #fef5f5;
}

.answer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.answer-number {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.answer-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-left: auto;
}

.aqc7-answer-item.correct .answer-status {
    background: #4caf50;
    color: white;
}

.aqc7-answer-item.incorrect .answer-status {
    background: #f44336;
    color: white;
}

.answer-question {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.answer-details {
    padding: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    margin-bottom: 10px;
}

.user-answer,
.correct-answer {
    margin-bottom: 10px;
}

.user-answer strong,
.correct-answer strong {
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.answer-marks {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .aqc7-quiz-container {
        padding: 0px;
    }
    
    .aqc7-quiz-title {
        font-size: 24px;
    }
    
    .aqc7-question {
        padding: 20px;
    }
    
    .aqc7-question-text {
        font-size: 16px;
    }
    
    .aqc7-result-title {
        font-size: 24px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .percentage-value {
        font-size: 48px;
    }
	
	.aqc7-nav-btn{
		    font-size: 10px!important;
	}
	.aqc7-cf7-after-quiz {
    padding: 10px!important;
}
	
	.aqc7-result-summary {
    padding: 10px!important;
	}
	
	.aqc7-result-container {
    padding: 10px!important;
}
}