@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #16a34a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #1e3a8a;
    --light-bg: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    background-image: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Alert Banner Styles */
.alert-banner {
    background-color: #fffacd;
    border-left: 4px solid #ff9800;
    border-bottom: 2px solid #ff9800;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.alert-banner-icon {
    font-size: 20px;
    color: #f57c00;
    flex-shrink: 0;
    margin-top: -2px;
}

.alert-banner-text {
    color: #8b5a00;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    word-break: Georgia;
}

.alert-banner-close {
    background: none;
    border: none;
    color: #ff9800;
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    align-self: center;
}

.alert-banner-close:hover {
    color: #f57c00;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    /* Override old padding */
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text h3 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 0;
}

.logo-text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-menu-actions {
    display: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(.disabled-button) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.disabled-button {
    opacity: 0.6;
    cursor: not-allowed;
}

.disabled-button:hover {
    transform: none;
    box-shadow: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.98) 100%),
        url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'0.05\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 16px !important;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Important Messages Section */
.important-messages {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.important-messages h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.messages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.message-card {
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid;
}

.registration-notice {
    background-color: #fef3c7;
    border-left-color: var(--warning-color);
}

.status-notice {
    background-color: #dbeafe;
    border-left-color: var(--primary-color);
}

.message-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.message-card p {
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.message-list {
    list-style: none;
}

.message-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
}

.message-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.about-content p {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Registration Section */
.registration {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.registration h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.registration h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 20px;
}

.note-box {
    background-color: #d1fae5;
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.note-box p {
    color: #065f46;
    margin: 0;
}

/* Fee Payment Section */
.fee-payment {
    padding: 80px 0;
}

.fee-payment h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-description {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.payment-method {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.method-icon {
    font-size: 40px;
}

.method-header h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0;
}

.method-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.payment-list {
    list-style: none;
}

.payment-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
}

.payment-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Quick Steps */
.quick-steps {
    background-color: var(--light-bg);
    padding: 50px 40px;
    border-radius: 12px;
    margin-bottom: 50px;
}

.quick-steps h3 {
    font-size: 26px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Documentation Box */
.documentation-box {
    background-color: #dbeafe;
    border: 2px solid var(--primary-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.documentation-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.documentation-box p {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 16px;
}

.documentation-box .btn {
    display: inline-flex;
}

/* Notices Section */
.notices {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.notices h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.notice-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.notice-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.notice-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.notice-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* --- WIZARD & FORM STYLES --- */

/* Wizard Form Styles */
form {
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    margin-top: 20px;
    background-color: #fff;
}

/* Form layout overrides for cleaner look inside premium containers */
.glass-container form,
.card form,
.login-card form,
.flow-card form,
.preview-card form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-field input[type="date"] {
    font-size: 14px;
}

/* Submit Button */
button[type="submit"] {
    background-color: rgb(2, 178, 2);
    color: white;
    padding: 10px 20px;
    font-size: 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

button[type="submit"]:hover {
    background-color: darkgreen;
}

/* Fee Section Styles */
.fee-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fee-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.fee-item label {
    font-weight: bold;
}

.fee-item input,
.fee-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* --- WIZARD FORM REDESIGN STYLES --- */

/* Flat Corporate Container */
.glass-container {
    background: white;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    width: calc(100% - 40px);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #1a202c;
    font-size: 28px;
    margin-bottom: 5px;
}

.form-header p {
    color: #4a5568;
    margin: 0;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 80px;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    color: #a0aec0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    margin-bottom: 8px;
}

.step-indicator p {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 600;
    margin: 0;
    transition: 0.3s;
    text-align: center;
}

/* Active State */
.step-indicator.active .step-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.step-indicator.active p {
    color: var(--primary-color);
}

/* Completed State */
.step-indicator.completed .step-icon {
    background: var(--secondary-color);
    color: white;
}

.step-indicator.completed p {
    color: var(--secondary-color);
}

/* Connecting Lines */
.step-line {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 -20px;
    margin-top: 18.5px;
    z-index: 1;
    transition: 0.3s;
}

.step-line.active {
    background: var(--secondary-color);
}

/* Form Steps Visibility */
.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #2d3748;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
}

.form-field input,
.form-field select {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
    background: #f8fafc;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-error {
    border-color: #e53e3e !important;
    background: #fff5f5 !important;
}

/* Fee Cards */
.fee-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.fee-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mt-3 {
    margin-top: 20px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.spacer {
    flex-grow: 1;
}

.form-navigation button {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #edf2f7;
    color: #4a5568;
}

.btn-prev:hover {
    background: #e2e8f0;
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background: var(--primary-dark);
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
}

.btn-submit:hover {
    background: #15803d;
}


/* --- FLAT RESPONSIVE STYLES --- */

@media (max-width: 768px) {

    /* Header & Navigation Wrapper */
    .nav-wrapper {
        flex-wrap: nowrap;
        gap: 15px;
        padding: 10px 0;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text h3 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .logo-text p {
        font-size: 11px;
    }

    /* Mobile Hamburger Trigger */
    .hamburger {
        display: flex;
    }

    /* Landing Page Mobile Dropdown */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 600px;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }

    .nav-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        background: #f8fafc;
    }

    .nav-menu-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Main landing page header actions hidden inline on mobile */
    .main-header .action-buttons {
        display: none;
    }

    /* Standard header (wizard, preview, dashboard) actions visible inline but compact */
    .header:not(.main-header) .action-buttons {
        display: flex;
        width: auto;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header:not(.main-header) .action-buttons .btn {
        flex: initial;
        padding: 6px 12px;
        font-size: 13px;
        width: auto;
    }

    /* Hero Section */
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* General Grids responsiveness */
    .messages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul li a {
        display: inline-block;
        padding: 5px 0;
    }

    .alert-banner-content {
        padding-right: 25px;
    }

    .alert-banner-text {
        font-size: 13px;
    }
}

@media (max-width: 600px) {

    /* Wizard Container & Step Indicator */
    .glass-container {
        padding: 24px 16px;
        margin: 20px auto;
        width: calc(100% - 32px);
    }

    .step-indicator {
        width: 40px;
    }

    .step-indicator p {
        display: none;
    }

    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-line {
        margin-top: 14.5px;
        /* aligns with 32px icon center */
        margin-left: -10px;
        margin-right: -10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .fee-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {

    /* Headings Sizing */
    .hero h1 {
        font-size: 26px;
    }

    .important-messages h2,
    .about h2,
    .registration h2,
    .fee-payment h2,
    .notices h2,
    .form-header h2 {
        font-size: 22px;
    }

    /* Grids & Layout */
    .about-features {
        grid-template-columns: 1fr;
    }

    .steps-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Extremely compact header for very narrow screens */
    .logo-img {
        height: 36px;
    }

    .logo-text h3 {
        font-size: 13px;
    }

    .logo-text p {
        display: none;
        /* Hide subtitle to preserve space */
    }

    .header:not(.main-header) .action-buttons .btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Wizard Forms elements */
    .form-field input,
    .form-field select {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .form-navigation button {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 46px;
    }
}

/* --- MOBILE & DESKTOP FORM UI ENHANCEMENTS --- */
.hindi-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.hindi-input-group input {
    flex: 1;
    min-width: 0;
}

.hindi-input-group .btn-translate,
.hindi-input-group .btn-outline {
    background: #eff6ff;
    color: var(--primary-color);
    border: 1px solid #bfdbfe;
    padding: 0 14px;
    min-height: 44px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hindi-input-group .btn-translate:hover,
.hindi-input-group .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-step-status {
    display: none;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.08);
}

@media (max-width: 600px) {
    .mobile-step-status {
        display: block;
    }

    .hindi-input-group {
        gap: 6px;
    }

    .hindi-input-group .btn-translate,
    .hindi-input-group .btn-outline {
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Floating Focus & Modern Form Input Ring */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--primary-color) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.2) !important;
    outline: none !important;
}

/* Touch Friendly Spelling Pills */
.hindi-suggestions-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    clear: both;
}

.btn-hindi-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
    user-select: none;
}

/* --- COMPREHENSIVE MOBILE RESPONSIVENESS & SIDEBAR DRAWER STYLES --- */

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

select,
input,
textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.table-responsive table {
    width: 100%;
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive th,
.table-responsive td {
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap !important;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1150;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-toggle {
    display: none !important;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-right: 8px;
    flex-shrink: 0;
}

.mobile-nav-toggle:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.mobile-sidebar-header {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-sidebar-close {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-sidebar-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 280px;
        --sidebar-w: 270px;
        --topbar-height: 60px;
        --topbar-h: 60px;
    }

    .mobile-sidebar-header {
        display: flex !important;
    }

    .top-navbar {
        padding: 0 12px !important;
        height: 60px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100 !important;
        box-sizing: border-box !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
    }

    .top-navbar .navbar-left,
    .top-navbar .brand {
        gap: 8px !important;
        flex: 1;
        min-width: 0;
    }

    .top-navbar img {
        height: 32px !important;
    }

    .top-navbar h3 {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-navbar p {
        display: none !important;
    }

    .sidebar,
    aside.sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1200 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
        background: #ffffff !important;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto !important;
    }

    .sidebar.mobile-open,
    aside.sidebar.mobile-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .app-layout,
    .app-body {
        display: block !important;
        padding-top: 60px !important;
        width: 100% !important;
    }

    .main-wrapper,
    .content-area,
    .app-layout .main-wrapper,
    .app-body .content-area {
        margin-left: 0 !important;
        padding: 16px 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 18px 16px !important;
    }

    .hero-banner h1 {
        font-size: 20px !important;
    }

    .attendance-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .student-att-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px !important;
    }

    .status-btn-group {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .st-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 8px 0 !important;
    }

    /* Force form grid layouts to single column on mobile */
    .form-grid,
    div[style*="display: grid"],
    div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 640px) {
    .card {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }

    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Overall Attendance Gauge Mobile Stack */
    div[style*="background: linear-gradient(135deg, #0f766e"],
    div[style*="background: linear-gradient(135deg, #0f172a, #1e293b)"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 16px !important;
    }

    .user-badge-header,
    .top-navbar-user-badge {
        display: none !important;
    }
}