* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-container {
    display: flex;
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Sidebar Styling */
.form-sidebar {
    background-color: #002D62; /* Navy from your main page */
    color: white;
    padding: 40px;
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Entrance Animations */
.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


.form-logo {
    width: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
}

.form-sidebar h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.form-sidebar p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Form Styling */
.form-content {
    padding: 40px;
    width: 65%;
}

.form-content h3 {
    color: #002D62;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.row {
    display: flex;
    gap: 20px;
}

.btn-submit {
    background-color: #FFD700; /* Yellow from your header */
    color: #002D62;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #e5c100;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .form-container { flex-direction: column; }
    .form-sidebar { width: 100%; text-align: center; align-items: center; }
    .form-content { width: 100%; }
}


/* The actual spinner circle */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #002147; /* Dark blue matching your sidebar */
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* The rotation animation */
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: styling the button when disabled */
#submitBtn:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    color: #888;
}



/* Success Message Container */
#successMessage {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

/* The Checkmark Icon */
.success-icon {
    color: #002D62; /* Your School Blue */
    font-size: 64px;
    margin-bottom: 20px;
}

/* Success Heading */
#successMessage h3 {
    color: #002D62;
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Success Paragraph */
#successMessage p {
    color: #555;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 25px;
}

/* The "Enroll Another" Button */
.btn-secondary {
    background-color: #FFD700; /* Your School Yellow */
    color: #002D62;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
