        :root {
            --primary: #FFFFFF; --secondary: #b38f29; --accent: #D4AF37; --dark: #0A192F;
            --light: #FDFBF6; --text-color: #333333; --section-bg: #f8f9fa;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-padding-top: 100px; }
        body {
            font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text-color);
            background: var(--light); overflow-x: hidden;
        }
        header {
            position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 5%;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }
        .navbar {
            display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.5rem;
            background: rgba(255, 255, 255, 0.582); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(10, 25, 47, 0.1); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }
        /* --- Enhanced Payment Animation --- */
        .payment-animation-container {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 20px auto;
        }

        .circle-loader {
            width: 100px;
            height: 100px;
            border: 5px solid #f3f3f3; /* Light grey */
            border-top: 5px solid #0A192F; /* Primary color */
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
            transition: opacity 0.3s ease-in-out;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .checkmark-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #28a745; /* Success Green */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: scale(0);
            opacity: 0;
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
        }

        .checkmark-wrapper i {
            color: white;
            font-size: 50px;
        }

        /* Success State Triggered by JS */
        .payment-animation-container.success .circle-loader {
            opacity: 0;
            animation: none; /* Stop spinning */
        }

        .payment-animation-container.success .checkmark-wrapper {
            transform: scale(1);
            opacity: 1;
        }

        /* --- Fee Breakdown Styling (NEW) --- */
        .fee-breakdown {
            margin-top: 1.5rem;
            padding: 1rem;
            background-color: #f8f9fa;
            border-left: 4px solid #D4AF37; /* Accent color */
            border-radius: 4px;
        }
        .fee-breakdown h4 {
            margin-top: 0;
            margin-bottom: 0.75rem;
            color: #0A192F; /* Primary color */
            font-family: 'Playfair Display', serif;
        }
        .fee-breakdown ul {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }
        .fee-breakdown ul li {
            margin-bottom: 0.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        .fee-breakdown ul li strong {
            color: #333;
            font-weight: 700;
        }
        .fee-breakdown ul li span {
            font-weight: 500;
            color: #555;
            text-align: right;
        }
        .fee-breakdown .total-fee-line {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }
        .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
        .logo-svg { height: 50px; width: 50px; transition: all 0.5s ease; flex-shrink: 0; }
        .logo:hover .logo-svg { transform: rotate(5deg) scale(1.05); }
        .logo-text-container { display: flex; flex-direction: column; line-height: 1.2; }
        .logo-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--dark); }
        .logo-subtitle { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 500; color: #555; }
        .nav-links { display: flex; list-style: none; }
        .nav-links li { margin-left: 2rem; position: relative; }
        .nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 1rem; padding: 0.5rem 0; position: relative; transition: color 0.3s; }
        .nav-links a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent); transition: width 0.3s ease; }
        .nav-links a:hover, .nav-links a.active { color: var(--accent); }
        .nav-links a:hover:after, .nav-links a.active:after { width: 100%; }
        .hamburger { display: none; cursor: pointer; background: none; border: none; font-size: 1.8rem; color: var(--dark); z-index: 1001; }

        #auth-link { transition: opacity 0.3s ease-in-out; }
        #auth-link.fade-out { opacity: 0; }
        
        .main-container { padding: 120px 2rem 4rem; max-width: 800px; margin: 0 auto; }
        .section-title { text-align: center; margin-bottom: 1rem; font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--dark); font-weight: 900; }
        .section-subtitle { text-align: center; color: #777; margin-bottom: 3rem; font-size: 1.2rem; font-weight: 400; }

        .progress-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; position: relative; }
        .progress-bar .step { display: flex; flex-direction: column; align-items: center; z-index: 2; width: 120px; text-align: center; }
        .progress-bar .step .icon { width: 40px; height: 40px; border-radius: 50%; background: #ccc; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background-color 0.4s ease; border: 3px solid #ccc; }
        .progress-bar .step .text { margin-top: 0.5rem; font-weight: 600; color: #ccc; transition: color 0.4s ease; }
        .progress-bar .step.active .icon { background: var(--accent); border-color: var(--accent); }
        .progress-bar .step.active .text { color: var(--dark); }
        .progress-bar::before { content: ''; position: absolute; top: 22px; left: 15%; width: 70%; height: 4px; background: #ccc; z-index: 1; }
        .progress-line { position: absolute; top: 22px; left: 15%; width: 0; height: 4px; background: var(--accent); z-index: 1; transition: width 0.4s ease; }

        .admission-form { background: var(--primary); padding: 2.5rem; border-radius: 20px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); }
        
        .form-step { display: none; }
        .form-step.active { display: block; animation: fadeIn 0.5s ease-in-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        .form-group { margin-bottom: 1.5rem; }
        .form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark); }
        
        .input-group { position: relative; }
        .input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #aaa; transition: color 0.3s; }
        .input-group input { padding-left: 45px; } 
        .input-group input:focus + i { color: var(--accent); }

        .form-group input, .form-group select { width: 100%; padding: 0.8rem 1rem; border: 1px solid #ccc; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
        .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }

        #courseDetailsDisplay { margin-top: 1.5rem; padding: 1rem; background: var(--section-bg); border-radius: 8px; border: 1px solid #e2e8f0; display: none; animation: fadeIn 0.5s; }
        #courseDetailsDisplay p { margin: 0.5rem 0; font-weight: 500; }
        #courseDetailsDisplay span { color: var(--dark); font-weight: 700; }

        .file-upload-wrapper { border: 2px dashed #ccc; border-radius: 10px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.3s; }
        .file-upload-wrapper:hover { border-color: var(--accent); }
        .file-upload-wrapper input[type="file"] { display: none; }
        .file-upload-wrapper .upload-text { color: #888; }
        .file-upload-wrapper .upload-text i { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
        .file-preview { margin-top: 1rem; font-weight: 500; color: #555; }
        .file-preview img { max-width: 100px; max-height: 100px; margin-top: 0.5rem; border-radius: 8px; }
        .file-validation-error { color: #e53e3e; font-size: 0.9rem; margin-top: 0.5rem; display: none; }

        .summary-card { padding: 1.5rem; border-radius: 10px; background: var(--section-bg); border: 1px solid #e2e8f0; }
        .summary-card h4 { font-family: 'Playfair Display'; color: var(--dark); margin-bottom: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem;}
        .summary-card ul { list-style: none; padding: 0; }
        .summary-card li { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid #eee; }
        .summary-card li:last-child { border-bottom: none; }
        .summary-card li strong { color: #555; }
        .summary-card li span { color: var(--dark); font-weight: 600; text-align: right; }

        .fee-details { margin-top: 2rem; padding: 1.5rem; background: var(--section-bg); border-radius: 10px; text-align: center; border: 1px solid #e2e8f0; }
        .fee-details h3 { font-family: 'Playfair Display', serif; color: var(--dark); margin-bottom: 0.5rem; }
        .fee-details p { font-size: 1.8rem; font-weight: 700; color: var(--accent); }

        .button-group { display: flex; justify-content: space-between; margin-top: 2rem; }
        .btn { display: inline-block; background: var(--dark); color: var(--light); padding: 0.9rem 2.2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); position: relative; overflow: hidden; z-index: 1; border: none; font-size: 1rem; cursor: pointer; }
        .btn:before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: linear-gradient(45deg, var(--accent), var(--secondary)); transition: all 0.4s ease; z-index: -1; }
        .btn:hover:before { width: 100%; }
        .btn:hover { transform: translateY(-3px); color: var(--dark); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
        .btn-secondary { background: #6c757d; }

        .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); align-items: center; justify-content: center; }
        .modal-content { background-color: #fefefe; padding: 30px; border: 1px solid #888; width: 90%; max-width: 400px; text-align: center; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); position: relative; animation: zoomIn 0.3s ease-out; }
        @keyframes zoomIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .close-button { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
        .close-button:hover, .close-button:focus { color: black; text-decoration: none; }
        #qrImage { max-width: 80%; height: auto; margin: 1rem auto; border: 1px solid #eee; padding: 5px; border-radius: 8px; }
        #qrAmount { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-top: 1rem; }

        /* === MODIFIED SECTION: FOOTER === */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 1.5rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-section {
    text-align: center; /* Centers the content inside each column */
}


.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.footer-section p {
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* General link hover in footer - will be overridden by specific social links */
.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.social-links a {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:hover::before {
    left: 125%;
}

.social-links a.whatsapp:hover {
    color: #25D366;
    background-color: white;
}

.social-links a.envelope:hover {
    color: #EA4335;
    background-color: white;
}

.social-links a.gmail:hover {
    background-color: white;
}

.social-links a.gmail:hover i {
    background: -webkit-linear-gradient(135deg, #4285F4, #EA4335, #FBBC04, #34A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links a.facebook:hover {
    color: #1877F2;
    background-color: white;
}

.social-links a.gmaps:hover {
    background-color: white;
}

.social-links a.gmaps:hover i {
    background: -webkit-linear-gradient(45deg, #4285F4, #34A853, #FBBC04, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        flex-direction: column; align-items: center; justify-content: center;
        transition: right 0.5s ease; box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1); z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1.8rem 0; } 
    .nav-links a { font-size: 1.2rem; }
    .hamburger i { transition: transform 0.3s ease; }
    
    html {
        font-size: 90%;
        scroll-padding-top: 80px;
    }

    header {
        padding: 1rem 3%;
    }

    .main-container {
        padding: 100px 1rem 3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .admission-form {
        padding: 1.5rem;
    }

    .progress-bar {
        margin-bottom: 2rem;
    }
    .progress-bar .step .icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-width: 2px;
    }
    .progress-bar .step .text {
        font-size: 0.8rem;
    }
    .progress-bar::before, .progress-line {
        top: 18px;
    }

    footer {
        padding: 3rem 1rem 1.5rem;
    }
    .footer-content {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 85%;
    }

    .logo-svg {
        height: 40px;
        width: 40px;
    }
    .logo-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .fee-details p {
        font-size: 1.6rem;
    }

    .button-group {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .summary-card li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .summary-card li span {
        text-align: left;
    }

    .progress-bar .step {
        width: 80px;
    }
    .progress-bar .step .text {
        word-break: normal;
    }
    .progress-bar::before, .progress-line {
        left: 10%;
        width: 80%;
    }
}