:root {
    --msbos-navy: #3771AD;
    --msbos-navy-dark: #255282;
    --msbos-gold: #d97706;
    --msbos-gold-hover: #b45309;
    --msbos-bg: #f8fafc;
    --msbos-card-bg: #ffffff;
    --msbos-text: #1e293b;
    --msbos-muted: #64748b;
    --msbos-border: #e2e8f0;
    --msbos-danger: #dc2626;
    --msbos-success: #16a34a;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--msbos-bg);
    color: var(--msbos-text);
    margin: 0;
    padding: 0;
}

/* MSBOS Header & Branding */
.msbos-navbar {
    background: linear-gradient(135deg, var(--msbos-navy-dark) 0%, var(--msbos-navy) 100%);
    border-bottom: 4px solid var(--msbos-gold);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
}

.msbos-brand-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.msbos-brand-sub {
    font-size: 0.8rem;
    color: #fcd34d;
}

.btn-msbos-gold {
    background-color: var(--msbos-gold);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-msbos-gold:hover {
    background-color: var(--msbos-gold-hover);
    color: #ffffff;
}

.btn-msbos-navy {
    background-color: var(--msbos-navy);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.btn-msbos-navy:hover {
    background-color: #2b4c7e;
    color: #ffffff;
}

/* Login Card Styling */
.login-container {
    max-width: 480px;
    margin: 3rem auto;
}

.login-card {
    background: var(--msbos-card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--msbos-border);
    overflow: hidden;
}

.login-header {
    background-color: var(--msbos-navy);
    color: white;
    padding: 1.75rem;
    text-align: center;
}

.login-tabs .nav-link {
    font-weight: 600;
    color: var(--msbos-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.85rem 1rem;
}

.login-tabs .nav-link.active {
    color: var(--msbos-navy);
    border-bottom: 3px solid var(--msbos-gold);
    background: transparent;
}

/* Dashboard Metric Cards */
.metric-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 5px solid var(--msbos-navy);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.metric-card.gold {
    border-left-color: var(--msbos-gold);
}

.metric-card.success {
    border-left-color: var(--msbos-success);
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--msbos-navy);
}

/* Form Tabs */
.form-tab-nav .nav-link {
    color: var(--msbos-navy);
    font-weight: 600;
    background: #e2e8f0;
    margin-right: 4px;
    margin-bottom: 6px;
    border-radius: 6px;
}

.form-tab-nav .nav-link.active {
    background: var(--msbos-navy);
    color: #ffffff;
}

/* Devanagari transliteration helper text */
.devanagari-preview {
    font-size: 0.85rem;
    color: #0369a1;
    font-weight: 600;
    margin-top: 2px;
}

/* MSBOS Student Registration Form Container & Layout */
.msbos-form-container {
    max-width: 1050px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.msbos-header {
    text-align: center;
    padding: 16px 20px 10px;
    border-bottom: 2px solid #1a56db;
    position: relative;
}

.msbos-logo {
    position: absolute;
    left: 20px;
    top: 15px;
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.msbos-header-title-en {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.msbos-header-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.msbos-nav-strip {
    background-color: #1e60a9;
    display: flex;
    padding: 8px 16px;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
}

.msbos-nav-strip a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.msbos-nav-strip a:hover {
    text-decoration: underline;
}

.msbos-form-heading {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    padding: 14px 0 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.msbos-form-body {
    padding: 10px 30px 30px;
}

.field-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    white-space: nowrap;
}

.field-label span.req {
    color: #dc2626;
    font-weight: bold;
}

.form-control-msbos, .form-select-msbos {
    font-size: 13.5px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 5px 10px;
    color: #0f172a;
    width: 100%;
    background-color: #fff;
}

.form-control-msbos:focus, .form-select-msbos:focus {
    border-color: #1e60a9;
    box-shadow: 0 0 0 2px rgba(30, 96, 169, 0.2);
    outline: none;
}

.form-check-inline-msbos {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

.form-check-inline-msbos input[type="radio"],
.form-check-inline-msbos input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

.subject-section {
    background: #fafafa;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.subject-section-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.subject-note {
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 14px;
}

.subject-group-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #94a3b8;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

.subject-item {
    font-size: 12.5px;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.subject-item input {
    margin-top: 3px;
    margin-right: 7px;
}

.subject-limit-warning {
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-top: 12px;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-icon-preview {
    width: 50px;
    height: 50px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #475569;
    border-radius: 4px;
    overflow: hidden;
}

.upload-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-msbos-submit {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 9px 38px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-msbos-submit:hover {
    background-color: #1d4ed8;
}

.msbos-footer {
    text-align: left;
    padding: 12px 30px;
    font-size: 12.5px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

@media (max-width: 768px) {
    .msbos-logo {
        position: static;
        display: block;
        margin: 0 auto 10px;
    }
}

/* ==========================================================================
   Modern Card-Based Registration Form Redesign Styles
   ========================================================================== */
.reg-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 15px 40px;
}

.reg-page-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

.reg-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.reg-page-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.reg-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    margin-bottom: 22px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reg-card:hover {
    box-shadow: 0 6px 18px -3px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.04);
}

.reg-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.reg-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.reg-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.reg-card-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.reg-card-body {
    padding: 22px;
}

.form-label-modern {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-label-modern span.req {
    color: #dc2626;
    font-weight: 700;
}

.form-control-modern, .form-select-modern {
    font-size: 0.875rem;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 8px 12px;
    width: 100%;
    transition: all 0.15s ease-in-out;
}

.form-control-modern:focus, .form-select-modern:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.form-control-modern::placeholder {
    color: #94a3b8;
    font-size: 0.825rem;
}

.pincode-status-text {
    font-size: 0.78rem;
    margin-top: 5px;
    font-weight: 500;
}

.pincode-status-text.success {
    color: #16a34a;
}

.pincode-status-text.warning {
    color: #d97706;
}

.pincode-status-text.error {
    color: #dc2626;
}

.radio-group-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
}

.radio-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.radio-pill-label input[type="radio"] {
    margin: 0;
    accent-color: #2563eb;
}

.radio-pill-label:has(input:checked) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.subject-guide-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.subject-guide-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.subject-guide-text {
    font-size: 0.825rem;
    color: #166534;
    margin: 0;
    line-height: 1.5;
}

.subject-group-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
}

.subject-group-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.83rem;
    color: #334155;
    transition: background 0.12s ease;
    cursor: pointer;
    margin-bottom: 3px;
}

.subject-item-modern:hover {
    background: #e2e8f0;
}

.subject-item-modern input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #2563eb;
    cursor: pointer;
}

.subject-counter-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.subject-sub-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 8px 0 4px 0;
    letter-spacing: 0.5px;
}

.subject-scroll-area {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.subject-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.subject-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.upload-card-box {
    border: 1px solid #e2e8f0;
    background: #fafafa;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
}

.upload-card-box:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.upload-preview-square {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #94a3b8;
    margin: 0 auto 12px;
    overflow: hidden;
}

.upload-preview-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-submit-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-form-reset {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.btn-form-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-form-submit {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 11px 36px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-form-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.validation-feedback-inline {
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 3px;
    display: none;
}

.conditional-fade {
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Step-by-Step Wizard Navigation & Progress Indicator
   ========================================================================== */
.step-progress-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px 16px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.step-progress-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.step-status-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.step-indicators-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.step-connector-line {
    position: absolute;
    top: 18px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.step-connector-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
    width: 0%;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: default;
    user-select: none;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.step-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
    line-height: 1.25;
    transition: all 0.25s ease;
    max-width: 90px;
}

.step-node.active .step-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-node.active .step-label {
    color: #1d4ed8;
    font-weight: 700;
}

.step-node.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.step-node.completed .step-label {
    color: #059669;
}

.form-step-pane {
    display: none;
    animation: fadeInStep 0.25s ease-in-out;
}

.form-step-pane.active {
    display: block;
}

@@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    margin-top: 14px;
}

.btn-step-prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-step-prev:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-step-next {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}

.btn-step-next:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.review-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.review-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-summary-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.84rem;
}

.review-summary-table th {
    width: 25%;
    color: #64748b;
    font-weight: 600;
    padding: 6px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.review-summary-table td {
    color: #0f172a;
    font-weight: 600;
    padding: 6px 10px;
    border-bottom: 1px solid #e2e8f0;
}

@@media (max-width: 768px) {
    .step-label {
        display: none;
    }
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .step-connector-line {
        top: 16px;
    }
}


