/* ======================================
   GLOBAL STYLES & RESET
   ====================================== */


/* Hide sidebar on phase 1 */
body:has(#phase1.active) .sidebar {
    display: none;
}

/* Show sidebar on other phases */
body:has(.phase.active:not(#phase1)) .sidebar {
    display: flex;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    min-height: 100vh;
    padding: 20px;
    width: 100%;
}

.hidden {
    display: none !important;
}

.terms-content {
    white-space: pre-line;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* ======================================
   KEYFRAME ANIMATIONS
   ====================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes gentle-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
    }
    50% {
        box-shadow: 0 0 10px rgba(243, 156, 18, 0.8);
    }
}

@keyframes pulse-success {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes gentle-pulse-success {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes gentle-pulse-danger {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.01);
    }
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes highlight {
    0% {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        transform: scale(1.02);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

/* ======================================
   LAYOUT COMPONENTS
   ====================================== */
.main-layout {
    display: flex;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

.container {
    flex: 1;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

/* ======================================
   SIDEBAR
   ====================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    width: 350px;
    position: sticky;
    top: 40px;
    gap: 20px;
}

.classes-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: fit-content;
}

.classes-calculator {
    padding: 25px;
}

.classes-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.classes-line:last-child {
    border-bottom: 0 transparent;
    margin-bottom: -15px;
}
.classes-label {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
}
.classes-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.pricing-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: fit-content;
}

.pricing-calculator {
    padding: 25px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.pricing-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.pricing-line:last-child {
    border-bottom: none;
    border-top: 2px solid #34495e;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ecf0f1 0%, #f8f9fa 100%);
    margin: 0px -10px -10px -10px;
    padding: 10px 15px;
    border-radius: 8px;
}

.pricing-label {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
}

.pricing-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.pricing-value.total {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.pricing-update {
    animation: highlight 0.6s ease;
}

/* ======================================
   PHASE MANAGEMENT
   ====================================== */
.phase {
    display: none;
    animation: fadeIn 0.5s ease-in;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.phase.active {
    display: block;
    animation-name: fadeInUp;
}

.phase-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.phase-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.phase-description {
    color: #7f8c8d;
    font-size: 1rem;
}

/* ======================================
   PROGRESS INDICATORS
   ====================================== */
.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(45deg, #3498db, #2980b9);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3498db;
    color: white;
}

.step.completed .step-number {
    background: #27ae60;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: center;
}

.step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* ======================================
   FORM ELEMENTS
   ====================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ======================================
   BUTTON STYLES
   ====================================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #545b62);
    color: white;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #545b62, #3d4449);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #6c757d !important;
}

.btn:disabled::before {
    display: none;
}

.btn:focus {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.btn-secondary:focus {
    outline-color: rgba(108, 117, 125, 0.5);
}

/* ======================================
   TABLE STYLES
   ====================================== */
.table-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
}

.table th {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

.table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transform: scale(1.2);
    accent-color: #3498db;
}

.table input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.table input[type="checkbox"]:checked {
    accent-color: #27ae60;
}

.table tr.loading {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.table .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* ======================================
   CHECKBOX COMPONENTS
   ====================================== */
.checkbox-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

/* ======================================
   BADGE STYLES
   ====================================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 80px;
    margin: 0 10px;
}

.badge-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    animation: gentle-pulse-success 3s ease-in-out infinite;
}

.badge-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    animation: gentle-pulse-danger 3s ease-in-out infinite;
}

.badge-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    color: #212529;
    font-weight: 800;
}

.badge-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
}

/* ======================================
   CLASS SELECTION COMPONENTS
   ====================================== */
.class-selection-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.selection-counter {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.selection-counter:last-child {
    margin-bottom: 0;
}

.selection-counter.warning {
    border-left-color: #f39c12;
    color: #d35400;
}

.selection-counter.danger {
    border-left-color: #e74c3c;
    color: #c0392b;
}

.selection-counter.success {
    border-left-color: #27ae60;
    color: #27ae60;
}

.class-full {
    background: #ff6b6b !important;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.class-type-theoretical {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.class-type-practical {
    background: linear-gradient(45deg, #e67e22, #d35400);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.class-type-paid {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    animation: gentle-glow 2s ease-in-out infinite;
}

/* ======================================
   ALERT STYLES
   ====================================== */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.8;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ======================================
   TERMS & CONDITIONS STYLES
   ====================================== */
.terms-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.terms-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.terms-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.terms-checkbox:hover {
    border-color: #3498db;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3498db;
}

/* ======================================
   FILE UPLOAD STYLES
   ====================================== */
.file-upload {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background: #e3f2fd;
}

.file-upload-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.file-upload-text {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.file-upload-hint {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.file-upload-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
}

.file-upload-zone {
    border: 3px dashed #3498db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.file-upload-zone:hover .file-upload-icon {
    color: #2196f3;
    transform: scale(1.1);
}

.file-upload-text {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.file-upload-hint {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.file-upload-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* File Preview Styles */
.file-preview {
    display: none;
    background: white;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    animation: slideIn 0.5s ease;
}

.file-preview.show {
    display: block;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2.5rem;
    color: #27ae60;
}

.file-meta {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-remove:hover {
    background: #c0392b;
}

/* Progress Bar */
.upload-progress {
    display: none;
    width: 100%;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    height: 8px;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Validation Messages */
.validation-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
}

.validation-error {
    background: #fee;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.validation-success {
    background: #efeeee;
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

/* Modal for File Preview */
.file-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.file-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.file-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.file-modal-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}


/* ======================================
   MODAL STYLES
   ====================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.modal-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* ======================================
   STATE STYLES (Loading, Error, Closed)
   ====================================== */
.registration-closed {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6c757d;
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.15);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.registration-closed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #6c757d, #dc3545);
    animation: shimmer 3s ease-in-out infinite;
}

.registration-closed-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: gentle-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    color: #e74c3c;
}

.registration-closed-title {
    color: #495057;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registration-closed-message {
    color: #6c757d;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.registration-closed-message strong {
    color: #495057;
    font-weight: 600;
}

.registration-error {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.2);
}

.registration-error h2 {
    color: #856404;
    margin-bottom: 15px;
    font-weight: 600;
}

.registration-error p {
    color: #856404;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

#loadingState {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(33, 150, 243, 0.1);
}

#loadingState h2 {
    color: #1976d2;
    margin-bottom: 15px;
    font-weight: 600;
}

#loadingState p {
    color: #1565c0;
    font-size: 1.1rem;
}

#loadingState::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}




/* ======================================
   RESPONSIVE DESIGN
   ====================================== */
@media (max-width: 1200px) {

    .container {
        width: 100%;
    }
    .main-layout {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .pricing-sidebar {
        width: 100%;
        order: -1;
        position: relative;
        top: 0;
    }

    .main-layout {
        padding: 10px;
        gap: 15px;
    }

    .pricing-calculator {
        padding: 20px;
    }

    .pricing-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .pricing-line {
        padding: 12px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pricing-line:last-child {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {

    .container {
        width: 100%;
    }
    .registration-closed,
    .registration-error,
    #loadingState {
        margin: 10px;
        padding: 40px 15px;
    }

    .registration-closed-icon {
        font-size: 3rem;
    }

    .registration-closed-title {
        font-size: 1.8rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    .registration-closed-message,
    .registration-error p {
        font-size: 1rem;
    }

    .content {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .table-container {
        overflow-x: auto;
        margin-bottom: 20px;
    }

    .table {
        min-width: 600px;
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 8px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        min-width: 60px;
    }

    .class-selection-summary {
        padding: 15px;
    }

    .selection-counter {
        font-size: 1rem;
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .table input[type="checkbox"] {
        width: 18px;
        height: 18px;
        transform: scale(1.1);
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .terms-checkboxes {
        flex-direction: column;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
    }
    .registration-closed,
    .registration-error,
    #loadingState {
        margin: 5px;
        padding: 30px 10px;
    }

    .registration-closed-title {
        font-size: 1.5rem;
    }

    .registration-closed-message,
    .registration-error p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .table {
        min-width: 500px;
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 6px;
    }

    .badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        min-width: 50px;
    }

    .selection-counter {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* ======================================
   HIGH CONTRAST MODE SUPPORT
   ====================================== */
@media (prefers-contrast: high) {
    .registration-closed,
    .registration-error,
    #loadingState {
        border-width: 3px;
        border-style: solid;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ======================================
   TERMS SECTION ENHANCEMENTS
   ====================================== */
.terms-section label:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.terms-section input[type="radio"]:checked + span {
    font-weight: 700;
}

.terms-section label {
    transition: all 0.3s ease;
}

/* ======================================
   UTILITY CLASSES
   ====================================== */
.counter-warning {
    color: #e74c3c;
}

.counter-success {
    color: #27ae60;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* ======================================
   PRINT STYLES
   ====================================== */
@media print {
    .pricing-sidebar,
    .btn,
    .progress-bar,
    .step-indicator {
        display: none !important;
    }

    .container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .header {
        background: #f8f9fa !important;
        color: #333 !important;
    }

    .table {
        page-break-inside: avoid;
    }
}
