/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* --- MODAL & OVERLAY STYLES --- */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 10;
    text-align: center;
    font-weight: 600;
    color: #3b82f6;
}

.loading-overlay.visible {
    display: flex;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.enroll-button {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    z-index: 950;
    text-align: center;
}

.enroll-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.custom-overlay.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.primary-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.primary-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.secondary-button {
    background: #f0f0f0;
    color: #333;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.secondary-button:hover {
    background: #e0e0e0;
}

.success-modal-content,
.failure-modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.success-modal-content { border: 2px solid #10b981; }
.failure-modal-content { border: 2px solid #ef4444; }

.fee-overlay {
    position: fixed;
    bottom: 64px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 900;
}

@media (min-width: 768px) {
    .enroll-button,
    .fee-overlay {
        width: 300px;
        left: 50%;
        transform: translateX(-50%);
    }
}