/**
 * Dosha Quiz Form Styles
 * Color Theme: Dark Green & Soothing Purple
 */

:root {
    --primary-green: #2d5f3f;
    --primary-green-hover: #3d7f5f;
    --primary-green-dark: #1d4f2f;
    --accent-purple: #7b68ee;
    --accent-purple-light: #9b88ff;
    --accent-purple-dark: #5b48ce;
}

.dosha-quiz-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dosha-quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.dosha-quiz-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.dosha-quiz-header p {
    font-size: 16px;
    color: #666;
}

.dosha-quiz-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Section Styles */
.dosha-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: var(--primary-green-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-purple);
}

/* Question Styles */
.dosha-question {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dosha-question.unanswered {
    border: 2px solid #e74c3c;
    background: #ffe8e8;
}

.question-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.question-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-purple);
    margin-right: 10px;
    min-width: 30px;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

/* Options Styles */
.question-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
}

.option-label:hover {
    border-color: var(--accent-purple);
    background: #f5f3ff;
}

.option-label input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.option-label input[type="radio"]:checked + .option-text {
    color: var(--primary-green);
    font-weight: 600;
}

.option-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-green);
    background: #e8f5e9;
}

.option-text {
    flex: 1;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Section Navigation */
.section-navigation {
    text-align: right;
    margin-top: 30px;
}

.btn-next-section {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next-section:hover {
    background: var(--accent-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 104, 238, 0.3);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.validation-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 15px;
}

.validation-message.error {
    background: #ffe8e8;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.validation-message.success {
    background: #e8f8e8;
    color: #27ae60;
    border: 1px solid #2ecc71;
}

.btn-submit-quiz {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-quiz:hover {
    background: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.btn-submit-quiz:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .question-options {
        flex-direction: column;
    }
    
    .option-label {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .dosha-quiz-header h2 {
        font-size: 24px;
    }
    
    .dosha-quiz-form {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .question-title {
        font-size: 16px;
    }
    
    .question-options {
        flex-direction: column;
    }
    
    .option-label {
        min-width: auto;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .btn-submit-quiz {
        padding: 12px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dosha-quiz-header h2 {
        font-size: 20px;
    }
    
    .question-header {
        flex-direction: column;
    }
    
    .question-number {
        margin-bottom: 5px;
    }
}

