        /* ===== BRAND COLORS ===== */
        :root {
            --primary: #0B3B6F;
            --primary-dark: #072A50;
            --secondary: #00A86B;
            --secondary-dark: #00895A;
            --accent: #E63946;
            --text-primary: #1F2937;
            --text-secondary: #4B5563;
            --text-muted: #6B7280;
            --border-color: #D9E2EC;
            --bg-page: #F8FAFC;
            --bg-section: #EEF5FB;
            --white: #FFFFFF;
        }

        /* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', system-ui, sans-serif;
            background: var(--bg-page);
            color: var(--text-primary);
            padding: 30px 20px;
            line-height: 1.6;
        }

        .form-container {
            max-width: 1100px;
            margin: 0 auto;
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
            padding: 40px 45px;
            position: relative;
            overflow: hidden;
        }

        .form-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
            background-size: 200% 100%;
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* ===== SUCCESS MESSAGE ===== */
        .success-message {
            background: #d4edda;
            border: 2px solid #28a745;
            border-radius: 14px;
            padding: 20px 28px;
            margin-bottom: 25px;
            display: none;
            animation: slideDown 0.5s ease;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .success-message h3 {
            color: #155724;
            font-size: 1.2rem;
            margin-bottom: 8px;
        }

        .success-message p {
            color: #155724;
            font-size: 0.95rem;
        }

        .success-message .btn-download {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 30px;
            background: #28a745;
            color: #fff;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: 0.3s;
        }

        .success-message .btn-download:hover {
            background: #218838;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
        }

        .success-message .btn-print {
            display: inline-block;
            margin-top: 10px;
            margin-left: 10px;
            padding: 10px 30px;
            background: #17a2b8;
            color: #fff;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: 0.3s;
        }

        .success-message .btn-print:hover {
            background: #138496;
            transform: translateY(-2px);
        }

        /* ===== HEADER ===== */
        .form-header {
            text-align: center;
            padding-bottom: 25px;
            border-bottom: 2px solid #e8edf4;
            margin-bottom: 30px;
        }

        .form-header .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .form-header .logo img {
            height: 70px;
            width: auto;
        }

        .form-header h1 {
            font-size: 1.9rem;
            font-weight: 700;
            color: #0B3B6F;
            letter-spacing: 0.5px;
        }

        .form-header h1 span {
            color: #00A86B;
        }

        .form-header .subtitle {
            font-size: 1rem;
            color: #64748b;
            margin-top: 4px;
        }

        .form-header .institute-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: #0B3B6F;
            margin-top: 4px;
        }

        /* ===== FORM SECTIONS ===== */
        .form-section {
            margin-bottom: 32px;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 22px 28px;
            background: var(--bg-section);
            transition: 0.3s;
        }

        .form-section:hover {
            border-color: var(--secondary);
            box-shadow: 0 4px 16px rgba(0, 168, 107, 0.08);
        }

        .section-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(90deg, var(--bg-page), transparent);
            padding: 6px 0;
        }

        .section-title i {
            color: var(--secondary);
            font-size: 1.1rem;
            width: 28px;
            text-align: center;
        }

        .section-title .badge {
            background: var(--secondary);
            color: var(--white);
            font-size: 0.65rem;
            font-weight: 700;
            padding: 2px 12px;
            border-radius: 20px;
            margin-left: 8px;
        }

        /* ===== COLLAPSIBLE SECTIONS ===== */
        .collapsible-section .section-toggle,
        .collapsible-section .office-title.section-toggle {
            width: 100%;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 0;
            padding: 6px 0;
            font-family: inherit;
        }

        .collapsible-section .section-toggle:focus-visible {
            outline: 2px solid var(--secondary);
            outline-offset: 2px;
            border-radius: 6px;
        }

        .collapsible-section .section-title-main {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            flex-wrap: wrap;
        }

        .collapsible-section .section-arrow {
            color: var(--primary);
            font-size: 0.95rem;
            transition: transform 0.25s ease;
            flex-shrink: 0;
            width: 18px;
            text-align: center;
        }

        .collapsible-section.is-open .section-arrow {
            transform: rotate(180deg);
        }

        .collapsible-section .section-body {
            display: none;
            padding-top: 0;
        }

        .collapsible-section.is-open .section-body {
            display: block;
            padding-top: 18px;
        }

        .collapsible-section.is-open .section-toggle {
            margin-bottom: 0;
        }

        .collapsible-section:not(.is-open) {
            padding-bottom: 18px;
        }

        .collapsible-section.is-open {
            padding-bottom: 22px;
        }

        .office-use.collapsible-section .section-toggle {
            margin-bottom: 0;
        }

        .office-use.collapsible-section.is-open .section-body {
            padding-top: 12px;
        }

        /* ===== FORM ROWS ===== */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 18px 30px;
            margin-bottom: 14px;
        }

        .form-row.three-col {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .form-row.full-width {
            grid-template-columns: 1fr;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .form-group label {
            font-size: 0.82rem;
            font-weight: 600;
            color: #334155;
            letter-spacing: 0.3px;
        }

        .form-group label .required {
            color: #e74c3c;
            margin-left: 2px;
            font-weight: 700;
        }

        .form-group label.label-required,
        .form-group label:has(.required),
        .form-group:has(> [required]) > label,
        .form-group:has(> .dob-fields [required]) > label {
            font-weight: 700;
            color: #1e293b;
        }

        #admissionFormFields input[required]:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
        #admissionFormFields select[required],
        #admissionFormFields textarea[required],
        #admissionFormFields .dob-fields input[required],
        #admissionFormFields .input-required {
            font-weight: 700;
        }

        #admissionFormFields .radio-group label:has(input[required]) {
            font-weight: 700;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 10px 14px;
            border: 1.5px solid #dce3ec;
            border-radius: 10px;
            font-size: 0.95rem;
            font-family: inherit;
            background: #ffffff;
            transition: 0.25s;
            width: 100%;
            color: #1e293b;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #00A86B;
            box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.12);
        }

        .form-group input::placeholder {
            color: #94a3b8;
            font-size: 0.85rem;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 60px;
        }

        .form-group .help-text {
            font-size: 0.72rem;
            color: #94a3b8;
            margin-top: 2px;
        }

        .dob-fields {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .dob-fields .dob-input {
            padding: 10px 14px;
            border: 1.5px solid #dce3ec;
            border-radius: 10px;
            font-size: 0.95rem;
            font-family: inherit;
            background: #ffffff;
            text-align: center;
        }

        .dob-fields .dob-day,
        .dob-fields .dob-month {
            width: 64px;
            flex: 0 0 64px;
        }

        .dob-fields .dob-year {
            width: 88px;
            flex: 0 0 88px;
        }

        .form-group-mobile input.mobile-input {
            width: 100%;
            letter-spacing: 0.3px;
        }

        .form-group .auto-generated {
            background: #f1f5f9;
            color: #0B3B6F;
            font-weight: 600;
            padding: 10px 14px;
            border-radius: 10px;
            border: 2px dashed #00A86B;
            cursor: default;
        }

        /* ===== CHECKBOX & RADIO ===== */
        .radio-group,
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
            padding-top: 6px;
        }

        .radio-group label,
        .checkbox-group label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 400;
            font-size: 0.92rem;
            cursor: pointer;
            color: #1e293b;
        }

        .radio-group input[type="radio"],
        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #00A86B;
            cursor: pointer;
            flex-shrink: 0;
        }

        /* ===== PHOTO UPLOAD ===== */
        .photo-upload {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            padding: 12px 0;
        }

        .photo-placeholder {
            width: 120px;
            height: 120px;
            min-width: 120px;
            min-height: 120px;
            border: 2.5px dashed #00A86B;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #f8fafc;
            color: #94a3b8;
            font-size: 0.75rem;
            gap: 6px;
            transition: 0.3s;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .photo-preview-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            display: none;
            z-index: 2;
        }

        .photo-placeholder.has-preview {
            border-style: solid;
            border-color: #00A86B;
            padding: 0;
        }

        .photo-placeholder.has-preview .photo-placeholder-default {
            display: none;
        }

        .photo-placeholder.has-preview .photo-preview-img {
            display: block;
        }

        .photo-placeholder-default {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            height: 100%;
        }

        .photo-placeholder i {
            font-size: 2rem;
            color: #00A86B;
        }

        .photo-placeholder:hover {
            background: #f1f5f9;
            border-color: #33bb82;
        }

        .photo-upload .photo-info {
            font-size: 0.8rem;
            color: #64748b;
        }

        .photo-upload input[type="file"] {
            padding: 8px 0;
            font-size: 0.85rem;
        }

        /* ===== TABLE STYLES ===== */
        .table-wrap {
            overflow-x: auto;
            margin: 10px 0 6px 0;
            border-radius: 12px;
            border: 1px solid #e8edf4;
        }

        .table-wrap table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            min-width: 600px;
        }

        .table-wrap table th {
            background: #0B3B6F;
            color: #ffffff;
            padding: 10px 14px;
            text-align: left;
            font-weight: 600;
            white-space: nowrap;
        }

        .table-wrap table td {
            padding: 8px 14px;
            border-bottom: 1px solid #e8edf4;
        }

        .table-wrap table tr:last-child td {
            border-bottom: none;
        }

        .table-wrap table tr:hover td {
            background: #f8fafc;
        }

        .table-wrap table input {
            border: none;
            background: transparent;
            padding: 6px 4px;
            width: 100%;
            font-size: 0.85rem;
            font-family: inherit;
            border-bottom: 1.5px dashed #dce3ec;
            transition: 0.2s;
        }

        .table-wrap table input:focus {
            outline: none;
            border-bottom-color: #00A86B;
            background: #f8fafc;
            border-radius: 4px 4px 0 0;
        }

        .table-wrap table input::placeholder {
            color: #b0b8c4;
            font-size: 0.75rem;
        }

        /* ===== CHECKLIST ===== */
        .checklist-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px 30px;
            padding: 6px 0;
        }

        .checklist-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.88rem;
            padding: 4px 0;
        }

        .checklist-item input[type="checkbox"] {
            width: 17px;
            height: 17px;
            accent-color: #00A86B;
            flex-shrink: 0;
            cursor: pointer;
        }

        .checklist-item .doc-label {
            color: #1e293b;
        }

        /* ===== DECLARATION ===== */
        .declaration-box {
            background: #f8fafc;
            border-radius: 14px;
            padding: 20px 24px;
            border-left: 4px solid #00A86B;
            margin-top: 6px;
        }

        .declaration-box .decl-text {
            font-size: 0.92rem;
            color: #1e293b;
            line-height: 1.8;
            margin-bottom: 16px;
        }

        .declaration-box .decl-text .fill-name {
            display: inline-block;
            min-width: 160px;
            border-bottom: 1.5px dashed #00A86B;
            padding: 0 6px;
        }

        .declaration-box .sign-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
            margin-top: 14px;
        }

        .declaration-box .sign-row .sign-field label {
            font-size: 0.78rem;
            font-weight: 600;
            color: #334155;
            display: block;
            margin-bottom: 4px;
        }

        .declaration-box .sign-row .sign-field input {
            padding: 8px 12px;
            border: 1.5px solid #dce3ec;
            border-radius: 8px;
            width: 100%;
            font-size: 0.9rem;
            font-family: inherit;
            transition: 0.25s;
        }

        .declaration-box .sign-row .sign-field input:focus {
            outline: none;
            border-color: #00A86B;
            box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.10);
        }

        /* ===== SUBMIT BUTTON ===== */
        .form-actions {
            display: flex;
            gap: 16px;
            justify-content: flex-end;
            margin-top: 28px;
            padding-top: 22px;
            border-top: 2px solid #e8edf4;
            flex-wrap: wrap;
        }

        .btn {
            padding: 12px 40px;
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .btn-primary {
            background: var(--primary);
            color: var(--white);
            box-shadow: 0 4px 16px rgba(11, 59, 111, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            background: var(--primary-dark);
            box-shadow: 0 8px 28px rgba(11, 59, 111, 0.35);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: #e8edf4;
            color: #334155;
        }

        .btn-secondary:hover {
            background: #dce3ec;
        }

        /* ===== OFFICE USE ONLY ===== */
        .office-use {
            background: #f1f5f9;
            border: 2px dashed #00A86B;
            border-radius: 14px;
            padding: 18px 24px;
            margin: 32px 0;
        }

        .office-use .office-title {
            font-weight: 700;
            color: #0B3B6F;
            font-size: 0.95rem;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .office-use .office-title i {
            color: #00A86B;
        }

        .office-use .office-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px 24px;
        }

        .office-use .office-grid .form-group label {
            font-size: 0.72rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .office-use .office-grid .form-group input {
            background: #ffffff;
            border-style: dashed;
            padding: 8px 12px;
            font-size: 0.85rem;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 992px) {
            .form-container {
                padding: 28px 24px;
            }
            .form-row {
                grid-template-columns: 1fr 1fr;
            }
            .form-row.three-col {
                grid-template-columns: 1fr 1fr;
            }
            .checklist-grid {
                grid-template-columns: 1fr;
            }
            .declaration-box .sign-row {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 0;
            }
            body.admission-page {
                padding: 0;
            }
            .admission-page-main {
                padding: 0;
            }
            .form-container {
                max-width: 100%;
                width: 100%;
                margin: 0;
                padding: 14px 10px;
                border-radius: 0;
                box-shadow: none;
            }
            .form-header h1 {
                font-size: 1.4rem;
            }
            .form-header .logo img {
                height: 50px;
            }
            .form-section {
                padding: 16px 14px;
            }
            .form-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .form-group-mobile {
                grid-column: 1 / -1;
            }
            .form-group-mobile input.mobile-input {
                width: 100%;
                max-width: 100%;
            }
            .dob-fields {
                width: 100%;
            }
            .dob-fields .dob-day,
            .dob-fields .dob-month,
            .dob-fields .dob-year {
                flex: 1 1 auto;
                min-width: 56px;
            }
            .form-row.three-col {
                grid-template-columns: 1fr;
            }
            .photo-upload {
                flex-direction: column;
                align-items: flex-start;
            }
            .photo-placeholder {
                width: 100px;
                height: 100px;
            }
            .table-wrap table {
                font-size: 0.75rem;
                min-width: 480px;
            }
            .table-wrap table th,
            .table-wrap table td {
                padding: 6px 10px;
            }
            .declaration-box .sign-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .form-actions {
                justify-content: center;
            }
            .btn {
                padding: 10px 28px;
                font-size: 0.9rem;
                width: 100%;
                justify-content: center;
            }
            .office-use .office-grid {
                grid-template-columns: 1fr 1fr;
            }
            .section-title {
                font-size: 1rem;
            }
            .radio-group {
                gap: 14px;
            }
            .success-message .btn-download,
            .success-message .btn-print {
                display: block;
                width: 100%;
                text-align: center;
                margin-left: 0;
            }
        }

        @media (max-width: 480px) {
            .form-container {
                padding: 10px 8px;
            }
            .form-header h1 {
                font-size: 1.2rem;
            }
            .form-section {
                padding: 12px 10px;
            }
            .office-use .office-grid {
                grid-template-columns: 1fr;
            }
            .form-header .logo img {
                height: 40px;
            }
            .table-wrap table {
                font-size: 0.7rem;
                min-width: 380px;
            }
            .table-wrap table th,
            .table-wrap table td {
                padding: 4px 8px;
            }
        }

        /* ===== PRINT STYLES ===== */
        @media print {
            body {
                background: #ffffff;
                padding: 0.3in;
            }
            .form-container {
                box-shadow: none;
                border: none;
                border-radius: 0;
                padding: 20px;
            }
            .form-container::before {
                display: none;
            }
            .form-section {
                border-color: #ddd;
                background: #ffffff;
                box-shadow: none;
                page-break-inside: auto;
                break-inside: auto;
            }
            .collapsible-section .section-body {
                display: block !important;
                padding-top: 18px !important;
            }
            .collapsible-section .section-arrow,
            .collapsible-section .section-toggle {
                cursor: default;
            }
            .section-arrow {
                display: none !important;
            }
            .btn, .form-actions, .success-message .btn-download, .success-message .btn-print {
                display: none !important;
            }
            .photo-upload input[type="file"],
            .photo-upload .photo-info {
                display: none !important;
            }
            .form-group input,
            .form-group select,
            .form-group textarea {
                border-color: #ccc;
                background: #fafafa;
            }
