/* WP Exam Results Frontend Styles */

.exam-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.exam-form-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.exam-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.exam-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.exam-result {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-header h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 22px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.student-info,
.subjects-info {
    margin-bottom: 30px;
}

.student-info h4,
.subjects-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-left: 4px solid #007cba;
    padding-left: 10px;
}

.student-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.student-details td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.student-details td:first-child {
    width: 40%;
    font-weight: 600;
    color: #555;
}

.subjects-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
}

.subjects-table th,
.subjects-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.subjects-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.subjects-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.subjects-table tbody tr:hover {
    background: #e9ecef;
}

.result-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.summary-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 50%;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

.error-message p {
    margin: 0;
    font-weight: 500;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 10px 0;
}

/* Print styles */
@media print {
    .exam-form,
    .btn,
    .exam-loading {
        display: none !important;
    }
    
    .exam-result {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .result-header h3 {
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .subjects-table th,
    .subjects-table td {
        border: 1px solid #000;
    }
    
    .subjects-table th {
        background: #f0f0f0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .exam-form-container {
        padding: 10px;
    }
    
    .exam-form {
        padding: 20px;
    }
    
    .subjects-table {
        font-size: 14px;
    }
    
    .subjects-table th,
    .subjects-table td {
        padding: 8px;
    }
}

/* Elementor compatibility */
.elementor-widget-container .exam-form-container {
    margin: 0;
}

.elementor-widget-container .exam-form {
    margin-bottom: 20px;
}

/* Custom classes for Elementor styling */
.exam-form .form-group {
    margin-bottom: 15px;
}

.exam-form .btn {
    width: 100%;
    margin-top: 10px;
}

.exam-result .btn {
    margin-top: 20px;
}
