/* ============================================================
   KNU Admission Form – Modern Stylesheet
   ============================================================ */

:root {
    /* KNU brand palette (from color-reference.png) */
    --navy: #1a3258;
    --navy-dark: #132844;
    --navy-light: #2a4a72;
    --gold: #c49a47;
    --gold-dark: #a8823a;
    --gold-light: #d4ad5a;

    --primary: var(--navy);
    --primary-dark: var(--navy-dark);
    --primary-light: #e8eef5;
    --accent: var(--gold);
    --success: #059669;
    --error: #dc2626;
    --warning: var(--gold);
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --surface: #f5f6f8;
    --white: #ffffff;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: 0.2s ease;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================================
   Header – KNU three-tier layout
   ============================================================ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

/* Top bar */
.header-top-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.82rem;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    flex-wrap: wrap;
}

.header-tagline {
    color: var(--gold);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-link:hover { color: var(--gold-light); }

.contact-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Brand row */
.header-brand {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.brand-name {
    color: var(--navy);
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.brand-name-hindi {
    font-size: 1.15rem;
    max-width: 220px;
}

.brand-name-english {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    max-width: 240px;
}

.brand-logo-wrap { flex-shrink: 0; }

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.brand-logo-placeholder {
    width: 72px;
    height: 72px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--gold);
}

/* Nav strip */
.header-nav {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    gap: 1rem;
    flex-wrap: nowrap;
    min-width: min-content;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover { color: var(--navy); }

.nav-link-active {
    color: var(--gold-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.15rem;
}

.header-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.user-badge {
    font-size: 0.75rem;
    color: var(--navy);
    background: var(--primary-light);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
}

.nav-logout:hover { color: var(--error); }

.session-badge {
    background: var(--navy);
    color: var(--gold-light);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(196, 154, 71, 0.35);
}

/* Main */
.main-content {
    padding: 2rem 0 3rem;
}

/* Form wrapper */
.admission-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.form-hero h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Sections */
.form-section {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: var(--navy-dark);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.subsection-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 1rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -0.5rem 0 1rem;
}

/* Grid */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.form-group.full-width { grid-column: 1 / -1; }

.form-group.required > label::after {
    content: ' *';
    color: var(--error);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 154, 71, 0.2);
}

.form-control.error { border-color: var(--error); }

textarea.form-control { resize: vertical; min-height: 72px; }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.file-input { padding: 0.45rem; font-size: 0.85rem; }

.field-error {
    display: block;
    color: var(--error);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* Checkbox */
.checkbox-group { margin: 1rem 0; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--gold-dark);
}

.hidden { display: none !important; }

/* Weightage grid */
.weightage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Academic table */
.academic-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.academic-table th {
    background: var(--surface);
    padding: 0.6rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.academic-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.academic-table tr:last-child td { border-bottom: none; }

.academic-table .form-control {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
    min-width: 70px;
}

/* Course radio selection */
.course-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.course-radio-item {
    position: relative;
}

.course-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.course-radio-item label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 100%;
}

.course-radio-item input[type="radio"]:checked + label {
    border-color: var(--gold-dark);
    background: #faf6ee;
}

.course-radio-item input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
}

.course-radio-item .course-name {
    font-weight: 700;
    color: var(--navy);
}

.course-radio-item .course-faculty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-radio-item.course-ineligible {
    opacity: 0.4;
}

.course-eligibility-hint {
    background: #f0f4fa;
    border-left: 3px solid var(--gold);
    padding: 0.65rem 0.85rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.course-selection-disabled .course-radio-grid {
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(0.4);
}

.course-locked-hint {
    margin-bottom: 1rem;
}

.course-no-eligible {
    margin-bottom: 1rem;
}

.step2-form {
    margin-top: 1.5rem;
}

.step2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.step2-save-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Academic cards (mobile-friendly Step 2) */
.academic-cards {
    display: grid;
    gap: 1.25rem;
}

.academic-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    background: var(--surface);
}

.academic-card-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.academic-card-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1rem;
}

.academic-field .form-control[readonly] {
    background: #f0f2f5;
    cursor: default;
}

.required-mark {
    color: var(--error, #c0392b);
    margin-left: 0.15rem;
}

/* Read-only summary panels (Step 3) */
.summary-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
}

.summary-readonly .form-control,
.summary-readonly input,
.summary-readonly select {
    pointer-events: none;
    background: #f0f2f5;
}

.summary-weightage-grid,
.subject-choices-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-item-inline {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.summary-item-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-item-value {
    font-size: 0.92rem;
}

.summary-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
}

.academic-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.academic-summary-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    background: #fff;
}

.academic-summary-card-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: var(--navy);
}

.academic-summary-dl {
    margin: 0;
}

.academic-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.academic-summary-row:last-child {
    border-bottom: none;
}

.academic-summary-row dt {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.academic-summary-row dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

/* Step 3 subject selection */
.step3-form {
    margin-top: 0.5rem;
}

.subject-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-disclaimer {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--gold, #c9a227);
    background: #fff9e8;
    border-radius: 4px;
}

.course-disclaimer-label {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.course-disclaimer-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.subject-slot-label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.subject-catalog-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.subject-group-catalog {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.subject-catalog-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--navy);
}

.subject-catalog-hint-below {
    margin-bottom: 1rem;
}

.subject-group-list {
    display: grid;
    gap: 1rem;
}

.subject-catalog-faculty-title {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: var(--navy);
}

.subject-group-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    background: #fff;
    margin-bottom: 0.65rem;
}

.subject-group-card-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.subject-group-card-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.subject-group-card-list li.subject-selected {
    font-weight: 700;
    color: var(--gold-dark);
}

.subject-selection-section.subject-section-refreshed {
    animation: subjectSectionRefresh 0.4s ease;
}

@keyframes subjectSectionRefresh {
    0% { opacity: 0.55; }
    100% { opacity: 1; }
}

.application-complete-banner {
    margin-top: 1.25rem;
}

.step3-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.document-upload-grid {
    display: grid;
    gap: 1.25rem;
}

.document-upload-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    background: var(--surface);
}

.document-upload-required {
    border-left: 3px solid var(--gold);
}

.document-upload-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.document-upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.optional-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.document-uploaded-note {
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    color: var(--text-muted);
}

.uploaded-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    margin-right: 0.35rem;
}

.file-input {
    width: 100%;
    font-size: 0.9rem;
}

.step4-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.document-summary-list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.8;
}

@media (min-width: 640px) {
    .document-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dashboard-status-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Declaration */
.declaration-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.declaration-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Instructions */
.instructions-section {
    background: #faf6ee;
}

.instructions-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--warning);
}

.instructions-list {
    padding-left: 1.25rem;
    font-size: 0.88rem;
    color: var(--text);
}

.instructions-list li { margin-bottom: 0.4rem; }

.disclaimer-notice {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    border-left: 4px solid var(--warning);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 0.85rem 1.25rem;
    margin: 1rem 2rem 0;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #eff6ff;
    color: var(--navy);
    border: 1px solid #bfdbfe;
}

.alert-dev {
    background: #fefce8;
    color: #854d0e;
    border: 1px dashed var(--gold);
    font-family: monospace;
}

.alert-dev code {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover { background: var(--gold-dark); color: var(--white); }

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover { background: var(--surface); }

.btn:active { transform: scale(0.98); }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success page */
.success-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.success-card h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.success-message {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.success-details {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--text-muted); }

.detail-value { font-weight: 600; }

.reg-number {
    color: var(--gold-dark);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.success-instructions { text-align: left; margin-bottom: 1.5rem; }

.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-fee-block {
    margin: 0 auto 1.5rem;
    max-width: 420px;
    text-align: center;
}

.payment-fee-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-pay-fee.is-disabled,
.btn-pay-fee:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.success-email-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -0.75rem 0 1.25rem;
}

.success-card-pending .success-icon {
    background: #fef3c7;
    color: #b45309;
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.88);
    padding: 0 0 1.5rem;
    margin-top: auto;
    font-size: 0.85rem;
}

.footer-accent-line {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    margin-bottom: 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-name-hindi {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.footer-name-english {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--gold);
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer-contact-block h3,
.footer-links-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-contact-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.footer-contact-list a,
.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact-list a:hover,
.footer-links a:hover { color: var(--gold-light); }

.footer-links li { margin-bottom: 0.45rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.75;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        position: static;
        top: auto;
    }

    .form-grid.cols-2,
    .form-grid.cols-3,
    .weightage-grid,
    .course-radio-grid,
    .academic-card-fields,
    .subject-slot-grid,
    .summary-weightage-grid,
    .subject-choices-summary,
    .academic-summary-cards {
        grid-template-columns: 1fr;
    }

    .form-section { padding: 1.25rem 1rem; }
    .form-actions { padding: 1.25rem 1rem; flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .header-top-inner { flex-direction: column; align-items: flex-start; }
    .brand-row { gap: 0.75rem; }
    .brand-name-hindi,
    .brand-name-english { font-size: 0.95rem; max-width: none; }
    .header-nav-inner {
        flex-wrap: nowrap;
        align-items: center;
    }

    .header-nav-right {
        width: auto;
        justify-content: flex-start;
        flex-shrink: 0;
    }
    .footer-main { grid-template-columns: 1fr; }
    .landing-hero { padding: 1.75rem 1.25rem; }

    .brochure-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .brochure-banner-visual {
        justify-self: center;
    }

    .brochure-banner-content {
        order: 1;
    }

    .brochure-banner-action {
        order: 2;
        width: 100%;
    }

    .brochure-download-btn {
        width: 100%;
        max-width: 320px;
    }

    .brochure-desc {
        max-width: none;
    }

    .admission-form-wrapper > .brochure-banner-strip {
        margin: 0 1rem 1rem;
    }

    .brochure-banner-strip {
        flex-direction: column;
        text-align: center;
    }

    .brochure-strip-btn {
        width: 100%;
    }

    .brochure-manual-links-hero {
        text-align: center;
    }

    .brochure-manual-links-hero .brochure-manual-buttons,
    .brochure-manual-links-strip .brochure-manual-buttons {
        flex-direction: column;
    }

    .brochure-manual-links-hero .brochure-manual-btn,
    .brochure-manual-links-strip .brochure-manual-btn {
        width: 100%;
        justify-content: center;
    }

    .landing-headline { font-size: 1.4rem; }
    .details-grid { grid-template-columns: 1fr; }
}

@media print {
    .site-header, .site-footer, .form-actions, .success-actions { display: none; }
    .admission-form-wrapper, .success-card { box-shadow: none; }
}

/* ============================================================
   Landing Page
   ============================================================ */
.landing-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    color: var(--white);
    border-bottom: 4px solid var(--gold);
}

.landing-session {
    display: inline-block;
    background: rgba(196, 154, 71, 0.25);
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 154, 71, 0.4);
    margin-bottom: 1rem;
}

.landing-headline {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.landing-subheadline {
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.landing-intro {
    font-size: 0.92rem;
    opacity: 0.92;
    max-width: 720px;
    line-height: 1.7;
}

/* ============================================================
   Admission Brochure Download
   ============================================================ */
.brochure-banner-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff9ee 0%, #fff 40%, #f0f4fa 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(26, 50, 88, 0.12), 0 0 0 1px rgba(196, 154, 71, 0.15);
    padding: 0;
}

.brochure-banner-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(196, 154, 71, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.brochure-banner-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
}

.brochure-banner-visual {
    flex-shrink: 0;
}

.brochure-pdf-icon {
    position: relative;
    width: 88px;
    height: 88px;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(26, 50, 88, 0.35);
    animation: brochure-float 3s ease-in-out infinite;
}

.brochure-pdf-icon svg {
    width: 42px;
    height: 42px;
}

.brochure-pdf-tag {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@keyframes brochure-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.brochure-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.brochure-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.brochure-title-hi {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-top: 0.15rem;
}

.brochure-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
}

.brochure-banner-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.brochure-download-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(196, 154, 71, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    min-width: 200px;
    animation: brochure-pulse 2.5s ease-in-out infinite;
}

.brochure-download-btn svg {
    width: 28px;
    height: 28px;
}

.brochure-download-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(196, 154, 71, 0.55);
    color: var(--navy-dark);
}

.brochure-download-btn .btn-text-hi {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes brochure-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(196, 154, 71, 0.45); }
    50% { box-shadow: 0 4px 28px rgba(196, 154, 71, 0.65); }
}

.brochure-file-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
}

/* User manual download links (below brochure) */
.brochure-manual-links {
    margin-top: 1rem;
    width: 100%;
}

.brochure-manual-heading {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brochure-manual-heading .text-hi {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.brochure-manual-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.brochure-manual-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--navy-light);
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.brochure-manual-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.brochure-manual-btn:hover {
    background: var(--primary-light);
    border-color: var(--navy);
    color: var(--navy-dark);
}

.brochure-manual-btn-hi {
    font-family: inherit;
}

.brochure-manual-links-hero {
    text-align: left;
}

.brochure-manual-links-hero .brochure-manual-buttons {
    flex-direction: column;
    align-items: stretch;
}

.brochure-manual-links-hero .brochure-manual-btn {
    justify-content: center;
}

.brochure-manual-links-strip {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(26, 50, 88, 0.15);
}

.brochure-manual-links-footer {
    margin-top: 0.75rem;
}

.brochure-manual-links-footer .brochure-manual-buttons {
    flex-direction: column;
}

.brochure-manual-links-footer .brochure-manual-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.brochure-manual-links-footer .brochure-manual-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    color: var(--white);
}

/* Strip variant – forms & step 2 */
.brochure-banner-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin: 0 0 0;
    background: linear-gradient(90deg, rgba(196, 154, 71, 0.12) 0%, rgba(26, 50, 88, 0.06) 100%);
    border: 2px dashed var(--gold);
    border-radius: var(--radius);
}

.admission-form-wrapper > .brochure-banner-strip {
    margin: 0 2rem 1.25rem;
}

.dashboard-card > .brochure-banner-strip {
    margin: 0 0 1.25rem;
}

.brochure-strip-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold-light);
    border-radius: var(--radius);
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
}

.brochure-strip-icon svg {
    width: 22px;
    height: 22px;
}

.brochure-strip-content {
    flex: 1;
    min-width: 180px;
}

.brochure-strip-title {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.brochure-strip-title .text-hi {
    display: block;
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.brochure-strip-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.brochure-strip-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.65rem 1.25rem;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.brochure-strip-btn svg {
    width: 20px;
    height: 20px;
}

.brochure-strip-btn:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.brochure-strip-btn .btn-text-hi {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer brochure */
.footer-brochure {
    margin-top: 1rem;
}

.footer-brochure-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(196, 154, 71, 0.15);
    border: 1px solid rgba(196, 154, 71, 0.35);
    border-radius: var(--radius);
    color: var(--gold-light);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-brochure-link:hover {
    background: rgba(196, 154, 71, 0.28);
    border-color: var(--gold);
    color: var(--white);
    transform: translateX(4px);
}

.footer-brochure-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--navy-dark);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-brochure-icon svg {
    width: 22px;
    height: 22px;
}

.footer-brochure-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-brochure-text strong {
    font-size: 0.9rem;
    color: var(--white);
}

.footer-brochure-text span {
    font-size: 0.78rem;
    opacity: 0.85;
}

.footer-brochure-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.landing-page > .alert {
    margin: 0;
}

.landing-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow var(--transition), transform var(--transition);
}

.action-card:hover {
    box-shadow: var(--shadow-md);
}

.action-card-apply {
    border-top: 4px solid var(--gold);
}

.action-card-login {
    border-top: 4px solid var(--navy);
}

.action-card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--navy);
}

.action-card-icon svg {
    width: 22px;
    height: 22px;
}

.action-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.action-card > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.btn-block {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

.btn-arrow {
    width: 18px;
    height: 18px;
}

.action-note {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.65rem;
}

.login-form { margin-top: 0.25rem; }

.login-form .form-group { margin-bottom: 1rem; }

.field-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.otp-input {
    font-size: 1.25rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 600;
}

.resend-form {
    text-align: center;
    margin-top: 0;
}

.login-secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.login-reset-btn {
    margin-top: 0.25rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.btn-link:hover { color: var(--gold-dark); }

.logged-in-banner {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.logged-in-banner p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-panel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.process-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.process-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.process-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--gold);
    color: var(--navy-dark);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-steps li strong {
    display: block;
    font-size: 0.85rem;
    color: var(--navy-dark);
    margin-bottom: 0.15rem;
}

.process-steps li span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.doc-list {
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text);
}

.doc-list li { margin-bottom: 0.45rem; line-height: 1.5; }

.info-panel-contact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help-contact {
    list-style: none;
    padding: 0;
}

.help-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.help-contact svg {
    width: 16px;
    height: 16px;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.help-contact a {
    color: var(--navy);
    text-decoration: none;
}

.help-contact a:hover { text-decoration: underline; }

/* Landing – tablet & desktop */
@media (min-width: 769px) {
    .landing-actions {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .landing-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .action-card {
        padding: 1.75rem;
    }

    .landing-page {
        gap: 1.5rem;
    }
}

/* Landing – mobile refinements */
@media (max-width: 768px) {
    .landing-page {
        gap: 1rem;
    }

    .landing-page > .alert {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .action-card h3 {
        font-size: 1rem;
    }

    .action-card > p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .field-hint {
        word-break: break-word;
        line-height: 1.4;
    }

    .otp-input {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    .info-panel {
        padding: 1.25rem;
    }

    .main-content .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.section-title-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.3;
}

/* Bilingual labels & text */
.label-bilingual,
.text-bilingual,
.heading-bilingual {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    line-height: 1.35;
}

.label-bilingual-inline,
.text-bilingual-inline {
    display: inline-flex;
}

.label-en,
.text-en,
.heading-en,
.btn-text-en {
    font-weight: 500;
    color: var(--text);
}

.label-hi,
.text-hi,
.heading-hi,
.btn-text-hi {
    font-size: 0.78em;
    font-weight: 400;
    color: var(--text-muted);
}

.section-title .heading-en {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-title .heading-hi {
    font-size: 0.82rem;
    font-weight: 500;
}

.subsection-title.heading-bilingual .heading-en {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.subsection-title.heading-bilingual .heading-hi {
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: normal;
}

.heading-bilingual-center,
.text-bilingual-center {
    align-items: center;
    text-align: center;
}

.instructions-list-bilingual .bilingual-list-item {
    margin-bottom: 0.65rem;
}

.checkbox-label-bilingual {
    align-items: flex-start;
}

.btn-bilingual {
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    line-height: 1.25;
    min-height: 2.75rem;
}

.btn-bilingual .btn-text-hi {
    font-size: 0.72rem;
}

.panel-continue-action {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.panel-continue-action .btn-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-actions {
    flex-wrap: wrap;
}

.success-actions .btn-bilingual {
    flex: 1 1 auto;
    min-width: 140px;
}

.detail-item-label.label-bilingual {
    margin-bottom: 0.25rem;
}

.detail-item-label .label-en {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.detail-item-label .label-hi {
    font-size: 0.68rem;
}

.detail-label.label-bilingual .label-en,
.detail-label.label-bilingual .label-hi {
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.detail-label.label-bilingual {
    text-align: left;
    max-width: 55%;
}

@media (min-width: 769px) {
    .label-bilingual-inline {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        align-items: baseline;
    }

    .label-bilingual-inline .label-hi::before {
        content: '·';
        margin-right: 0.35rem;
        color: var(--border);
    }
}

/* Dashboard */
.dashboard-page {
    max-width: 560px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border-top: 4px solid var(--gold);
}

.dashboard-welcome h2 {
    font-family: var(--font-serif);
    color: var(--navy-dark);
    margin-bottom: 0.35rem;
}

.dashboard-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dashboard-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}

.dashboard-action-item:hover {
    border-color: var(--gold);
    background: #faf6ee;
}

.dashboard-action-icon {
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dashboard-action-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy-dark);
}

.dashboard-action-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-footer-actions {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.dashboard-page-wide {
    max-width: 900px;
}

.personal-details-panel {
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.personal-details-panel .section-title {
    margin-bottom: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.25rem;
}

.detail-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
}

.detail-item-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.detail-item-value {
    display: block;
    font-size: 0.9rem;
    color: var(--navy-dark);
    font-weight: 500;
    word-break: break-word;
}

.panel-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
}

.test-otp-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #fefce8;
    border-radius: var(--radius);
}

/* Payment modal (Step 1) */
body.modal-open {
    overflow: hidden;
}

/* Homepage welcome overlay */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.welcome-overlay.hidden {
    display: none !important;
}

.welcome-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
}

.welcome-overlay-box {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    padding: 1.75rem 1.5rem 1.5rem;
    border-top: 4px solid var(--gold-dark);
}

.welcome-overlay-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.welcome-overlay-close:hover {
    color: var(--navy-dark);
}

.welcome-overlay-header {
    padding-right: 2rem;
    margin-bottom: 1rem;
}

.welcome-overlay-session {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.35rem;
}

.welcome-overlay-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--primary-dark);
    line-height: 1.35;
}

.welcome-overlay-title .heading-hi,
.welcome-overlay-title .heading-en {
    display: block;
}

.welcome-overlay-title .heading-hi {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
}

.welcome-overlay-body {
    margin-bottom: 1.25rem;
}

.welcome-overlay-message {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
}

.welcome-overlay-message.text-hi {
    font-size: 1rem;
}

.welcome-overlay-message:last-child {
    margin-bottom: 0;
}

.welcome-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.welcome-overlay-cta {
    font-weight: 600;
}

@media (max-width: 480px) {
    .welcome-overlay-box {
        padding: 1.35rem 1.1rem 1.1rem;
    }

    .welcome-overlay-title {
        font-size: 1.15rem;
    }

    .welcome-overlay-message.text-hi {
        font-size: 0.92rem;
    }
}

.payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.payment-modal {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 1.5rem 1.35rem 1.35rem;
}

.payment-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.payment-modal-close:hover {
    color: var(--navy-dark);
}

.payment-modal h3 {
    margin: 0 2rem 0.75rem 0;
    color: var(--navy);
    font-size: 1.15rem;
}

.payment-modal-amount {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.payment-modal-hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-modal-qr {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.payment-qr-image {
    width: min(100%, 220px);
    height: auto;
    display: block;
    margin: 0 auto 0.75rem;
}

.payment-qr-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 600;
}

.payment-modal-bank-note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.payment-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.payment-modal-actions .btn {
    flex: 1 1 160px;
}

.payment-coming-soon {
    margin: 0.85rem 0 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    color: #92400e;
    background: #fef3c7;
    border-radius: var(--radius);
    line-height: 1.45;
}

@media (max-width: 768px) {
    .payment-modal {
        width: 100%;
        padding: 1.25rem 1rem;
    }

    .payment-modal-actions {
        flex-direction: column;
    }

    .payment-modal-actions .btn {
        width: 100%;
    }
}
