/* =============================================================================
   Student Portal – Consolidated CSS (mobile responsive)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Variables & Base
   ----------------------------------------------------------------------------- */
:root {
    --bg: #f0f4ff;
    --bg-subtle: #e8eeff;
    --card: #fff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
    --shadow-lg: 0 20px 50px -12px rgba(79, 70, 229, 0.15);
}

[data-bs-theme="dark"] {
    --bg: #0f172a;
    --bg-subtle: #1e293b;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

[data-bs-theme="light"] body {
    background: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 50%, #f8fafc 100%);
}

[data-bs-theme="dark"] body {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* -----------------------------------------------------------------------------
   App card, forms, buttons
   ----------------------------------------------------------------------------- */
.app-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.form-control, .form-select {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control::placeholder { color: var(--muted); }

.form-control:focus, .form-select:focus {
    background: var(--card);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-label { font-weight: 500; color: var(--text); }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-toggle-theme {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.btn-toggle-theme .btn {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
}

.link-secondary { color: var(--muted); text-decoration: none; font-weight: 500; }
.link-secondary:hover { color: var(--primary); }

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
    transition: border-color .15s, background .15s;
}

.btn-google:hover { background: var(--bg-subtle); border-color: var(--muted); color: var(--text); }

.divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--muted); font-size: 0.875rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.form-page { padding: 1rem 0 2rem; }
.matric-readonly input:disabled { cursor: default; opacity: 1; }

/* -----------------------------------------------------------------------------
   Finance topbar & layout
   ----------------------------------------------------------------------------- */
.finance-topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.finance-topbar-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }

.finance-topbar-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.finance-topbar-name:hover { opacity: 0.85; color: var(--text); }

.finance-topbar-theme { position: static; }
.finance-topbar-theme .btn-toggle-theme { position: static; }

.finance-main { min-height: calc(100vh - 120px); }

/* Finance: no gap above header (phone and wider) */
main:has(.student-finance-wrapper) {
    padding-top: 0 !important;
}
.student-finance-wrapper .finance-topbar {
    margin-top: 0;
}

.finance-profile-dropdown {
    min-width: 220px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .finance-profile-dropdown {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

.finance-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.finance-dropdown-item:hover, .finance-dropdown-item:focus {
    background: var(--bg-subtle);
}

.finance-dropdown-icon {
    width: 1.5rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
}

.finance-dropdown-divider {
    margin: 0.375rem 0;
    border-color: var(--border);
}

.finance-dropdown-item-logout {
    color: #dc3545 !important;
}

.finance-dropdown-item-logout:hover, .finance-dropdown-item-logout:focus {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* -----------------------------------------------------------------------------
   Finance stat cards (dashboard)
   ----------------------------------------------------------------------------- */
.finance-stat-card { transition: transform 0.15s ease; }
.finance-stat-card:hover { transform: translateY(-2px); }

.finance-stat-icon { width: 48px; height: 48px; }
.finance-stat-icon-total { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.finance-stat-icon-paid { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.finance-stat-icon-pending { background: rgba(234, 179, 8, 0.15); color: #ca8a04; }

.finance-stat-value { font-size: 1.25rem; color: var(--text); }
.finance-stat-currency { font-size: 0.875rem; font-weight: 600; color: var(--muted); }

[data-bs-theme="dark"] .finance-stat-icon-total { background: rgba(59, 130, 246, 0.25); color: #60a5fa; }
[data-bs-theme="dark"] .finance-stat-icon-paid { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
[data-bs-theme="dark"] .finance-stat-icon-pending { background: rgba(234, 179, 8, 0.25); color: #facc15; }

/* -----------------------------------------------------------------------------
   Timeline (finance dashboard)
   ----------------------------------------------------------------------------- */
.timeline-cards-wrapper { display: flex; flex-direction: column; gap: 1.25rem; }

.timeline-group-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-bs-theme="dark"] .timeline-group-card { box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

.timeline-group-card-header {
    padding: 1rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.timeline-group-name { font-weight: 600; font-size: 1rem; color: var(--text); }
.timeline-group-meta { font-size: 0.8125rem; color: var(--muted); }
.timeline-group-card-body { padding: 1rem 1.25rem 1.25rem; }
.timeline-empty-text { font-size: 0.875rem; color: var(--muted); }

.timeline-track { position: relative; padding-left: 1.5rem; }

.timeline-track::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
    border-radius: 1px;
}

.timeline-node { position: relative; padding-bottom: 0.75rem; }
.timeline-node:last-child { padding-bottom: 0; }

.timeline-node-dot {
    position: absolute;
    left: -1.5rem;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-subtle);
    box-sizing: border-box;
    z-index: 1;
}

.timeline-node-dot-present { background: #16a34a; }
.timeline-node-dot-absent { background: #dc2626; }

[data-bs-theme="dark"] .timeline-node-dot-present { background: #4ade80; }
[data-bs-theme="dark"] .timeline-node-dot-absent { background: #f87171; }

.timeline-node-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.15s ease;
}

.timeline-node-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
[data-bs-theme="dark"] .timeline-node-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.25); }

.timeline-node-date { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.timeline-node-year { opacity: 0.9; }
.timeline-more-text { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; margin-left: 1.5rem; }

.attendance-timeline-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
}

.attendance-timeline-badge-present { background: rgba(34, 197, 94, 0.2); color: #16a34a; }
.attendance-timeline-badge-absent { background: rgba(239, 68, 68, 0.2); color: #dc2626; }
.attendance-timeline-badge-future { background: rgba(100, 116, 139, 0.2); color: #64748b; }

[data-bs-theme="dark"] .attendance-timeline-badge-present { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
[data-bs-theme="dark"] .attendance-timeline-badge-absent { background: rgba(239, 68, 68, 0.25); color: #f87171; }
[data-bs-theme="dark"] .attendance-timeline-badge-future { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* -----------------------------------------------------------------------------
   Attendance page
   ----------------------------------------------------------------------------- */
.attendance-group-block:last-child { border-bottom: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }

.attendance-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.attendance-card-body { padding: 1rem 1.25rem; }

.attendance-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.attendance-card-row:last-child { border-bottom: 0; }

.attendance-card-label {
    font-size: 0.8125rem;
    color: var(--muted);
    flex-shrink: 0;
}

.attendance-card-value { font-weight: 500; text-align: right; }

.attendance-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-attendance {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: default;
    pointer-events: none;
}

.btn-attendance-present {
    background: var(--attendance-present-bg, rgba(34, 197, 94, 0.2));
    color: var(--attendance-present-text, #16a34a);
}

[data-bs-theme="dark"] .btn-attendance-present {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.btn-attendance-absent {
    background: var(--attendance-absent-bg, rgba(239, 68, 68, 0.2));
    color: var(--attendance-absent-text, #dc2626);
}

[data-bs-theme="dark"] .btn-attendance-absent {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.attendance-status-buttons .btn.disabled,
.attendance-status-buttons .btn:disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* -----------------------------------------------------------------------------
   Marks page
   ----------------------------------------------------------------------------- */
.marks-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.marks-filters .form-select {
    width: auto;
    min-width: 180px;
}

.marks-table-wrapper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.marks-table {
    border-collapse: collapse;
    color: var(--text);
    table-layout: fixed;
    width: 100%;
}

.marks-table thead th {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.marks-table thead th:first-child {
    width: 42%;
    min-width: 180px;
    text-align: left;
}

.marks-table thead th:nth-child(2), .marks-table thead th:nth-child(3),
.marks-table thead th:nth-child(4), .marks-table thead th:nth-child(5) {
    width: 10%;
    text-align: right;
}

.marks-table thead th:last-child {
    width: 8%;
    text-align: left;
}

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

.marks-table tbody td:first-child {
    white-space: normal;
    min-width: 0;
}

.marks-table tbody td:not(:first-child) {
    white-space: nowrap;
    text-align: right;
}

.marks-table tbody td:last-child { text-align: left; }
.marks-table tbody tr:last-child td { border-bottom: 0; }
.marks-table tbody tr:hover { background: var(--bg-subtle); }

.marks-relation-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0.1rem;
    font-size: 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.marks-header-cancel {
    text-decoration: overline;
    text-decoration-color: var(--muted, currentColor);
    text-decoration-thickness: 1.5px;
}

/* -----------------------------------------------------------------------------
   Payments page
   ----------------------------------------------------------------------------- */
.payments-card { overflow: hidden; }

.payments-table {
    border-collapse: collapse;
    color: var(--text);
}

.payments-table thead th {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

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

.payments-table tfoot .payments-totals-row {
    background: var(--bg-subtle);
    border-top: 2px solid var(--border);
}

.payments-table tfoot .payments-totals-row th,
.payments-table tfoot .payments-totals-row td {
    padding: 0.75rem 1rem;
    border-bottom: 0;
}

.payments-table tbody tr:hover { background: var(--bg-subtle); }

.payments-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.payment-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: capitalize;
}

.payment-badge-paid, .payment-badge-complete, .payment-badge-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

[data-bs-theme="dark"] .payment-badge-paid,
[data-bs-theme="dark"] .payment-badge-complete,
[data-bs-theme="dark"] .payment-badge-completed {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.payment-badge-pending, .payment-badge-partial {
    background: rgba(234, 179, 8, 0.2);
    color: #ca8a04;
}

[data-bs-theme="dark"] .payment-badge-pending,
[data-bs-theme="dark"] .payment-badge-partial {
    background: rgba(234, 179, 8, 0.25);
    color: #facc15;
}

.payment-badge-unpaid, .payment-badge-due, .payment-badge-overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

[data-bs-theme="dark"] .payment-badge-unpaid,
[data-bs-theme="dark"] .payment-badge-due,
[data-bs-theme="dark"] .payment-badge-overdue {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.payment-mobile-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.payment-mobile-card:last-child { margin-bottom: 0; }
.payment-totals-card { border-width: 2px; margin-top: 0.5rem; }

.payment-mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.payment-mobile-row:last-child { border-bottom: 0; }
.payment-mobile-label { font-size: 0.8125rem; color: var(--muted); flex-shrink: 0; }
.payment-mobile-value { font-weight: 500; text-align: right; }

/* -----------------------------------------------------------------------------
   Registration fees & Tuition fees
   ----------------------------------------------------------------------------- */
.registration-fees-card, .tuition-fees-card { overflow: hidden; }

.registration-fees-table, .tuition-fees-table {
    border-collapse: collapse;
    color: var(--text);
}

.registration-fees-table thead th,
.tuition-fees-table thead th {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.registration-fees-table tbody td,
.tuition-fees-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.registration-fees-table tbody td { white-space: nowrap; }
.registration-fees-table tbody tr:last-child td, .tuition-fees-table tbody tr:last-child td { border-bottom: 0; }
.registration-fees-table tbody tr:hover, .tuition-fees-table tbody tr:hover { background: var(--bg-subtle); }

.registration-fees-card .table-responsive,
.tuition-fees-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.registration-fee-mobile-card,
.tuition-fee-mobile-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.registration-fee-mobile-card:last-child,
.tuition-fee-mobile-card:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------------------
   Profile page
   ----------------------------------------------------------------------------- */
.profile-info-block {
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 120px;
}

/* -----------------------------------------------------------------------------
   Verify page
   ----------------------------------------------------------------------------- */
.verify-icon .text-primary { color: var(--primary) !important; }

/* =============================================================================
   Mobile responsive
   ============================================================================= */

@media (max-width: 575.98px) {
    .form-page { padding: 1rem 0 2rem; }

    /* Finance: full width on mobile, header at top, no overflow */
    main:has(.student-finance-wrapper) {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .student-finance-wrapper {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        width: calc(100% + 1.5rem);
        max-width: 100vw;
        overflow-x: hidden;
    }

    .student-finance-wrapper .finance-topbar {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 1rem;
        min-height: 56px;
        position: sticky;
        top: 0;
    }

    .student-finance-wrapper .finance-topbar-name {
        font-size: 1.125rem;
    }

    .student-finance-wrapper .finance-topbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    /* Finance main content – maximum width on mobile */
    .student-finance-wrapper .finance-main .container-fluid {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        max-width: 100%;
    }

    .student-finance-wrapper .finance-main .app-card.p-4,
    .student-finance-wrapper .finance-main .app-card.p-4.p-md-5 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Card bodies (registration fees, payments, tuition, profile form, etc.) */
    .student-finance-wrapper .finance-main .card-body.p-4,
    .student-finance-wrapper .finance-main .card-body.p-4.p-md-5 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .student-finance-wrapper .finance-main .form-control {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Stat cards stack better */
    .finance-stat-value { font-size: 1.1rem; }
    .finance-stat-icon { width: 42px; height: 42px; }

    /* Timeline mobile */
    .timeline-group-card-header,
    .timeline-group-card-body {
        padding: 0.875rem 1rem;
    }

    .timeline-track { padding-left: 1.25rem; }
    .timeline-node-dot {
        left: -1.25rem;
        width: 12px;
        height: 12px;
    }

    /* Marks filters full width */
    .marks-filters { flex-direction: column; align-items: stretch; }
    .marks-filters .form-select { min-width: 100%; }

    /* Marks table mobile – scroll to see all, no wrap */
    .marks-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .marks-table {
        table-layout: auto;
        min-width: 420px;
        width: max-content;
    }
    .marks-table thead th,
    .marks-table tbody td {
        padding: 0.5rem 0.5rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
    .marks-table thead th:first-child,
    .marks-table tbody td:first-child {
        min-width: 100px;
        white-space: nowrap;
    }
    .marks-table tbody td:first-child .fw-semibold,
    .marks-table tbody td:first-child .small {
        white-space: nowrap;
        display: inline;
    }
    .marks-table tbody td:first-child .small::before {
        content: ' · ';
        white-space: pre;
    }
    .marks-table thead th:not(:first-child),
    .marks-table tbody td:not(:first-child) {
        min-width: 3.25rem;
    }

    /* Profile blocks stack */
    .profile-info-block { min-width: 100%; }

    /* Attendance cards – compact status buttons on one line */
    .attendance-card-body { padding: 0.875rem 1rem; }
    .attendance-status-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
    }
    .attendance-status-buttons .btn-attendance,
    .attendance-status-buttons .btn,
    .attendance-status-buttons .btn-sm,
    .attendance-status-buttons a.btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

@media (min-width: 576px) {
    .form-page { padding: 2rem 0 3rem; }
}

@media (min-width: 768px) {
    .form-page { padding: 2.5rem 0 4rem; }
    .payments-card .table-responsive { margin: 0; padding: 0; }
    .registration-fees-card .table-responsive,
    .tuition-fees-card .table-responsive { margin: 0; padding: 0; }
}
