        /* ==========================================================================
           1. GLOBAL VARIABLES & RESET
           ========================================================================== */
        :root {
            --primary-color: #0d3b66;
            --secondary-color: #f4d35e;
            --text-color: #333333;
            --light-bg: #f8f9fa;
            --white: #ffffff;
            --border-radius: 8px;
            --transition: all 0.3s ease;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            /* Form-specific variables */
            --primary: #4f46e5;
            --primary-dark: #3730a3;
            --primary-light: #818cf8;
            --accent: #f59e0b;
            --success: #10b981;
            --error: #ef4444;
            --text-dark: #1e293b;
            --text-medium: #475569;
            --text-light: #94a3b8;
            --border-color: #cbd5e1;
            --bg-white: #ffffff;
            --bg-light: #f1f5f9;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 22px;
            --font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-color);
            background-color: #f0f2f5;
            line-height: 1.6;
            background-image: url('https://media.istockphoto.com/id/959881430/photo/blurred-primary-school-with-parent-and-children-in-background-defocus-open-house-day-at-for.jpg?s=612x612&w=0&k=20&c=BefKpvrwN_Btvg5TckUtTUOndj39EMvtK7JjRDcSD4Q=');
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            background-position: center;
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 0;
            pointer-events: none;
        }
        /* ==========================================================================
           3. ADMISSION FORM CONTAINER
           ========================================================================== */
        .form-container {
            position: relative;
            z-index: 1;
            max-width: 820px;
            width: 100%;
            background: var(--bg-white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            animation: slideUp 0.6s ease-out;
            backdrop-filter: blur(10px);
            margin: 2rem auto;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 2rem 2rem 1.8rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .form-header::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 0;
            right: 0;
            height: 40px;
            background: var(--bg-white);
            border-radius: 50% 50% 0 0;
        }

        .form-header h1 {
            font-size: 2.2rem;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 0.4rem;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        }

        .form-header .subtitle {
            color: #e0e7ff;
            font-size: 1rem;
            font-weight: 400;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 0.9;
        }

        .form-body {
            padding: 2rem 2rem 2.5rem;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 1.8rem;
        }

        fieldset {
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.8rem 1.5rem 1.5rem;
            position: relative;
            transition: border-color var(--transition), box-shadow var(--transition);
            background: #fafbfc;
        }

        fieldset:hover {
            border-color: var(--primary-light);
            box-shadow: var(--shadow-sm);
        }

        fieldset:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
        }

        legend {
            font-style: italic;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            padding: 0 0.9rem;
            background: var(--bg-white);
            border-radius: 20px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            border: 2px solid var(--primary-light);
        }

        .form-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.9rem;
            flex-wrap: wrap;
        }

        .form-row label {
            flex: 0 0 200px;
            font-weight: 600;
            font-size: 0.92rem;
            color: var(--text-dark);
            text-align: right;
            letter-spacing: 0.3px;
        }

        .form-row label .required-star {
            color: var(--error);
            font-weight: 700;
            margin-left: 2px;
        }

        .form-row input,
        .form-row select {
            flex: 1;
            min-width: 200px;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            font-family: inherit;
            color: var(--text-dark);
            background: #ffffff;
            transition: border-color var(--transition), box-shadow var(--transition);
            outline: none;
        }

        .form-row input:focus,
        .form-row select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
        }

        .form-row input::placeholder {
            color: var(--text-light);
            font-style: italic;
            font-size: 0.88rem;
        }

        .form-row input.error {
            border-color: var(--error);
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
            animation: shake 0.4s ease;
        }

        .form-row input.success {
            border-color: var(--success);
        }

        @keyframes shake {
            0%,
            100% {
                transform: translateX(0);
            }
            25% {
                transform: translateX(-8px);
            }
            75% {
                transform: translateX(8px);
            }
        }

        .file-upload-wrapper {
            flex: 1;
            min-width: 200px;
            position: relative;
        }

        .file-upload-wrapper input[type="file"] {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            z-index: 2;
        }

        .file-upload-display {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            padding: 0.7rem 1rem;
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-sm);
            background: #f8fafc;
            font-size: 0.88rem;
            color: var(--text-light);
            transition: border-color var(--transition), background var(--transition);
            pointer-events: none;
        }

        .file-upload-wrapper input[type="file"]:hover~.file-upload-display,
        .file-upload-wrapper input[type="file"]:focus~.file-upload-display {
            border-color: var(--primary);
            background: #eef2ff;
        }

        .file-upload-display .file-icon {
            font-size: 1.3rem;
        }

        .file-upload-display .file-name {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-upload-display .file-name.has-file {
            color: var(--text-dark);
            font-weight: 500;
        }

        .file-upload-display .upload-btn-badge {
            background: var(--primary);
            color: #fff;
            padding: 0.35rem 0.8rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .photo-preview-container {
            display: none;
            margin-top: 0.8rem;
            text-align: center;
        }

        .photo-preview-container img {
            max-width: 140px;
            max-height: 140px;
            border-radius: 50%;
            border: 4px solid var(--primary-light);
            object-fit: cover;
            box-shadow: var(--shadow-md);
            animation: fadeIn 0.4s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .form-row select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 14px;
            padding-right: 2.5rem;
            cursor: pointer;
        }

        .form-row select:hover {
            border-color: var(--primary-light);
        }

        .robot-check {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.7rem;
            padding: 1rem;
            background: #f0f4ff;
            border-radius: var(--radius-sm);
            border: 2px solid #dbeafe;
            cursor: pointer;
            transition: background var(--transition), border-color var(--transition);
            user-select: none;
        }

        .robot-check:hover {
            background: #e0e7ff;
            border-color: var(--primary-light);
        }

        .robot-check input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: var(--primary);
            cursor: pointer;
            flex: 0 0 20px;
        }

        .robot-check label {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-dark);
            cursor: pointer;
            flex: 0 0 auto;
        }

        .submit-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 1rem 3rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #ffffff;
            font-size: 1.1rem;
            font-weight: 700;
            font-family: inherit;
            letter-spacing: 1px;
            text-transform: uppercase;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all var(--transition);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
            position: relative;
            overflow: hidden;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }

        .submit-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(79, 70, 229, 0.55);
        }

        .submit-btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
        }

        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .toast {
            position: fixed;
            top: 2rem;
            right: 2rem;
            z-index: 1000;
            padding: 1rem 1.8rem;
            border-radius: var(--radius-sm);
            color: #fff;
            font-weight: 600;
            font-size: 0.95rem;
            font-family: var(--font-family);
            box-shadow: var(--shadow-lg);
            animation: toastIn 0.4s ease, toastOut 0.4s ease 3.5s forwards;
            max-width: 380px;
        }

        .toast.success {
            background: var(--success);
        }
        .toast.error {
            background: var(--error);
        }
        .toast.info {
            background: var(--primary);
        }

        @keyframes toastIn {
            from {
                opacity: 0;
                transform: translateX(60px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes toastOut {
            to {
                opacity: 0;
                transform: translateX(60px);
            }
        }

        /* ==========================================================================
           4. FOOTER STYLES
           ========================================================================== */
        .site-footer {
            background-color: #111;
            color: #bbb;
            padding: 3rem 0 0 0;
            margin-top: 4rem;
            position: relative;
            z-index: 1;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2.5rem;
            padding-bottom: 3rem;
        }

        .footer-col h4 {
            color: var(--white);
            margin-bottom: 1.2rem;
            font-size: 1.1rem;
            position: relative;
        }

        .footer-col h4::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 35px;
            height: 2px;
            background-color: var(--secondary-color);
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .footer-links a {
            color: #bbb;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--secondary-color);
            padding-left: 4px;
        }

        .footer-address {
            font-size: 0.9rem;
            margin-bottom: 0.8rem;
        }

        .map-container iframe {
            width: 100%;
            height: 180px;
            border: none;
            border-radius: 4px;
            background-color: #222;
        }

        .copyright-bar {
            background-color: #0a0a0a;
            padding: 1.5rem 0;
            font-size: 0.85rem;
            border-top: 1px solid #222;
        }

        .copyright-flex {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .dev-name {
            color: var(--secondary-color);
            font-weight: 500;
        }

        /* ==========================================================================
           5. RESPONSIVE ADJUSTMENTS
           ========================================================================== */
        @media (max-width: 768px) {
            .form-body {
                padding: 1.2rem 1rem 1.8rem;
            }

            .form-header {
                padding: 1.5rem 1rem 1.4rem;
            }

            .form-header h1 {
                font-size: 1.6rem;
            }

            fieldset {
                padding: 1.4rem 0.9rem 1.2rem;
            }

            .form-row {
                flex-direction: column;
                align-items: stretch;
                gap: 0.4rem;
            }

            .form-row label {
                flex: 0 0 auto;
                text-align: left;
                font-size: 0.85rem;
            }

            .form-row input,
            .form-row select,
            .file-upload-wrapper {
                min-width: 100%;
                width: 100%;
            }

            .submit-btn {
                padding: 0.85rem 2rem;
                font-size: 0.95rem;
            }

            .toast {
                top: 1rem;
                right: 1rem;
                left: 1rem;
                max-width: none;
            }

            .school-header {
                padding: 1.8rem 0;
            }

            .logo-container h1 {
                font-size: 1.8rem;
            }

            .main-nav a {
                padding: 0.8rem 1rem;
                font-size: 0.85rem;
            }

            .copyright-flex {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0;
            }
            .form-header h1 {
                font-size: 1.3rem;
            }
            legend {
                font-size: 0.85rem;
                padding: 0 0.6rem;
            }
            .form-row input,
            .form-row select {
                padding: 0.6rem 0.8rem;
                font-size: 0.88rem;
            }
            .logo-container h1 {
                font-size: 1.4rem;
            }
        }