
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Variables ────────────────────────────── */
:root {
    --primary:        #176d37;
    --primary-hover:  #0f572b;
    --primary-light:  #e8f3ec;
    --surface:        #f4faf6;
    --text-dark:      #1a2e22;
    --text-muted:     #6c757d;
    --border-color:   #e2ede6;
    --card-radius:    10px;
    --navbar-height:  62px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--surface);
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ───────────────────────────────── */
.student-navbar {
    height: var(--navbar-height);
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.navbar-brand-icon {
    width: 32px; height: 32px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.student-nav-link {
    font-size: 0.845rem;
    font-weight: 400;
    color: var(--text-muted) !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.student-nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

.student-nav-link.active {
    color: var(--primary) !important;
    font-weight: 500;
    background-color: var(--primary-light);
}

.navbar-toggler { border: 1px solid var(--border-color); padding: 0.3rem 0.55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.15rem rgba(68,123,83,0.2); }

/* ── Page Content ─────────────────────────── */
.page-content {
    padding: 1.75rem 1.5rem;
    flex: 1;
}

.student-wrapper {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
}


.student-page-footer {
    padding: 14px 24px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: auto;
}

.student-page-footer p {
    margin: 0;
}

/* ── Welcome Banner ───────────────────────── */
.welcome-banner {
    background: var(--primary);
    border-radius: var(--card-radius);
    padding: 1.75rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: -30px; top: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    pointer-events: none;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    right: 60px; bottom: -50px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    pointer-events: none;
}

.welcome-banner h4 { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.3rem; position: relative; z-index: 1; }
.welcome-banner p  { font-size: 0.83rem; opacity: 0.88; margin-bottom: 0; position: relative; z-index: 1; }
.welcome-banner-icon { font-size: 3.5rem; opacity: 0.15; position: absolute; right: 1.5rem; bottom: 0.5rem; }

/* ── Content Cards ────────────────────────── */
.content-card { background: #fff; border-radius: var(--card-radius); border: 1px solid var(--border-color); }

.content-card-header {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}

.content-card-header h6 { font-weight: 600; margin: 0; font-size: 0.875rem; color: var(--text-dark); }

.content-card-body { padding: 1.25rem; }

/* ── Quick Action Buttons ─────────────────── */
.quick-action {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.4rem 1rem;
    text-align: center;
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    height: 100%;
    color: var(--text-dark);
}

.quick-action:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(68,123,83,0.12);
    transform: translateY(-2px);
    color: var(--primary);
}

.quick-action-icon {
    width: 52px; height: 52px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: background-color 0.2s;
}

.quick-action:hover .quick-action-icon { background-color: var(--primary); color: #fff; }

.quick-action span { font-size: 0.82rem; font-weight: 500; }

/* ── Appointment Card ─────────────────────── */
.appt-upcoming {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex; align-items: flex-start; gap: 1rem;
}

.appt-date-badge {
    background-color: var(--primary-light);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    text-align: center;
    flex-shrink: 0;
    min-width: 56px;
}

.appt-date-day  { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.appt-date-mon  { font-size: 0.68rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }

.appt-info { flex: 1; }
.appt-title { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
.appt-meta  { font-size: 0.775rem; color: var(--text-muted); }

/* ── Status Badges ────────────────────────── */
.badge-status { padding: 0.3em 0.75em; border-radius: 20px; font-size: 0.7rem; font-weight: 500; }
.badge-pending   { background-color: #fff3cd; color: #92600a; }
.badge-upcoming  { background-color: #d1e7dd; color: #0d5f35; }
.badge-approved  { background-color: #d1e7dd; color: #0d5f35; }
.badge-cancelled { background-color: #f8d7da; color: #842029; }
.badge-completed { background-color: #cfe2ff; color: #084298; }

/* ── Table ────────────────────────────────── */
.table-clean { margin-bottom: 0; font-size: 0.845rem; }

.table-clean thead th {
    background-color: var(--surface);
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table-clean tbody td { padding: 0.8rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border-color); }
.table-clean tbody tr:last-child td { border-bottom: none; }
.table-clean tbody tr:hover { background-color: #fafcfb; }

/* ── Buttons ──────────────────────────────── */
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; font-weight: 500; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-hover) !important; border-color: var(--primary-hover) !important; box-shadow: 0 0 0 0.2rem rgba(68,123,83,0.25) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }

/* Dashboard visual refresh */
.dashboard-page {
    max-width: 1320px;
}

.student-wrapper:has(.dashboard-page) .page-content {
    padding: 1.5rem 2rem 2rem;
}

.dashboard-page .dashboard-hero {
    min-height: 132px;
    border-radius: 16px;
    padding: 2.2rem 2.35rem;
    display: flex;
    align-items: center;
    background: var(--primary);
    box-shadow: 0 18px 40px rgba(21, 95, 49, 0.16);
}

.dashboard-page .dashboard-hero::before,
.dashboard-page .dashboard-hero::after {
    display: none;
}

.dashboard-hero__content {
    position: relative;
    z-index: 1;
}

.dashboard-page .dashboard-hero h4 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
}

.dashboard-page .dashboard-hero p {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.92;
}

.dashboard-page .dashboard-hero__icon {
    right: 3.5rem;
    bottom: 1.7rem;
    font-size: 5.2rem;
    opacity: 0.18;
}

.dashboard-page .quick-action {
    min-height: 118px;
    padding: 1.45rem 1.55rem;
    border-radius: 14px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(22, 44, 29, 0.06);
}

.dashboard-page .quick-action:hover {
    box-shadow: 0 14px 32px rgba(31, 115, 58, 0.13);
}

.dashboard-page .quick-action-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    font-size: 1.55rem;
}

.quick-action-copy {
    flex: 1;
    min-width: 0;
}

.dashboard-page .quick-action-copy span {
    display: block;
    color: #10291d;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.dashboard-page .quick-action-copy small {
    display: block;
    color: #536579;
    font-size: 0.85rem;
    line-height: 1.45;
}

.dashboard-page .quick-action-copy span em {
    color: #dc2626;
    font-style: normal;
}

.dashboard-page .quick-action-copy span .quick-action-inline {
    display: inline;
    margin: 0 0.15rem;
    color: #536579;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
}

.quick-action-arrow {
    color: #263c4d;
    font-size: 1.05rem;
    transition: color 0.16s ease, transform 0.16s ease;
}

.dashboard-page .quick-action:hover .quick-action-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.dashboard-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 44, 29, 0.06);
}

.dashboard-card .content-card-header {
    min-height: 78px;
    padding: 1.25rem 1.45rem;
}

.dashboard-card .content-card-header h6 {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #0f5630;
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.dashboard-card .btn-outline-primary {
    border-radius: 7px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
}

.dashboard-card .content-card-body {
    padding: 0.75rem 1.45rem 1.45rem;
}

.dashboard-page .appt-upcoming {
    min-height: 188px;
    padding: 0;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-page .appt-date-badge {
    width: 116px;
    min-width: 116px;
    border-radius: 0;
    padding: 2.2rem 0.9rem;
    background: linear-gradient(180deg, #f0f8f3 0%, #eaf5ee 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-page .appt-date-day {
    font-size: 2.35rem;
    color: #14743b;
    margin-bottom: 0.45rem;
}

.dashboard-page .appt-date-mon {
    font-size: 0.9rem;
    color: #14743b;
}

.appt-date-year {
    margin-top: 0.8rem;
    color: #536579;
    font-weight: 600;
}

.dashboard-page .appt-info {
    padding: 1.55rem 1.35rem;
}

.dashboard-page .appt-title {
    margin: 0.75rem 0 0.85rem;
    color: #10291d;
    font-size: 1.08rem;
    font-weight: 700;
}

.dashboard-page .appt-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.65rem;
    color: #536579;
    font-size: 0.86rem;
}

.dashboard-page .appt-meta i {
    color: #627184;
    font-size: 0.92rem;
}

.dashboard-page .badge-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-empty-state {
    min-height: 188px;
    border: 1px dashed #cfe3d5;
    border-radius: 12px;
    background: #fbfdfc;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.dashboard-empty-state i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.dashboard-empty-state strong {
    color: #10291d;
}

.dashboard-empty-state small {
    max-width: 270px;
    line-height: 1.5;
}

.dashboard-page .table-responsive {
    border-radius: 0 0 14px 14px;
}

.dashboard-page .table-clean {
    font-size: 0.9rem;
}

.dashboard-page .table-clean thead th {
    padding: 1rem 1.45rem;
    background: #f6faf8;
    color: #5d6b7c;
    font-size: 0.78rem;
}

.dashboard-page .table-clean tbody td {
    padding: 1.05rem 1.45rem;
    color: #102033;
}

.dashboard-page .table-clean tbody td:first-child strong {
    display: block;
    font-weight: 600;
}

.dashboard-page .table-clean tbody td:first-child span {
    display: block;
    color: #536579;
    font-size: 0.84rem;
    margin-top: 0.2rem;
}

.dashboard-page .table-clean tbody td:nth-child(2) {
    font-weight: 600;
}

/* ── Forms ────────────────────────────────── */
@media (max-width: 767.98px) {
    .student-wrapper:has(.dashboard-page) .page-content {
        padding: 1rem;
    }

    .dashboard-page .dashboard-hero {
        min-height: 118px;
        padding: 1.6rem 1.35rem;
        border-radius: 14px;
    }

    .dashboard-page .dashboard-hero h4 {
        font-size: 1.55rem;
    }

    .dashboard-page .dashboard-hero__icon {
        display: none;
    }

    .dashboard-page .quick-action {
        min-height: auto;
        padding: 1rem;
    }

    .dashboard-page .quick-action-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .dashboard-card .content-card-header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
    }

    .dashboard-page .appt-upcoming {
        flex-direction: column;
    }

    .dashboard-page .appt-date-badge {
        width: 100%;
        min-width: 0;
        padding: 1rem;
        flex-direction: row;
        align-items: baseline;
        gap: 0.55rem;
    }

    .appt-date-year {
        margin-top: 0;
    }

    .dashboard-page .table-clean thead {
        display: none;
    }

    .dashboard-page .table-clean tbody tr {
        display: block;
        border-bottom: 1px solid var(--border-color);
        padding: 0.85rem 1rem;
    }

    .dashboard-page .table-clean tbody tr:last-child {
        border-bottom: 0;
    }

    .dashboard-page .table-clean tbody td {
        display: block;
        border-bottom: 0;
        padding: 0.2rem 0;
    }
}

.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(68,123,83,0.2); }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--text-dark); margin-bottom: 0.35rem; }
.form-control { font-size: 0.875rem; padding: 0.55rem 0.85rem; border-color: #d0dbd3; border-radius: 7px; }

/* ── Login / Register Page css ────────────────── */
.login-wrapper { min-height: 100vh; display: flex; background: #fff; }

.login-panel {
    width: 420px; min-width: 420px;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 3rem;
    position: relative; overflow: hidden;
}

.login-panel::before {
    content: '';
    position: absolute; bottom: -80px; right: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    pointer-events: none;
}

.login-panel::after {
    content: '';
    position: absolute; top: -60px; left: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.06);
    pointer-events: none;
}

.login-panel-logo {
    margin-bottom: 1.5rem;
}

.login-panel-logo img {
    width: 180px;
    height: auto;
    display: block;
}
.login-panel h2 {
    margin-top: 0.5rem;
}

.login-panel p {
    margin-top: 0.3rem;
}

.login-panel h2 {
    color: #fff; font-weight: 700; font-size: 2.5rem;
    margin-bottom: 0.5rem; line-height: 1.25;
    position: relative; z-index: 1;
}

.login-panel p {
    color: #888888; ; font-size: 0.85rem; line-height: 1.65;
    max-width: 280px;
    position: relative; z-index: 1;
    margin-bottom: 0;
}

.login-panel-footer {
    margin-top: auto; padding-top: 2.5rem;
    color: rgba(255,255,255,0.3); font-size: 0.72rem;
    position: relative; z-index: 1;
}

.login-form-area {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem;
    background: #fff;
    overflow-y: auto;
}

.login-form-box { width: 100%; max-width: 400px; }
.login-form-box h4  { font-weight: 700; font-size: 1.35rem; color: var(--text-dark); margin-bottom: 0.35rem; }
.login-form-box > p { color: var(--text-muted); font-size: 0.83rem; margin-bottom: 1.75rem; }

.btn-login {
    width: 100%; padding: 0.65rem;
    font-weight: 600; font-size: 0.9rem;
    border-radius: 7px;
    background-color: var(--primary); border-color: var(--primary);
    color: #fff;
    transition: background-color 0.2s;
}

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

.login-alt-link { text-align: center; margin-top: 1.25rem; font-size: 0.82rem; color: var(--text-muted); }
.login-alt-link a { color: var(--primary); font-weight: 500; text-decoration: none; }
.login-alt-link a:hover { text-decoration: underline; }

.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--text-muted); font-size: 0.78rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border-color); }

/* Modern centered login card overrides */
.login-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem 0.9rem;
    background: #ffffff;
}

.login-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.login-page-stack {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.login-form-box {
    width: 100%;
    max-width: 330px;
    background: #fff;
    margin: 0 auto;
    border: 1px solid #dde5df;
    border-radius: 14px;
    padding: 1.45rem 1.2rem 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.login-brand {
    text-align: center;
    margin-bottom: 0;
    transform: translateY(-10px);
}

.login-brand-badge {
    width: 86px;
    height: 86px;
    margin: 0 auto 0.4rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.login-brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand h1 {
    margin: 0 0 0.25rem;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1b2126;
    line-height: 1.1;
}

.login-brand p {
    margin: 0;
    color: #666e79;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.2em;
}

.login-form-box .alert {
    position: relative;
    z-index: 1;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    padding: 0.65rem 0.8rem;
}

.login-form-box > h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #20262b;
    line-height: 1.05;
}

.login-form-box > p {
    position: relative;
    z-index: 1;
    margin: 0 0 1.1rem;
    color: #6f7781;
    font-size: 0.75rem;
    line-height: 1.45;
}

.form-field + .form-field {
    margin-top: 1rem;
}

.field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.forgot-password {
    color: #51b457;
    font-size: 0.62rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #3c9344;
}

.input-icon-group {
    position: relative;
    z-index: 1;
}

.input-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #77808a;
    font-size: 0.8rem;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #77808a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
    background-color: rgba(68,123,83,0.06);
    color: var(--primary);
}

.login-form-box .form-label {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2b3138;
    margin-bottom: 0.35rem;
}

.login-form-box .form-control {
    min-height: 34px;
    padding: 0.42rem 2.3rem 0.42rem 1.9rem;
    border-radius: 6px;
    border: 1px solid #dfe5ee;
    background-color: #ffffff;
    font-size: 0.72rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form-box .form-control::placeholder {
    color: #9aa2ae;
}

.login-form-box .form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.14rem rgba(68,123,83,0.12);
}

.gc-remember-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.gc-remember-row .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 1.1rem;
    min-height: 34px;
    padding: 0.5rem 0.9rem;
    border-radius: 7px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-login:hover,
.btn-login:focus {
    color: #fff;
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.login-back-button.btn-link {
    min-height: 34px;
    padding: 0.48rem 0.9rem;
    border: 1px solid var(--primary);
    border-radius: 7px;
    background: #fff;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.login-back-button.btn-link:hover,
.login-back-button.btn-link:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

.login-card-divider {
    position: relative;
    z-index: 1;
    margin-top: 0.3rem;
    text-align: center;
    color: #7d8590;
    font-size: 0.72rem;
}

.login-alt-link {
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
    text-align: center;
}

.login-alt-link a {
    color: #52b454;
    font-size: 0.66rem;
    font-weight: 600;
    text-decoration: none;
}

.login-alt-link a:hover {
    color: #3f9643;
}

.login-footer {
    margin-top: auto;
    padding: 0.9rem 1rem 0.8rem;
    border-top: 1px solid #e3e8ef;
    text-align: center;
    color: #747c86;
    font-size: 0.64rem;
    background: #fff;
}

@media (max-width: 575.98px) {
    .login-wrapper {
        padding: 0.85rem 1rem 0.8rem;
    }

    .login-page-stack {
        max-width: 100%;
        gap: 1rem;
    }

    .login-brand {
        transform: translateY(-6px);
    }

    .login-brand-badge {
        width: 78px;
        height: 78px;
    }

    .login-brand-badge img {
        width: 100%;
        height: 100%;
    }

    .login-brand h1 {
        font-size: 1.4rem;
    }

    .login-brand p {
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .login-form-box {
        max-width: 100%;
        border-radius: 12px;
        padding: 1.2rem 0.95rem 0.8rem;
    }

    .field-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .login-form-box > h2 {
        font-size: 1.05rem;
    }

    .login-form-box > p {
        margin-bottom: 1rem;
        font-size: 0.72rem;
    }

    .btn-login {
        margin-top: 1rem;
        min-height: 34px;
    }
}


/* ── Chat UI ──────────────────────────────── */
.chat-wrapper { display: flex; flex-direction: column; height: calc(100vh - var(--navbar-height) - 3.5rem); }

.chat-messages {
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.75rem;
    padding: 1.25rem;
}

.chat-bubble-wrap { display: flex; gap: 0.6rem; align-items: flex-end; }
.chat-bubble-wrap.own { flex-direction: row-reverse; }

.chat-bubble {
    max-width: 70%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.845rem;
    line-height: 1.5;
}

.chat-bubble.other { background-color: #fff; border: 1px solid var(--border-color); color: var(--text-dark); border-bottom-left-radius: 3px; }
.chat-bubble.own   { background-color: var(--primary); color: #fff; border-bottom-right-radius: 3px; }

.chat-time { font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; margin-bottom: 2px; }

.chat-input-bar {
    padding: 1rem 1.25rem;
    background: #fff;
    border-top: 1px solid var(--border-color);
    display: flex; gap: 0.75rem; align-items: center;
}

/* ── FullCalendar Overrides ───────────────── */
.fc-button-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.fc-button-primary:hover { background-color: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.fc-button-primary:not(:disabled).fc-button-active,
.fc-button-primary:not(:disabled):active { background-color: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }

/* Book Appointment page css */
.appointment-page {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 1320px;
    margin: 0 auto;
    min-height: calc(100vh - var(--navbar-height) - 58px);
}

.appointment-page__hero {
    margin: 0;
    border: none;
    border-radius: 16px;
    min-height: 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.appointment-page__hero-inner {
    width: 100%;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
}

.appointment-page__hero h1 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

.appointment-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(270px, 0.78fr);
    gap: 0.65rem;
    align-items: stretch;
}

.appointment-card {
    background: #fff;
    border: 1px solid #dde7e0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(28, 54, 38, 0.05);
    height: 100%;
}

.appointment-card__body--calendar {
    padding: 0.35rem 0.45rem 0.4rem;
    height: 100%;
}

.appointment-calendar {
    height: 100%;
    max-height: none;
}

.appointment-calendar .fc {
    --fc-border-color: #e1e8e3;
    --fc-today-bg-color: transparent;
    font-family: 'Poppins', sans-serif;
    height: 100%;
}

.appointment-calendar .fc-header-toolbar {
    margin-bottom: 0;
    padding: 0 0 0.35rem;
    border-bottom: 1px solid #e4ebe6;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

.appointment-calendar .fc-toolbar-chunk {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: auto;
}

.appointment-calendar .fc-toolbar-chunk:not(:empty) {
    gap: 0.55rem;
}

.appointment-calendar .fc-toolbar-chunk:empty {
    display: none;
}

.appointment-calendar .fc-toolbar-title {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #263238;
    letter-spacing: 0.05em;
    text-transform: none;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.appointment-calendar .fc-prev-button,
.appointment-calendar .fc-next-button {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 7px !important;
    background: #fff !important;
    border: 1px solid #d8e2db !important;
    color: #344054 !important;
    box-shadow: none !important;
    font-size: 0.8rem !important;
}

.appointment-calendar .fc-prev-button:hover,
.appointment-calendar .fc-next-button:hover {
    background: #f6faf7 !important;
    color: var(--primary) !important;
    border-color: #bfd2c4 !important;
}

.appointment-calendar .fc-button-group {
    gap: 0.3rem;
    align-items: center;
}

.appointment-calendar .fc-view-harness,
.appointment-calendar .fc-dayGridMonth-view,
.appointment-calendar .fc-scrollgrid {
    height: 100% !important;
}

.appointment-calendar .fc-button-group > .fc-button {
    border-radius: 8px !important;
}

.appointment-calendar .fc-scrollgrid {
    border: 1px solid #e1e8e3;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.appointment-calendar .fc-scroller,
.appointment-calendar .fc-scroller-liquid-absolute {
    overflow: hidden !important;
    scrollbar-width: none;
}

.appointment-calendar .fc-scroller::-webkit-scrollbar,
.appointment-calendar .fc-scroller-liquid-absolute::-webkit-scrollbar {
    display: none;
}

.appointment-calendar .fc-col-header-cell {
    background: #f8faf9;
    border-color: #e1e8e3;
    padding: 0.12rem 0;
}

.appointment-calendar .fc-col-header-cell-cushion {
    padding: 0.1rem 0;
    font-size: 0.58rem;
    font-weight: 700;
    color: #717784;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.appointment-calendar .fc-daygrid-day {
    background: #fff;
}

.appointment-calendar .fc-daygrid-day-frame {
    min-height: 34px;
    height: 34px;
    padding: 0;
}

.appointment-calendar .fc-daygrid-day-top {
    justify-content: flex-start;
    padding: 0.16rem 0.32rem 0;
}

.appointment-calendar .fc-daygrid-day-number {
    color: #1f2937;
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
}

.appointment-calendar .fc-day-other .fc-daygrid-day-number {
    opacity: 0.28;
}

.appointment-calendar .fc-daygrid-day.fc-day-today {
    background: transparent;
}

.appointment-calendar .fc-daygrid-day-events {
    margin: 0;
}

.appointment-calendar .fc-daygrid-day-bottom {
    display: none;
}

.calendar-day-content {
    height: 100%;
    min-height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0.24rem 0.06rem;
    position: relative;
}

@media (min-width: 992px) {
    .appointment-calendar .fc-daygrid-day-frame {
        min-height: 32px;
        height: 32px;
    }

    .calendar-day-content {
        min-height: 32px;
    }
}

.calendar-day-note {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    color: #677183;
    font-size: 0.61rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    max-width: 70px;
}

.calendar-day-note i {
    font-size: 0.7rem;
}

.calendar-day-note--closed {
    align-self: stretch;
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #8a1f1f;
    font-size: 0.5rem;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-calendar .fc-day-disabled {
    background: #f6f8f7;
    cursor: default;
    pointer-events: none;
}

.appointment-calendar .fc-day-disabled,
.appointment-calendar .fc-day-disabled:hover,
.appointment-calendar .fc-day-disabled.is-selected-day,
.appointment-calendar .fc-daygrid-day.fc-day-today.fc-day-disabled,
.appointment-calendar .fc-daygrid-day.fc-day-today.fc-day-disabled:hover {
    background: #f6f8f7 !important;
}

.appointment-calendar .fc-day-past {
    background: #f6f8f7;
    cursor: default;
}

.appointment-calendar .fc-day-past .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #fafcfb 0%, #f3f6f4 100%);
}

.appointment-calendar .fc-day-disabled .fc-daygrid-day-number,
.appointment-calendar .fc-day-disabled .calendar-day-note,
.appointment-calendar .fc-day-past .fc-daygrid-day-number,
.appointment-calendar .fc-day-past .calendar-day-note {
    color: #a3adb7;
    opacity: 0.45;
}

.appointment-calendar .fc-day-disabled .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #fafcfb 0%, #f3f6f4 100%);
}

.appointment-calendar .fc-day-disabled .fc-daygrid-day-frame,
.appointment-calendar .fc-day-disabled.is-selected-day .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #fafcfb 0%, #f3f6f4 100%) !important;
}

.appointment-calendar .fc-day-past .fc-daygrid-day-top,
.appointment-calendar .fc-day-past .fc-daygrid-day-events,
.appointment-calendar .fc-day-past .calendar-day-content {
    pointer-events: none;
}

.appointment-calendar .is-closed-day {
    background: #fafbfa;
}

.appointment-calendar .is-selected-day {
    background: var(--primary) !important;
}

.appointment-calendar .is-selected-day .fc-daygrid-day-number,
.appointment-calendar .is-selected-day .calendar-day-note,
.appointment-calendar .is-selected-day .calendar-day-note i {
    color: #fff;
}

.appointment-calendar .fc-day-disabled .fc-daygrid-day-number,
.appointment-calendar .fc-day-disabled .calendar-day-note,
.appointment-calendar .fc-day-disabled .calendar-day-note i,
.appointment-calendar .fc-day-disabled.is-selected-day .fc-daygrid-day-number,
.appointment-calendar .fc-day-disabled.is-selected-day .calendar-day-note,
.appointment-calendar .fc-day-disabled.is-selected-day .calendar-day-note i {
    color: #a3adb7 !important;
    opacity: 0.45;
}

.appointment-calendar .is-clickable-day {
    cursor: pointer;
}

.appointment-calendar .is-clickable-day:hover {
    background: #f7fbf8;
}

.appointment-calendar .fc-day-disabled:hover,
.appointment-calendar .fc-day-disabled .fc-daygrid-day-frame:hover,
.appointment-calendar .fc-day-disabled .calendar-day-content:hover {
    background: #f6f8f7 !important;
    cursor: default;
}

.appointment-calendar .fc-day-past:hover {
    background: #f6f8f7;
}

.appointment-sidebar__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.appointment-date-block {
    padding: 0.7rem 0.85rem 0.6rem;
    border-bottom: 1px solid #e5ebe6;
    margin-bottom: 0.55rem;
}

.appointment-date-block h2 {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 700;
    color: #263238;
}

.appointment-date-block p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #687281;
    font-size: 0.68rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0.85rem 0.65rem;
}

.time-slot-button {
    border: 1px solid #dbe4de;
    background: #fff;
    border-radius: 9px;
    padding: 0.48rem 0.4rem 0.42rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
    color: #566171;
    transition: all 0.18s ease;
}

.time-slot-button:hover {
    border-color: #8bc79d;
    box-shadow: 0 6px 14px rgba(68, 123, 83, 0.08);
}

.time-slot-button:disabled,
.time-slot-button.is-disabled {
    background: #f4f6f5;
    border-color: #d8dfdb;
    color: #9aa5b1;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
}

.time-slot-button:disabled:hover,
.time-slot-button.is-disabled:hover {
    border-color: #d8dfdb;
    box-shadow: none;
    transform: none;
}

.time-slot-button.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.time-slot-button.is-active:disabled,
.time-slot-button.is-active.is-disabled {
    background: #f4f6f5;
    border-color: #d8dfdb;
    color: #9aa5b1;
}

.time-slot-button__time {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
}

.time-slot-button__label {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0 0.85rem 0.8rem;
    flex: 1;
}

.booking-form__heading {
    font-size: 0.84rem;
    font-weight: 700;
    color: #5c6675;
    letter-spacing: 0.03em;
}

.booking-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.6rem;
}

.booking-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    position: relative;
}

.booking-form__field--full {
    grid-column: 1 / -1;
}

.booking-form__field--block {
    max-width: 132px;
    min-width: 120px;
}

.booking-form__field--others {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.booking-form__field--others[hidden] {
    display: flex !important;
}

.booking-form__field--others.is-visible {
    max-height: 110px;
    opacity: 1;
    transform: translateY(0);
}

.booking-form select.form-control {
    background-color: #fff;
    cursor: pointer;
}

.appointment-flow .booking-form__field--others {
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.appointment-flow .booking-form__field--others.is-visible {
    margin-top: 0.7rem;
}

.booking-form__field label {
    color: #5f6978;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.booking-form__feedback {
    min-height: 0.85rem;
    color: #c95858;
    font-size: 0.62rem;
    line-height: 1.2;
}

.booking-form__alert {
    border-radius: 10px;
    padding: 0.72rem 0.85rem;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 0.15rem;
    border: 1px solid transparent;
}

.booking-form__alert--error {
    background: #fff4f4;
    border-color: #efc7c7;
    color: #b24747;
}

.booking-form__alert--success {
    background: #eef8f1;
    border-color: #cfe3d5;
    color: #2f7542;
}

.booking-form .form-control {
    min-height: 31px;
    padding: 0.36rem 0.65rem;
    border: 1px solid #d7e0da;
    border-radius: 8px;
    background: #fff;
    color: #25313b;
    font-size: 0.78rem;
    box-shadow: none;
}

.booking-form .form-control::placeholder {
    color: #8a95a3;
    opacity: 1;
}

.booking-form select.form-control:required:invalid {
    color: #8a95a3;
}

.booking-form select.form-control option {
    color: #25313b;
}

.booking-form .form-control.is-invalid {
    border-color: #d96b6b;
    box-shadow: 0 0 0 0.12rem rgba(217, 107, 107, 0.14);
}

.autocomplete-field {
    position: relative;
}

.autocomplete-field::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 0.48rem;
    height: 0.48rem;
    border-right: 1.8px solid #6f7b89;
    border-bottom: 1.8px solid #6f7b89;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.booking-form .autocomplete-field__input {
    padding-right: 2rem;
}

.autocomplete-field:focus-within::after {
    border-color: var(--primary);
}

.autocomplete-field__menu {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 180px;
    padding: 0.25rem 0;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d7e0da;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(28, 54, 38, 0.12);
}

.autocomplete-field__option,
.autocomplete-field__empty {
    width: 100%;
    padding: 0.42rem 0.65rem;
    border: none;
    background: transparent;
    color: #25313b;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: left;
}

.autocomplete-field__option {
    cursor: pointer;
}

.autocomplete-field__option:hover,
.autocomplete-field__option.is-highlighted {
    background: var(--primary-light);
    color: var(--primary);
}

.autocomplete-field__empty {
    color: #8a95a3;
}

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

.booking-submit-btn {
    width: 100%;
    min-height: 34px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(68, 123, 83, 0.18);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.booking-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.student-wrapper:has(.appointment-page) .page-content {
    padding-top: 0.9rem;
    padding-bottom: 0.5rem;
}

.student-wrapper:has(.appointment-page) .student-page-footer {
    padding: 8px 20px;
    font-size: 0.72rem;
    margin-top: 0;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 767.98px) {
    .login-panel { display: none; }
    .login-form-area { padding: 2rem 1.5rem; }
    .page-content { padding: 1.25rem 1rem; }
    .welcome-banner { padding: 1.35rem 1.25rem; }
    .welcome-banner-icon { display: none; }

    .appointment-page__hero {
        min-height: 72px;
    }

    .appointment-page__hero-inner {
        padding: 0 1.25rem;
    }

    .appointment-page__hero h1 {
        font-size: 1rem;
    }

    .appointment-page {
        min-height: auto;
        gap: 1rem;
    }

    .appointment-layout {
        min-height: auto;
        gap: 1rem;
    }

    .appointment-date-block h2 {
        font-size: 1.15rem;
    }

    .time-slots,
    .booking-form__grid {
        grid-template-columns: 1fr;
    }

    .booking-form__field--block {
        max-width: 100%;
        min-width: 0;
    }

    .time-slots,
    .booking-form {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .appointment-card,
    .appointment-card__body--calendar,
    .appointment-calendar,
    .appointment-sidebar__body {
        height: auto;
    }

    .appointment-calendar .fc,
    .appointment-calendar .fc-view-harness,
    .appointment-calendar .fc-dayGridMonth-view,
    .appointment-calendar .fc-scrollgrid {
        height: auto !important;
    }

    .appointment-calendar .fc-header-toolbar {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .appointment-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* My Appointments css */
.appointments-page {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.appointments-hero {
    min-height: 190px;
    border-radius: 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 16px 40px rgba(68, 123, 83, 0.16);
}

.appointments-hero__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.appointments-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.appointments-hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.85rem, 2.8vw, 2.45rem);
    font-weight: 700;
    line-height: 1.08;
}

.appointments-hero p {
    margin: 0;
    max-width: 520px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.appointments-hero__badge {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.8rem;
    align-self: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.appointments-shell {
    border-radius: 24px;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(68, 123, 83, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.98));
    box-shadow: 0 18px 48px rgba(20, 39, 27, 0.08);
}

.appointments-shell__top {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.appointments-shell__label {
    margin: 0 0 0.32rem;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointments-shell__top h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 700;
    color: #183122;
}

.appointments-shell__subtext {
    margin: 0.35rem 0 0;
    color: #5f6f65;
    font-size: 0.9rem;
}

.appointments-preview {
    min-width: 255px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f5faf7;
    border: 1px solid #dbe9df;
}

.appointments-preview__label {
    display: block;
    margin-bottom: 0.65rem;
    color: #4c6352;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointments-preview__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.appointments-preview__button {
    border: 1px solid #cfe0d4;
    background: #fff;
    color: #365643;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.62rem 0.8rem;
    transition: all 0.18s ease;
}

.appointments-preview__button:hover {
    border-color: #8db29a;
    background: #f9fcfa;
}

.appointments-preview__button.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(68, 123, 83, 0.22);
}

.appointments-status-strip {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 20px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eff8f2 0%, #f9fcfa 100%);
    border: 1px solid #d9e9de;
}

.appointments-status-strip__group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.appointments-status-strip__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px #dfeae2;
    flex-shrink: 0;
}

.appointments-status-strip__eyebrow {
    display: block;
    margin-bottom: 0.18rem;
    color: #5b6d61;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointments-status-strip__title {
    margin: 0;
    color: #1e3428;
    font-size: 1rem;
    font-weight: 700;
}

.appointments-status-strip__meta {
    margin: 0.15rem 0 0;
    color: #67796d;
    font-size: 0.84rem;
}

.appointments-content {
    min-height: 0;
}

.appointments-content:empty {
    display: none;
}

.appointment-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.appointment-empty-state {
    min-height: 0;
    border-style: solid;
    padding: 1rem 1.35rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
}

.appointment-empty-state__icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #edf8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f7b44;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.appointment-empty-state__copy {
    flex: 1;
    max-width: none;
    min-width: 0;
}

.appointment-empty-state__copy h3 {
    margin: 0 0 0.18rem;
    font-size: 1rem;
    font-weight: 700;
    color: #17281f;
}

.appointment-empty-state__copy p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #5f6f65;
}

.appointment-empty-state__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.appointment-primary-action,
.appointment-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    min-height: 38px;
    padding: 0.58rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(31, 115, 58, 0.14);
}

.appointment-empty-state__hint {
    color: #748579;
    font-size: 0.82rem;
}

.appointment-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.appointment-details__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.appointment-details__header h3 {
    margin: 0 0 0.35rem;
    color: #183122;
    font-size: clamp(1.25rem, 1.8vw, 1.8rem);
    font-weight: 700;
}

.appointment-details__header p {
    margin: 0;
    color: #617266;
    font-size: 0.9rem;
}

.appointment-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.62rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.appointment-status-pill--scheduled {
    background: #edf8f0;
    color: #2f7b44;
    border: 1px solid #b9d7c1;
}

.appointment-status-pill__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
}

.appointment-details__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.95fr);
    gap: 1rem;
}

.appointment-info-card {
    background: #fff;
    border: 1px solid #dbe8de;
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: 0 12px 30px rgba(22, 44, 29, 0.06);
}

.appointment-info-card--schedule {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
}

.appointment-info-card__header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.appointment-info-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--primary), var(--primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.appointment-info-card__icon--soft {
    background: linear-gradient(145deg, #edf8f0, #ffffff);
    color: var(--primary);
    border: 1px solid #dce9df;
}

.appointment-info-card__header h4 {
    margin: 0 0 0.18rem;
    color: #183122;
    font-size: 1rem;
    font-weight: 700;
}

.appointment-info-card__header p {
    margin: 0;
    color: #66776c;
    font-size: 0.84rem;
}

.appointment-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.appointment-data-field {
    min-width: 0;
}

.appointment-data-field--wide {
    grid-column: 1 / -1;
}

.appointment-data-field__label {
    display: block;
    margin-bottom: 0.45rem;
    color: #5a6a60;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointment-data-field__value {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #d9e5dc;
    background: #fbfdfb;
    padding: 0.95rem 1rem;
    color: #203427;
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
}

.appointment-data-field__value--multiline {
    align-items: flex-start;
}

.appointment-schedule-card {
    display: grid;
    gap: 0.85rem;
}

.appointment-schedule-card__item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid #d7e5db;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.appointment-schedule-card__label {
    color: #597063;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointment-schedule-card__item strong {
    color: #183122;
    font-size: 1rem;
    font-weight: 700;
}

.appointment-schedule-card__item small {
    color: #6d7c72;
    font-size: 0.8rem;
}

.appointment-details__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.15rem;
}

.appointment-cancel-button {
    min-width: 190px;
    padding: 0.82rem 1.15rem;
    border-radius: 14px;
    border: 1px solid #f0b0af;
    background: #fff;
    color: #cf4c49;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.appointment-cancel-button:hover {
    background: #fff6f6;
    border-color: #e68f8d;
}

.appointment-cancel-form {
    margin: 0;
}

.student-wrapper:has(.appointments-page) .page-content {
    padding-top: 1rem;
    padding-bottom: 1.2rem;
}

@media (max-width: 767.98px) {
    .appointments-page {
        gap: 1rem;
    }

    .appointments-hero {
        min-height: auto;
        padding: 1.45rem 1.2rem;
        border-radius: 20px;
    }

    .appointments-hero__badge {
        display: none;
    }

    .appointments-shell {
        padding: 1rem;
        border-radius: 20px;
    }

    .appointments-shell__top,
    .appointments-status-strip,
    .appointment-details__header {
        flex-direction: column;
        align-items: stretch;
    }

    .appointments-preview {
        min-width: 0;
    }

    .appointments-preview__actions,
    .appointment-data-grid {
        grid-template-columns: 1fr;
    }

    .appointment-empty-state {
        min-height: 0;
        padding: 1rem;
        border-radius: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .appointment-empty-state__icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1.15rem;
    }

    .appointment-primary-action,
    .appointment-secondary-action,
    .appointment-cancel-button {
        width: 100%;
        min-width: 0;
    }

    .appointment-details__actions {
        flex-direction: column;
    }
}

@media (max-width: 991.98px) {
    .appointments-shell__top {
        flex-direction: column;
    }

    .appointment-details__grid {
        grid-template-columns: 1fr;
    }
}

/* My Appointments card design */
.student-wrapper:has(.appointments-page) {
    background: #f6fbf8;
}

.student-wrapper:has(.appointments-page) .page-content {
    padding: 1.15rem clamp(1.25rem, 4vw, 4.4rem) 0.35rem;
}

.appointments-page {
    max-width: 1440px;
    gap: 1.35rem;
}

.appointments-hero {
    min-height: 170px;
    border-radius: 12px;
    padding: 1.75rem 2.4rem;
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(20, 58, 34, 0.08);
}

.appointments-hero::before {
    content: '';
    position: absolute;
    right: 104px;
    bottom: -78px;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.appointments-hero::after {
    right: 10px;
    top: -72px;
    width: 194px;
    height: 194px;
    background: rgba(255, 255, 255, 0.08);
}

.appointments-hero__content {
    align-self: center;
}

.appointments-hero__eyebrow {
    padding: 0.34rem 0.82rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    margin-bottom: 0.85rem;
}

.appointments-hero h1 {
    margin-bottom: 0.38rem;
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 700;
}

.appointments-hero p {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
}

.appointments-hero__badge {
    width: 108px;
    height: 108px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    font-size: 3.1rem;
}

.appointments-list-section {
    padding: 0 1.25rem;
}

.appointments-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.appointments-list-header h2 {
    margin: 0;
    color: #183122;
    font-size: 1.25rem;
    font-weight: 700;
}

.appointments-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.74rem 1.25rem;
    border-radius: 8px;
    background: #1f733a;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(31, 115, 58, 0.16);
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.appointments-book-button:hover {
    background: #185c2e;
    color: #fff;
    transform: translateY(-1px);
}

.appointments-card-stack {
    display: grid;
    gap: 0.72rem;
}

.appointment-card-item {
    border: 1px solid #e2ede6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(22, 44, 29, 0.08);
    padding: 1rem 1.35rem 1.05rem;
}

.appointment-card-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.78rem;
    border-bottom: 1px solid #edf2ef;
}

.appointment-card-item__title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.appointment-card-item__avatar,
.appointment-detail-block__icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #edf8f0;
    color: #2f7b44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.appointment-card-item__title-group h3 {
    margin: 0 0 0.13rem;
    color: #17281f;
    font-size: 1rem;
    font-weight: 700;
}

.appointment-card-item__title-group p {
    margin: 0;
    color: #5f6f65;
    font-size: 0.84rem;
}

.appointment-status-pill {
    padding: 0.46rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.appointment-status-pill--scheduled {
    border: 0;
    background: #edf8f0;
    color: #2b8a42;
}

.appointment-status-pill__dot {
    width: 7px;
    height: 7px;
}

.appointment-card-item__details {
    display: grid;
    grid-template-columns: minmax(215px, 1.25fr) minmax(190px, 0.9fr) minmax(260px, 1.45fr) minmax(210px, 0.95fr);
    align-items: stretch;
    gap: 0;
    padding: 1.05rem 0 0.9rem;
}

.appointment-detail-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding-right: 1.25rem;
}

.appointment-detail-block + .appointment-detail-block,
.appointment-card-item__actions {
    border-left: 1px solid #edf2ef;
    padding-left: 1.25rem;
}

.appointment-detail-block__label {
    display: block;
    margin-bottom: 0.25rem;
    color: #5c6a62;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.appointment-detail-block strong {
    display: block;
    color: #17281f;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.appointment-detail-block small {
    display: block;
    margin-top: 0.25rem;
    color: #6c7a71;
    font-size: 0.78rem;
    line-height: 1.2;
}

.appointment-card-item__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.appointment-cancel-form {
    width: 100%;
    margin: 0;
}

.appointment-cancel-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.76rem 1rem;
    border-radius: 10px;
    border: 1px solid #ff8f91;
    background: #fff;
    color: #ff4d55;
    font-size: 0.86rem;
    font-weight: 700;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.appointment-cancel-button:hover {
    background: #fff7f7;
    border-color: #ff7074;
    transform: translateY(-1px);
}

.appointment-student-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
    border-top: 1px solid #edf2ef;
    padding-top: 0.78rem;
}

.appointment-student-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1.35rem;
    color: #17281f;
    font-size: 0.84rem;
}

.appointment-student-field + .appointment-student-field {
    border-left: 1px solid #edf2ef;
}

.appointment-student-field--name {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    padding-left: 0;
}

.appointment-student-field--name i {
    color: #2f7b44;
    font-size: 1.24rem;
    flex-shrink: 0;
}

.appointment-student-field strong {
    color: #17281f;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.appointment-student-field span {
    color: #6c7a71;
    font-size: 0.77rem;
    line-height: 1.35;
}

.appointment-student-field--name span {
    color: #273b30;
    font-size: 0.88rem;
}

.recent-appointments-section {
    padding: 0 1.25rem 1rem;
}

.recent-appointments-card {
    border: 1px solid #e1ebe5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(22, 44, 29, 0.05);
    padding: 1rem 1.25rem 1.2rem;
}

.recent-appointments-card__header {
    margin-bottom: 0.95rem;
}

.recent-appointments-card__header h2 {
    margin: 0 0 0.22rem;
    color: #183122;
    font-size: 1.08rem;
    font-weight: 700;
}

.recent-appointments-card__header p {
    margin: 0;
    color: #66776c;
    font-size: 0.78rem;
    line-height: 1.35;
}

.recent-appointments-list {
    display: grid;
    gap: 0.62rem;
}

.recent-appointment-row {
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(290px, 1.2fr) minmax(260px, 1.35fr) minmax(120px, auto);
    align-items: center;
    gap: 1.35rem;
    border: 1px solid #e1ebe5;
    border-radius: 9px;
    background: #fff;
    padding: 0.85rem 1.05rem;
}

.recent-appointment-row__date {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.recent-appointment-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #e8f3ec;
    color: #2f7b44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.08rem;
}

.recent-appointment-row__date strong {
    display: block;
    margin-bottom: 0.18rem;
    color: #17281f;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.recent-appointment-row__date span {
    display: block;
    color: #53645a;
    font-size: 0.76rem;
    line-height: 1.25;
}

.recent-appointment-row__purpose {
    min-width: 0;
    border-left: 1px solid #e8f0eb;
    padding-left: 1.25rem;
}

.recent-appointment-row__purpose span {
    display: block;
    margin-bottom: 0.22rem;
    color: #66776c;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
}

.recent-appointment-row__purpose strong {
    display: block;
    color: #17281f;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.recent-appointment-row__status {
    display: flex;
    justify-content: flex-end;
}

.recent-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-width: 88px;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.recent-status-pill--completed {
    background: #e8f3ff;
    color: #0d6fd1;
}

.recent-status-pill--cancelled {
    background: #fff0f1;
    color: #e1555d;
}

.recent-status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.recent-appointment-row--empty {
    grid-template-columns: 1fr;
}

@media (max-width: 1199.98px) {
    .appointment-card-item__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .appointment-detail-block--purpose,
    .appointment-card-item__actions {
        border-left: 0;
        padding-left: 0;
    }

    .appointment-card-item__actions {
        justify-content: stretch;
    }
}

@media (max-width: 767.98px) {
    .student-wrapper:has(.appointments-page) .page-content {
        padding: 1rem;
    }

    .appointments-hero {
        padding: 1.45rem 1.25rem;
        border-radius: 12px;
    }

    .appointments-hero__badge {
        display: none;
    }

    .appointments-list-section {
        padding: 0;
    }

    .recent-appointments-section {
        padding: 0 0 1rem;
    }

    .appointments-list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .appointments-book-button {
        width: 100%;
    }

    .appointment-card-item {
        padding: 1rem;
    }

    .appointment-card-item__header {
        flex-direction: column;
    }

    .appointment-card-item__details,
    .appointment-student-row {
        grid-template-columns: 1fr;
    }

    .appointment-detail-block,
    .appointment-detail-block + .appointment-detail-block,
    .appointment-card-item__actions,
    .appointment-student-field,
    .appointment-student-field + .appointment-student-field {
        border-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .appointment-card-item__details {
        gap: 1rem;
    }

    .appointment-student-row {
        gap: 0.8rem;
    }

    .appointment-student-field {
        padding-top: 0;
        padding-bottom: 0;
    }

    .recent-appointments-card {
        overflow-x: auto;
        padding: 1rem;
    }

    .recent-appointments-card__header,
    .recent-appointments-list {
        min-width: 690px;
    }

    .recent-appointment-row {
        grid-template-columns: 290px 260px 120px;
        gap: 1.1rem;
    }
}

/* Book Appointment visual refresh */
.student-wrapper:has(.appointment-page) {
    background:
        radial-gradient(circle at 12% 8%, rgba(68, 123, 83, 0.08), transparent 28%),
        linear-gradient(180deg, #f6fbf8 0%, #f3faf6 46%, #ffffff 100%);
}

.student-wrapper:has(.appointment-page) .page-content {
    padding: 1.55rem clamp(1.25rem, 4vw, 4.4rem) 1.1rem;
}

.appointment-page {
    max-width: 1440px;
    gap: 1.35rem;
}

.appointment-page__hero {
    min-height: 96px;
    border-radius: 16px;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 32px rgba(44, 88, 56, 0.18);
}

.appointment-page__hero::before {
    content: '\F1F6';
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    margin-left: 2.1rem;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: "bootstrap-icons";
    font-size: 1.65rem;
    line-height: 1;
}

.appointment-page__hero::after {
    right: 2.2rem;
    top: 50%;
    width: 118px;
    height: 118px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transform: translateY(-42%) rotate(2deg);
}

.appointment-page__hero-inner {
    padding: 0 2.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.38rem;
}

.appointment-page__hero h1 {
    font-size: clamp(1.25rem, 1.85vw, 1.55rem);
    letter-spacing: 0.01em;
}

.appointment-page__hero h1::after {
    content: 'Select your preferred date and time to book an appointment.';
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    font-weight: 400;
    letter-spacing: 0;
}

.appointment-layout {
    grid-template-columns: minmax(640px, 1fr) minmax(360px, 430px);
    gap: 1.25rem;
}

.appointment-card {
    border: 1px solid rgba(199, 217, 205, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 34px rgba(25, 48, 32, 0.08);
    overflow: visible;
}

.appointment-card__body--calendar {
    padding: 1.15rem 1.2rem 1.1rem;
}

.appointment-calendar .fc-header-toolbar {
    min-height: 44px;
    padding: 0 0 0.95rem;
    border-bottom: none;
}

.appointment-calendar .fc-toolbar-title {
    font-size: 1.16rem;
    font-weight: 700;
    color: #132d20;
    letter-spacing: 0;
}

.appointment-calendar .fc-prev-button,
.appointment-calendar .fc-next-button {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
    border-color: #d7e5dc !important;
    background: #ffffff !important;
    color: #263d30 !important;
    box-shadow: 0 5px 14px rgba(27, 55, 36, 0.06) !important;
}

.appointment-calendar .fc-prev-button:hover,
.appointment-calendar .fc-next-button:hover {
    background: #eff8f2 !important;
    border-color: #b8d4c0 !important;
    color: var(--primary) !important;
}

.appointment-calendar .fc-scrollgrid {
    border: 1px solid #dce7e0;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.appointment-calendar .fc-col-header-cell {
    background: #fbfdfc;
    border-color: #dfe9e3;
    padding: 0.56rem 0;
}

.appointment-calendar .fc-col-header-cell-cushion {
    color: #0d5f35;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.appointment-calendar .fc-daygrid-day {
    border-color: #e5ece8;
    background: #fff;
}

.appointment-calendar .fc-daygrid-day-frame {
    min-height: 82px;
    height: 82px;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.appointment-calendar .fc-daygrid-day-top {
    justify-content: flex-end;
    padding: 1rem 1rem 0;
}

.appointment-calendar .fc-daygrid-day-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #172638;
    font-size: 0.9rem;
    font-weight: 600;
}

.calendar-day-content {
    min-height: 82px;
    padding: 0 0.85rem 0.7rem;
}

.appointment-calendar .fc-day-other .fc-daygrid-day-number {
    color: #bdc5ca;
    opacity: 0.72;
}

.appointment-calendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: #dff1e4;
    color: var(--primary);
    font-weight: 700;
}

.appointment-calendar .is-clickable-day:hover {
    background: #f8fcfa;
    box-shadow: inset 0 0 0 1px rgba(68, 123, 83, 0.1);
}

.appointment-calendar .is-selected-day {
    background: #f4fbf6 !important;
}

.appointment-calendar .is-selected-day .fc-daygrid-day-number {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(68, 123, 83, 0.24);
}

.appointment-calendar .fc-day-past,
.appointment-calendar .fc-day-disabled,
.appointment-calendar .fc-day-disabled:hover,
.appointment-calendar .fc-day-disabled .fc-daygrid-day-frame:hover,
.appointment-calendar .fc-day-disabled .calendar-day-content:hover,
.appointment-calendar .fc-daygrid-day.fc-day-today.fc-day-disabled,
.appointment-calendar .fc-daygrid-day.fc-day-today.fc-day-disabled:hover {
    background: #f7faf8 !important;
    cursor: default;
}

.appointment-calendar .fc-day-past .fc-daygrid-day-frame,
.appointment-calendar .fc-day-disabled .fc-daygrid-day-frame,
.appointment-calendar .fc-day-disabled .fc-daygrid-day-frame,
.appointment-calendar .fc-day-disabled.is-selected-day .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #fafcfb 0%, #f5f8f6 100%) !important;
}

.appointment-calendar .fc-day-disabled .fc-daygrid-day-number,
.appointment-calendar .fc-day-disabled .calendar-day-note,
.appointment-calendar .fc-day-past .fc-daygrid-day-number,
.appointment-calendar .fc-day-past .calendar-day-note,
.appointment-calendar .fc-day-disabled .calendar-day-note i {
    color: #c5ccd0 !important;
    opacity: 0.82;
}

.appointment-sidebar .appointment-card__body {
    padding: 0;
}

.appointment-sidebar__body {
    padding: 1.25rem 1.25rem 1.05rem;
}

.appointment-date-block {
    padding: 0 0 1.05rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #edf2ef;
}

.appointment-date-block h2 {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    margin-bottom: 0.2rem;
    color: #1f6f39;
    font-size: 1.14rem;
}

.appointment-date-block h2::before {
    content: '\F293';
    color: var(--primary);
    font-family: "bootstrap-icons";
    font-size: 1rem;
    font-weight: 400;
}

.appointment-date-block p {
    padding-left: 1.68rem;
    color: #65756b;
    font-size: 0.82rem;
}

.time-slots {
    gap: 0.75rem;
    margin: 0 0 1.05rem;
}

.time-slot-button {
    min-height: 58px;
    border-color: #dbe5df;
    border-radius: 10px;
    padding: 0.76rem 0.55rem;
    color: #253242;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.time-slot-button:hover {
    border-color: #b9d5c2;
    box-shadow: 0 8px 18px rgba(68, 123, 83, 0.1);
}

.time-slot-button.is-active {
    background: linear-gradient(180deg, #438654 0%, #367547 100%);
    border-color: #367547;
    box-shadow: 0 10px 18px rgba(68, 123, 83, 0.18);
}

.time-slot-button__time {
    font-size: 0.82rem;
}

.time-slot-button__label {
    font-size: 0.68rem;
}

.booking-form {
    gap: 0.72rem;
    padding: 0;
}

.booking-form__heading {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    padding-top: 0.1rem;
    color: #1f6f39;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
}

.booking-form__heading::before {
    content: '\F4DA';
    color: var(--primary);
    font-family: "bootstrap-icons";
    font-size: 1rem;
    font-weight: 400;
}

.booking-form__grid {
    gap: 0.78rem 0.85rem;
}

.booking-form__field {
    gap: 0.34rem;
}

.booking-form__field--block {
    grid-column: 1 / -1;
    max-width: none;
    min-width: 0;
}

.booking-form__field label {
    color: #203024;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.booking-form .form-control {
    min-height: 42px;
    padding: 0.58rem 0.82rem;
    border-color: #d8e1dc;
    border-radius: 10px;
    color: #213126;
    font-size: 0.88rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.booking-form .form-control:hover {
    border-color: #bfcec5;
}

.booking-form .form-control:focus {
    border-color: #8fbea0;
    box-shadow: 0 0 0 0.18rem rgba(68, 123, 83, 0.14);
}

.booking-form .form-control::placeholder {
    color: #7e8d99;
}

.booking-form .form-control.is-invalid {
    border-color: #ef5656;
    box-shadow: 0 0 0 0.14rem rgba(239, 86, 86, 0.12);
}

.booking-form__feedback {
    min-height: 0.88rem;
    color: #f04444;
    font-size: 0.72rem;
}

.autocomplete-field::after {
    right: 0.95rem;
    width: 0.44rem;
    height: 0.44rem;
    border-color: #6e7b86;
}

.booking-form .autocomplete-field__input {
    padding-right: 2.35rem;
}

.autocomplete-field__menu {
    top: calc(100% + 0.42rem);
    border-color: #d8e6dd;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(21, 48, 30, 0.14);
}

.autocomplete-field__option,
.autocomplete-field__empty {
    padding: 0.64rem 0.84rem;
    font-size: 0.86rem;
}

.autocomplete-field__option:hover,
.autocomplete-field__option.is-highlighted {
    background: #edf8f1;
    color: #2d7041;
}

.booking-submit-btn {
    min-height: 46px;
    margin-top: 0.12rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #438654 0%, #367547 100%);
    font-size: 0.96rem;
    box-shadow: 0 10px 20px rgba(68, 123, 83, 0.2);
}

.booking-submit-btn:hover {
    background: linear-gradient(180deg, #3c7a4c 0%, #2f653d 100%);
    box-shadow: 0 12px 24px rgba(68, 123, 83, 0.24);
}

.booking-form__alert {
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    font-size: 0.82rem;
}

@media (max-width: 991.98px) {
    .appointment-layout {
        grid-template-columns: 1fr;
    }

    .appointment-calendar .fc-daygrid-day-frame,
    .calendar-day-content {
        min-height: 68px;
        height: 68px;
    }
}

@media (max-width: 767.98px) {
    .student-wrapper:has(.appointment-page) .page-content {
        padding: 1rem;
    }

    .appointment-page__hero {
        min-height: 92px;
    }

    .appointment-page__hero::before {
        width: 44px;
        height: 44px;
        margin-left: 1rem;
        font-size: 1.35rem;
    }

    .appointment-page__hero-inner {
        padding: 0 1rem;
    }

    .appointment-page__hero h1::after {
        font-size: 0.78rem;
        line-height: 1.35;
        white-space: normal;
    }

    .appointment-card__body--calendar,
    .appointment-sidebar__body {
        padding: 1rem;
    }

    .appointment-calendar .fc-daygrid-day-frame,
    .calendar-day-content {
        min-height: 54px;
        height: 54px;
    }

    .appointment-calendar .fc-daygrid-day-top {
        padding: 0.48rem 0.48rem 0;
    }

    .appointment-calendar .fc-daygrid-day-number {
        width: 24px;
        height: 24px;
        font-size: 0.78rem;
    }
}

/* Book Appointment compact one-screen alignment */
.student-wrapper:has(.appointment-page) {
    min-height: calc(100vh - var(--navbar-height));
}

.student-wrapper:has(.appointment-page) .page-content {
    padding: 1rem clamp(1.35rem, 4vw, 4.85rem) 0.55rem;
    overflow: visible;
}

.appointment-page {
    min-height: 0;
    gap: 0.9rem;
}

.appointment-page__hero {
    min-height: 76px;
    max-height: 76px;
    border-radius: 14px;
}

.appointment-page__hero::before {
    width: 40px;
    height: 40px;
    margin-left: 1.55rem;
    border-radius: 11px;
    font-size: 1.35rem;
}

.appointment-page__hero::after {
    width: 86px;
    height: 86px;
    right: 2rem;
}

.appointment-page__hero-inner {
    padding: 0 1.55rem;
    gap: 0.2rem;
}

.appointment-page__hero h1 {
    font-size: 1.3rem;
}

.appointment-page__hero h1::after {
    margin-top: 0.34rem;
    font-size: 0.84rem;
}

.appointment-layout {
    height: calc(100vh - var(--navbar-height) - 156px);
    min-height: 560px;
    max-height: 640px;
    gap: 1rem;
    align-items: stretch;
}

.appointment-calendar-panel,
.appointment-sidebar {
    min-height: 0;
}

.appointment-card {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(25, 48, 32, 0.07);
}

.appointment-card__body--calendar {
    padding: 0.9rem 1rem;
}

.appointment-calendar .fc-header-toolbar {
    min-height: 36px;
    padding: 0 0 0.6rem;
}

.appointment-calendar .fc-toolbar-chunk:not(:empty) {
    gap: 0.85rem;
}

.appointment-calendar .fc-toolbar-title {
    font-size: 1.06rem;
}

.appointment-calendar .fc-prev-button,
.appointment-calendar .fc-next-button {
    width: 32px;
    height: 32px;
    border-radius: 9px !important;
}

.appointment-calendar .fc-col-header-cell {
    padding: 0.38rem 0;
}

.appointment-calendar .fc-col-header-cell-cushion {
    font-size: 0.72rem;
}

.appointment-calendar .fc-daygrid-day-frame {
    min-height: 66px;
    height: 66px;
}

.appointment-calendar .fc-daygrid-day-top {
    padding: 0.58rem 0.72rem 0;
}

.appointment-calendar .fc-daygrid-day-number {
    width: 25px;
    height: 25px;
    font-size: 0.82rem;
}

.calendar-day-content {
    min-height: 66px;
    padding: 0 0.62rem 0.45rem;
}

.appointment-sidebar__body {
    padding: 0.9rem 0.9rem 0.85rem;
}

.appointment-date-block {
    padding: 0 0 0.7rem;
    margin-bottom: 0.75rem;
}

.appointment-date-block h2 {
    font-size: 1.06rem;
    margin-bottom: 0.1rem;
}

.appointment-date-block p {
    font-size: 0.76rem;
}

.time-slots {
    gap: 0.6rem;
    margin: 0 0 0.8rem;
}

.time-slot-button {
    min-height: 48px;
    padding: 0.55rem 0.45rem;
    border-radius: 9px;
}

.time-slot-button__time {
    font-size: 0.74rem;
}

.time-slot-button__label {
    font-size: 0.62rem;
}

.booking-form {
    gap: 0.52rem;
}

.booking-form__heading {
    font-size: 0.98rem;
}

.booking-form__grid {
    gap: 0.52rem 0.62rem;
}

.booking-form__field {
    gap: 0.22rem;
}

.booking-form__field label {
    font-size: 0.68rem;
}

.booking-form .form-control {
    min-height: 35px;
    padding: 0.42rem 0.7rem;
    border-radius: 9px;
    font-size: 0.82rem;
}

.booking-form .autocomplete-field__input {
    padding-right: 2.15rem;
}

.booking-form__feedback {
    min-height: 0.72rem;
    font-size: 0.66rem;
    line-height: 1.05;
}

.autocomplete-field::after {
    right: 0.8rem;
    width: 0.4rem;
    height: 0.4rem;
}

.autocomplete-field__menu {
    top: calc(100% + 0.28rem);
    max-height: 148px;
}

.autocomplete-field__option,
.autocomplete-field__empty {
    padding: 0.5rem 0.72rem;
    font-size: 0.8rem;
}

.booking-submit-btn {
    min-height: 40px;
    margin-top: 0;
    border-radius: 9px;
    font-size: 0.88rem;
}

.student-wrapper:has(.appointment-page) .student-page-footer {
    padding: 5px 20px;
    font-size: 0.68rem;
}

@media (max-height: 820px) and (min-width: 992px) {
    .student-wrapper:has(.appointment-page) .page-content {
        padding-top: 0.7rem;
    }

    .appointment-page {
        gap: 0.65rem;
    }

    .appointment-page__hero {
        min-height: 62px;
        max-height: 62px;
    }

    .appointment-page__hero::before {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .appointment-page__hero h1 {
        font-size: 1.12rem;
    }

    .appointment-page__hero h1::after {
        font-size: 0.76rem;
        margin-top: 0.22rem;
    }

    .appointment-layout {
        height: calc(100vh - var(--navbar-height) - 125px);
        min-height: 490px;
    }

    .appointment-card__body--calendar,
    .appointment-sidebar__body {
        padding: 0.72rem;
    }

    .appointment-calendar .fc-daygrid-day-frame,
    .calendar-day-content {
        min-height: 55px;
        height: 55px;
    }

    .booking-form .form-control {
        min-height: 32px;
    }

    .time-slot-button {
        min-height: 44px;
    }
}

@media (max-width: 991.98px) {
    .appointment-layout {
        height: auto;
        max-height: none;
        min-height: 0;
    }
}

/* Book Appointment icon and right-panel alignment fixes */
.appointment-page__hero::before {
    position: static;
    right: auto;
    bottom: auto;
    top: auto;
    left: auto;
    flex: 0 0 40px;
    margin-left: 1.55rem;
    transform: none;
}

.appointment-page__hero-inner {
    min-width: 0;
}

.appointment-sidebar__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.appointment-date-block {
    display: block;
}

.appointment-date-block h2 {
    align-items: center;
    color: #0f6835;
    font-size: 1.02rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.appointment-date-block h2::before {
    width: 1.05rem;
    min-width: 1.05rem;
    font-size: 0.92rem;
    line-height: 1;
    text-align: center;
}

.appointment-date-block p {
    margin-top: 0.22rem;
    padding-left: 1.66rem;
    color: #66756e;
    font-size: 0.76rem;
    line-height: 1.25;
}

.appointment-date-block p i {
    margin-right: 0.12rem;
    color: var(--primary);
    font-size: 0.8rem;
}

.booking-form__heading {
    align-items: center;
    margin: 0;
    color: #0f6835;
    line-height: 1.15;
}

.booking-form__heading::before {
    width: 1.05rem;
    min-width: 1.05rem;
    font-size: 0.92rem;
    text-align: center;
}

.booking-form__field label {
    margin: 0;
    color: #162a1d;
    line-height: 1.15;
}

.booking-form .form-control {
    width: 100%;
    line-height: 1.25;
}

.booking-form select.form-control {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6f7b89 50%),
        linear-gradient(135deg, #6f7b89 50%, transparent 50%);
    background-position:
        calc(100% - 1.1rem) 50%,
        calc(100% - 0.85rem) 50%;
    background-size: 0.28rem 0.28rem, 0.28rem 0.28rem;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
}

.booking-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
}

@media (max-height: 820px) and (min-width: 992px) {
    .appointment-page__hero::before {
        flex-basis: 34px;
        margin-left: 1.3rem;
    }

    .appointment-date-block h2 {
        font-size: 0.98rem;
    }

    .booking-form__heading {
        font-size: 0.92rem;
    }
}

/* Book Appointment right-panel form alignment polish */
.appointment-sidebar__body {
    padding: 0.95rem 1.05rem 1rem;
}

.appointment-date-block {
    padding-bottom: 0.85rem;
    margin-bottom: 0.9rem;
}

.time-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 0.95rem;
}

.time-slot-button {
    width: 100%;
}

.booking-form {
    gap: 0;
}

.booking-form__heading {
    display: flex;
    width: 100%;
    margin-bottom: 0.62rem;
    font-size: 0.98rem;
}

.booking-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.72rem;
    row-gap: 0.66rem;
    align-items: start;
    width: 100%;
}

.booking-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    width: 100%;
}

.booking-form__field--full,
.booking-form__field--block {
    grid-column: 1 / -1;
    width: 100%;
}

.booking-form__field label {
    display: block;
    min-height: 0.82rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.booking-form .form-control,
.booking-form .autocomplete-field {
    width: 100%;
}

.booking-form .form-control {
    height: 39px;
    min-height: 39px;
    padding: 0.5rem 0.76rem;
    border-radius: 9px;
    font-size: 0.84rem;
}

.booking-form select.form-control {
    padding-right: 2.25rem;
}

.booking-form .autocomplete-field__input {
    padding-right: 2.25rem;
}

.booking-form__feedback {
    min-height: 0.55rem;
    margin-top: -0.04rem;
}

.booking-submit-btn {
    width: 100%;
    height: 43px;
    min-height: 43px;
    margin-top: 0.98rem;
}

@media (max-height: 820px) and (min-width: 992px) {
    .appointment-sidebar__body {
        padding: 0.72rem 0.85rem 0.78rem;
    }

    .appointment-date-block {
        padding-bottom: 0.58rem;
        margin-bottom: 0.62rem;
    }

    .time-slots {
        gap: 0.58rem;
        margin-bottom: 0.72rem;
    }

    .booking-form__heading {
        margin-bottom: 0.48rem;
    }

    .booking-form__grid {
        row-gap: 0.48rem;
        column-gap: 0.62rem;
    }

    .booking-form .form-control {
        height: 34px;
        min-height: 34px;
    }

    .booking-submit-btn {
        height: 39px;
        min-height: 39px;
        margin-top: 0.74rem;
    }
}

/* Book Appointment right-panel hard alignment reset */
.appointment-sidebar {
    overflow: hidden;
}

.appointment-sidebar__body {
    padding: 0;
}

.appointment-date-block,
.time-slots,
.booking-form {
    width: 100%;
}

.appointment-date-block {
    padding: 1rem 1.2rem 0.82rem;
    margin: 0;
    border-bottom: 1px solid #edf2ef;
}

.appointment-date-block h2 {
    display: flex;
    margin: 0;
}

.appointment-date-block p {
    margin: 0.25rem 0 0;
    padding-left: 0;
}

.appointment-date-block p i {
    display: none;
}

.time-slots {
    padding: 1rem 1.2rem 0.95rem;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.booking-form {
    padding: 0 1.2rem 1.05rem;
}

.booking-form__heading {
    margin: 0 0 0.75rem;
}

.booking-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.72rem;
    row-gap: 0.72rem;
}

.booking-form__field {
    margin: 0;
}

.booking-form__field label {
    margin: 0 0 0.3rem;
    min-height: auto;
}

.booking-form__field--full,
.booking-form__field--block {
    grid-column: 1 / -1;
}

.booking-form .form-control {
    display: block;
    height: 40px;
    min-height: 40px;
}

.booking-form__feedback {
    margin: 0.18rem 0 0;
}

.booking-submit-btn {
    margin-top: 1.05rem;
}

@media (max-height: 820px) and (min-width: 992px) {
    .appointment-date-block {
        padding: 0.72rem 0.95rem 0.58rem;
    }

    .time-slots {
        padding: 0.72rem 0.95rem 0.72rem;
        gap: 0.58rem;
    }

    .booking-form {
        padding: 0 0.95rem 0.82rem;
    }

    .booking-form__heading {
        margin-bottom: 0.55rem;
    }

    .booking-form__grid {
        row-gap: 0.5rem;
        column-gap: 0.62rem;
    }

    .booking-form__field label {
        margin-bottom: 0.22rem;
    }

    .booking-form .form-control {
        height: 34px;
        min-height: 34px;
    }

    .booking-submit-btn {
        margin-top: 0.72rem;
    }
}

/* Compact inline validation for Book Appointment */
.booking-form__feedback,
.appointment-inline-feedback {
    height: 0.72rem;
    min-height: 0.72rem;
    margin: 0.12rem 0 0;
    overflow: hidden;
    color: #d14b4b;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1;
}

.appointment-inline-feedback {
    margin-top: 0.28rem;
}

.appointment-inline-feedback--slot {
    padding: 0 1.2rem;
    margin-top: -0.76rem;
    margin-bottom: 0.28rem;
}

.booking-form .form-control.is-invalid {
    border-color: #dc6262;
    background-color: #fffdfd;
    box-shadow: 0 0 0 0.12rem rgba(220, 98, 98, 0.1);
}

.appointment-date-block h2.is-invalid {
    color: #c84d4d;
}

.time-slots.is-invalid .time-slot-button:not(.is-active) {
    border-color: #e7a4a4;
}

/* Book Appointment viewport-fit correction */
body:has(.appointment-page) {
    overflow: hidden;
}

.student-wrapper:has(.appointment-page) {
    height: calc(100vh - var(--navbar-height));
    min-height: 0;
    overflow: hidden;
}

.student-wrapper:has(.appointment-page) .page-content {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - var(--navbar-height) - 26px);
    padding: 0.72rem clamp(1.35rem, 4vw, 4.85rem) 0.45rem;
    overflow: hidden;
}

.student-wrapper:has(.appointment-page) .student-page-footer {
    flex: 0 0 26px;
    height: 26px;
    min-height: 26px;
    padding: 4px 20px;
    line-height: 18px;
}

.appointment-page {
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    gap: 0.7rem;
}

.appointment-page__hero {
    min-height: 72px;
    max-height: 72px;
}

.appointment-layout {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

.appointment-card,
.appointment-sidebar__body,
.appointment-card__body--calendar,
.appointment-calendar,
.appointment-calendar .fc,
.appointment-calendar .fc-view-harness,
.appointment-calendar .fc-dayGridMonth-view,
.appointment-calendar .fc-scrollgrid {
    min-height: 0;
}

.appointment-card__body--calendar,
.appointment-sidebar__body {
    height: 100%;
}

.appointment-sidebar__body {
    overflow: hidden;
}

.appointment-date-block {
    padding-top: 0.72rem;
    padding-bottom: 0.56rem;
}

.time-slots {
    padding-top: 0.72rem;
    padding-bottom: 0.62rem;
}

.booking-form {
    padding-bottom: 0.72rem;
}

.booking-form__grid {
    row-gap: 0.46rem;
}

.booking-form__field label {
    margin-bottom: 0.2rem;
}

.booking-form .form-control {
    height: 35px;
    min-height: 35px;
}

.booking-submit-btn {
    height: 39px;
    min-height: 39px;
    margin-top: 0.62rem;
}

.appointment-inline-feedback--slot {
    margin-bottom: 0.08rem;
}

/* Ensure Book Appointment submit button remains visible */
.appointment-sidebar__body {
    display: flex;
    flex-direction: column;
}

.appointment-date-block {
    flex: 0 0 auto;
    padding-top: 0.52rem;
    padding-bottom: 0.42rem;
}

.appointment-date-block h2 {
    font-size: 0.96rem;
}

.appointment-date-block p {
    font-size: 0.7rem;
    margin-top: 0.12rem;
}

.time-slots {
    flex: 0 0 auto;
    padding-top: 0.52rem;
    padding-bottom: 0.44rem;
    gap: 0.5rem;
}

.time-slot-button {
    min-height: 39px;
    padding: 0.38rem 0.35rem;
}

.time-slot-button__time {
    font-size: 0.68rem;
}

.time-slot-button__label {
    font-size: 0.56rem;
}

.booking-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.48rem;
}

.booking-form__heading {
    flex: 0 0 auto;
    margin-bottom: 0.42rem;
    font-size: 0.9rem;
}

.booking-form__grid {
    flex: 0 1 auto;
    row-gap: 0.3rem;
    column-gap: 0.52rem;
}

.booking-form__field {
    gap: 0;
}

.booking-form__field label {
    margin-bottom: 0.16rem;
    font-size: 0.62rem;
    line-height: 1;
}

.booking-form .form-control {
    height: 31px;
    min-height: 31px;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    font-size: 0.78rem;
}

.booking-form__feedback,
.appointment-inline-feedback {
    height: 0.52rem;
    min-height: 0.52rem;
    margin-top: 0.06rem;
    font-size: 0.58rem;
}

.appointment-inline-feedback--slot {
    margin-top: -0.46rem;
    margin-bottom: 0.08rem;
}

.booking-submit-btn {
    flex: 0 0 auto;
    height: 36px;
    min-height: 36px;
    margin-top: auto;
    font-size: 0.82rem;
}

@media (max-height: 820px) and (min-width: 992px) {
    .appointment-date-block {
        padding-top: 0.42rem;
        padding-bottom: 0.34rem;
    }

    .time-slots {
        padding-top: 0.42rem;
        padding-bottom: 0.34rem;
    }

    .time-slot-button {
        min-height: 35px;
    }

    .booking-form__heading {
        margin-bottom: 0.34rem;
    }

    .booking-form__grid {
        row-gap: 0.22rem;
    }

    .booking-form .form-control {
        height: 28px;
        min-height: 28px;
    }

    .booking-submit-btn {
        height: 33px;
        min-height: 33px;
    }
}

/* Balanced right-panel spacing after viewport fit */
.appointment-date-block {
    padding-top: 0.62rem;
    padding-bottom: 0.5rem;
}

.appointment-date-block h2 {
    font-size: 1rem;
}

.appointment-date-block p {
    font-size: 0.74rem;
}

.time-slots {
    padding-top: 0.62rem;
    padding-bottom: 0.52rem;
    gap: 0.58rem;
}

.time-slot-button {
    min-height: 43px;
    padding: 0.46rem 0.42rem;
}

.time-slot-button__time {
    font-size: 0.72rem;
}

.time-slot-button__label {
    font-size: 0.6rem;
}

.booking-form__heading {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.booking-form__grid {
    row-gap: 0.4rem;
    column-gap: 0.62rem;
}

.booking-form__field label {
    margin-bottom: 0.2rem;
    font-size: 0.66rem;
}

.booking-form .form-control {
    height: 34px;
    min-height: 34px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.82rem;
}

.booking-form__feedback,
.appointment-inline-feedback {
    height: 0.6rem;
    min-height: 0.6rem;
    font-size: 0.6rem;
}

.booking-submit-btn {
    height: 38px;
    min-height: 38px;
    margin-top: auto;
    font-size: 0.86rem;
}

/* Book Appointment sidebar overflow fix */
.appointment-sidebar,
.appointment-sidebar .appointment-card__body,
.appointment-sidebar__body,
.booking-form {
    min-height: 0;
}

.booking-form__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 34%, #ffffff 100%);
}

.booking-form__actions .booking-submit-btn {
    margin-top: 0;
}

@media (min-width: 992px) {
    .appointment-layout {
        align-items: stretch;
    }

    .appointment-sidebar {
        min-height: 0;
    }

    .appointment-sidebar__body {
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        padding-bottom: 1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(43, 122, 74, 0.72) rgba(43, 122, 74, 0.12);
    }

    .appointment-sidebar__body::-webkit-scrollbar {
        width: 8px;
    }

    .appointment-sidebar__body::-webkit-scrollbar-track {
        background: rgba(43, 122, 74, 0.1);
        border-radius: 999px;
    }

    .appointment-sidebar__body::-webkit-scrollbar-thumb {
        background: rgba(43, 122, 74, 0.7);
        border-radius: 999px;
        border: 2px solid rgba(255, 255, 255, 0.85);
    }

    .appointment-sidebar__body::-webkit-scrollbar-thumb:hover {
        background: rgba(24, 94, 53, 0.85);
    }

    .booking-form {
        padding-bottom: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .appointment-sidebar__body {
        max-height: none;
        overflow: visible;
    }

    .booking-form__actions {
        position: static;
        padding-top: 0.65rem;
        background: transparent;
    }
}

/* Need Help page */
.student-wrapper:has(.help-chat-page) .page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.student-wrapper:has(.help-chat-page) .student-page-footer {
    padding-top: 0;
}

.help-chat-page {
    width: 100%;
    max-width: 980px;
    height: calc(100vh - 170px);
    min-height: 620px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1.1rem;
}

.help-chat-banner {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 2.2rem 2.35rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 18px 40px rgba(21, 95, 49, 0.16);
}

.help-chat-banner::before,
.help-chat-banner::after {
    display: none;
}

.help-chat-banner h1 {
    position: relative;
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.help-chat-banner p {
    position: relative;
    margin: 0.6rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.92;
}

.help-chat-card {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(68, 123, 83, 0.08);
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(31, 50, 38, 0.1);
    overflow: hidden;
}

.help-chat-body {
    min-height: 0;
    padding: 1.6rem 1.6rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.35rem;
}

.chat-message-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.chat-message-row--user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f3ec;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 10px 18px rgba(68, 123, 83, 0.12);
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-bubble {
    max-width: min(78%, 520px);
    padding: 1rem 1.1rem;
    border-radius: 22px;
    font-size: 0.96rem;
    line-height: 1.65;
    box-shadow: 0 10px 20px rgba(25, 45, 31, 0.06);
}

.chat-bubble--nurse {
    background: #f3f5f4;
    color: #243228;
    border-top-left-radius: 10px;
}

.chat-bubble--user {
    background: var(--primary);
    color: #fff;
    border-top-right-radius: 10px;
}

.chat-sender-name {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.chat-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-left: 3.5rem;
}

.chat-shortcut {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.chat-shortcut:hover,
.chat-shortcut:focus-visible {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(68, 123, 83, 0.18);
}

.chat-input-panel {
    padding: 0 1.6rem 1.35rem;
}

.chat-input-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem 0.7rem 1rem;
    background: #f6f8f7;
    border: 1px solid #dce9e0;
    border-radius: 24px;
}

.chat-attach-btn,
.chat-send-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.chat-attach-btn {
    background: transparent;
    color: #6d7c72;
}

.chat-send-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(68, 123, 83, 0.2);
}

.chat-attach-btn:hover,
.chat-attach-btn:focus-visible {
    background: #e8f3ec;
    color: var(--primary);
}

.chat-send-btn:hover,
.chat-send-btn:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #223127;
    font-size: 0.96rem;
    outline: none;
    min-width: 0;
}

.chat-input::placeholder {
    color: #839187;
}

.chat-note {
    margin: 0.8rem 0 0;
    text-align: center;
    color: #6f7c74;
    font-size: 0.82rem;
}

.chat-bubble .chat-time {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
}

.chat-bubble--nurse .chat-time {
    color: #7a8d80;
}

.chat-bubble--user .chat-time {
    color: rgba(255, 255, 255, 0.72);
}

.chat-load-more {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0 0.5rem;
}

@media (max-width: 991.98px) {
    .student-wrapper:has(.help-chat-page) .page-content {
        align-items: stretch;
        padding: 1.1rem;
    }

    .help-chat-page {
        height: auto;
        min-height: calc(100vh - 180px);
    }
}

@media (max-width: 767.98px) {
    .student-wrapper:has(.help-chat-page) .page-content {
        padding: 0.9rem;
    }

    .help-chat-page {
        gap: 0.9rem;
        min-height: calc(100vh - 165px);
    }

    .help-chat-banner,
    .help-chat-body,
    .chat-input-panel {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .help-chat-banner h1 {
        font-size: 1.6rem;
    }

    .chat-shortcuts {
        padding-left: 0;
    }

    .chat-bubble {
        max-width: 88%;
    }
}

/* Shared student page banner */
.student-wrapper:has(.page-banner) .page-content {
    padding: 1.5rem clamp(1.25rem, 4vw, 4.4rem) 2rem;
    align-items: center;
}

.student-wrapper:has(.page-banner) .dashboard-page,
.student-wrapper:has(.page-banner) .appointment-page,
.student-wrapper:has(.page-banner) .appointments-page,
.student-wrapper:has(.page-banner) .help-chat-page {
    --student-page-banner-height: 120px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    gap: 0;
}

.student-wrapper:has(.page-banner) .appointment-page {
    grid-template-rows: var(--student-page-banner-height) minmax(0, 1fr);
}

.page-banner {
    --page-banner-height: var(--student-page-banner-height, 120px);
    --page-banner-padding-x: 24px;
    position: relative;
    width: 100%;
    min-height: var(--page-banner-height);
    height: var(--page-banner-height);
    max-height: var(--page-banner-height);
    margin: 0 0 1.35rem;
    padding: 0 var(--page-banner-padding-x);
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(68, 123, 83, 0.14);
    flex: 0 0 var(--page-banner-height);
}

.dashboard-hero.page-banner,
.appointments-hero.page-banner,
.appointment-page__hero.page-banner,
.help-chat-banner.page-banner {
    min-height: var(--page-banner-height);
    height: var(--page-banner-height);
    max-height: var(--page-banner-height);
    margin: 0 0 1.35rem;
    padding: 0 var(--page-banner-padding-x);
    border-radius: 16px;
    align-items: center;
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(68, 123, 83, 0.14);
}

.page-banner::before,
.page-banner::after {
    display: none !important;
}

.page-banner__content,
.dashboard-hero__content.page-banner__content,
.appointments-hero__content.page-banner__content,
.appointment-page__hero-inner.page-banner__content {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    height: 72px;
    flex: 0 1 760px;
    padding: 0;
    display: grid;
    grid-template-rows: 1.8rem 1.25rem;
    align-content: center;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
}

.page-banner h1,
.page-banner h4 {
    margin: 0;
    color: #fff;
    width: 100%;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-page .dashboard-hero.page-banner h4,
.appointments-hero.page-banner h1,
.appointment-page__hero.page-banner h1,
.help-chat-banner.page-banner h1 {
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.page-banner h1::after {
    display: none !important;
}

.page-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-page .dashboard-hero.page-banner p,
.appointments-hero.page-banner p,
.help-chat-banner.page-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
}

.page-banner .appointments-hero__eyebrow {
    margin: 0 0 0.05rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.page-banner__icon,
.dashboard-page .dashboard-hero__icon.page-banner__icon,
.appointments-hero__badge.page-banner__icon {
    position: relative;
    z-index: 1;
    right: auto;
    bottom: auto;
    top: auto;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.65rem;
    opacity: 1;
    transform: none;
    backdrop-filter: none;
}

.page-banner__icon {
    display: none !important;
}

.appointments-hero.page-banner .page-banner__content {
    grid-template-rows: 1.8rem 1.25rem;
}

.page-banner.help-chat-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-banner.help-chat-banner h1,
.page-banner.help-chat-banner p {
    position: relative;
    z-index: 1;
}

@media (max-width: 575.98px) {
    .student-wrapper:has(.page-banner) .page-content {
        padding: 1rem;
    }

    .student-wrapper:has(.page-banner) .dashboard-page,
    .student-wrapper:has(.page-banner) .appointment-page,
    .student-wrapper:has(.page-banner) .appointments-page,
    .student-wrapper:has(.page-banner) .help-chat-page {
        --student-page-banner-height: 96px;
    }

    .page-banner {
        --page-banner-padding-x: 16px;
        border-radius: 12px;
        gap: 16px;
        margin-bottom: 1rem;
    }

    .dashboard-hero.page-banner,
    .appointments-hero.page-banner,
    .appointment-page__hero.page-banner,
    .help-chat-banner.page-banner {
        padding: 0 var(--page-banner-padding-x);
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .page-banner__content,
    .dashboard-hero__content.page-banner__content,
    .appointments-hero__content.page-banner__content,
    .appointment-page__hero-inner.page-banner__content {
        width: min(100%, 620px);
        height: 60px;
        flex-basis: 620px;
        grid-template-rows: 1.45rem 1.05rem;
        gap: 0.24rem;
    }

    .page-banner h1,
    .page-banner h4 {
        font-size: 1.1rem;
    }

    .dashboard-page .dashboard-hero.page-banner h4,
    .appointments-hero.page-banner h1,
    .appointment-page__hero.page-banner h1,
    .help-chat-banner.page-banner h1 {
        font-size: 1.1rem;
    }

    .page-banner p {
        font-size: 0.74rem;
    }

    .dashboard-page .dashboard-hero.page-banner p,
    .appointments-hero.page-banner p,
    .help-chat-banner.page-banner p {
        font-size: 0.74rem;
    }

    .page-banner .appointments-hero__eyebrow {
        font-size: 0.56rem;
    }

    .page-banner__icon,
    .dashboard-page .dashboard-hero__icon.page-banner__icon,
    .appointments-hero__badge.page-banner__icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 10px;
        font-size: 1.2rem;
    }
}

/* Locked student navigation layout */
html {
    scrollbar-gutter: stable;
}

body {
    overflow-y: scroll;
}

body:has(.appointment-page) {
    overflow-y: scroll;
}

.student-navbar {
    box-sizing: border-box;
    width: 100%;
    min-height: 86px;
    height: 86px;
    max-height: 86px;
    flex: 0 0 86px;
    display: flex;
    align-items: center;
    padding: 0 2.35rem !important;
    margin: 0;
    overflow: visible;
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(15, 60, 31, 0.2);
}

.student-navbar .container,
.student-navbar .container-fluid {
    height: 100%;
}

.navbar-brand-text {
    height: 86px;
    min-height: 86px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 270px;
    margin: 0;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
    color: #fff !important;
    font-size: 1.38rem;
    font-weight: 800;
}

.navbar-brand-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex: 0 0 48px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.navbar-brand-icon img {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    object-fit: contain;
    display: block;
}

.navbar-brand-divider {
    width: 1px;
    height: 40px;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.15rem;
}

.student-navbar .navbar-collapse {
    align-items: center;
    min-width: 0;
}

.student-navbar .student-nav-list {
    width: 100%;
    min-height: 86px;
    align-items: center;
    justify-content: center;
    gap: 1.25rem !important;
    margin-left: 0 !important;
}

.student-navbar .nav-item {
    display: flex;
    align-items: center;
    min-height: 86px;
}

.student-navbar .student-nav-list > .nav-item:last-child {
    margin-left: auto;
}

.student-nav-link {
    box-sizing: border-box;
    height: 50px;
    min-height: 50px;
    padding: 0 1.1rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92) !important;
}

.student-nav-link i {
    width: 20px;
    min-width: 20px;
    font-size: 1.15rem;
    line-height: 1;
    text-align: center;
    color: currentColor;
}

.student-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.11);
}

.student-nav-link.active {
    color: #fff !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.student-navbar .dropdown > .btn {
    box-sizing: border-box;
    height: 56px;
    min-height: 56px;
    padding: 0 0.95rem 0 0.55rem !important;
    margin: 0;
    white-space: nowrap;
}

.student-profile-pill {
    height: 56px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.student-profile-pill:hover,
.student-profile-pill:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
}

.student-profile-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary-hover);
    font-size: 0.86rem;
    font-weight: 700;
    overflow: hidden;
}

.student-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.student-profile-chevron {
    font-size: 0.65rem;
    line-height: 1;
}

.student-profile-menu {
    font-size: 0.845rem;
}

.student-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.student-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.18);
}

.student-navbar .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

.student-wrapper {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
}

.page-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .student-navbar {
        height: 72px;
        min-height: 72px;
        max-height: none;
        padding: 0 1rem !important;
        align-items: center;
    }

    .navbar-brand-text {
        height: 72px;
        min-height: 72px;
        flex-basis: auto;
        font-size: 1.1rem;
        gap: 0.9rem;
    }

    .navbar-brand-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        min-width: 42px;
    }

    .navbar-brand-icon img {
        width: 42px !important;
        height: 42px !important;
    }

    .navbar-brand-divider {
        height: 34px;
        margin: 0;
    }

    .student-navbar .navbar-collapse {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--primary-hover);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 22px rgba(21, 40, 28, 0.08);
        padding: 0.65rem 1rem;
    }

    .student-navbar .navbar-nav,
    .student-navbar .nav-item {
        min-height: 0;
        align-items: stretch;
    }

    .student-nav-link {
        height: 42px;
        min-height: 42px;
        width: 100%;
        justify-content: flex-start;
    }

    .student-profile-pill {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Student profile page */
.profile-page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.profile-banner {
    margin-bottom: 1.25rem;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(22, 44, 29, 0.07);
    padding: 1.35rem;
}

.profile-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-preview {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 74px;
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card__header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-card__header p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.profile-alert {
    border-radius: 10px;
    font-size: 0.84rem;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-form__field {
    min-width: 0;
}

.profile-form__field--full,
.profile-form__actions {
    grid-column: 1 / -1;
}

.profile-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-form .form-control {
    min-height: 42px;
}

.profile-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.profile-save-btn {
    min-width: 160px;
    border-radius: 7px;
}

@media (max-width: 767.98px) {
    .profile-card {
        padding: 1rem;
    }

    .profile-card__header {
        align-items: flex-start;
    }

    .profile-form {
        grid-template-columns: 1fr;
    }

    .profile-form__actions {
        justify-content: stretch;
    }

    .profile-save-btn {
        width: 100%;
    }
}

/* Step-by-step booking flow */
.appointment-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    transition: grid-template-columns 0.2s ease;
}

.appointment-flow.is-panel-open {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 420px);
}

.appointment-flow .appointment-calendar-panel {
    min-height: 520px;
}

.appointment-flow .appointment-card__body--calendar {
    min-height: 520px;
}

.appointment-flow-panel {
    min-height: 520px;
    animation: bookingPanelIn 0.2s ease;
}

.appointment-flow-panel[hidden] {
    display: none;
}

.appointment-flow-panel .appointment-sidebar__body {
    position: relative;
    min-height: 520px;
    padding: 1.35rem;
    overflow: visible;
}

.appointment-flow-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.appointment-flow-close:hover {
    background: var(--primary);
    color: #fff;
}

.appointment-flow-step {
    animation: bookingPanelIn 0.18s ease;
}

.appointment-flow-step[hidden] {
    display: none;
}

.appointment-flow-panel__header {
    padding-right: 2.3rem;
    margin-bottom: 1rem;
}

.appointment-flow-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.3rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.appointment-flow-panel__header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.08rem;
    font-weight: 700;
}

.appointment-flow-panel__header p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.appointment-flow .appointment-date-block {
    padding: 0.85rem 0 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.appointment-waiting-message {
    margin-bottom: 0.8rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d7eadc;
    border-radius: 10px;
    background: #f4fbf6;
    color: #447b53;
    font-size: 0.84rem;
    font-weight: 600;
}

.appointment-waiting-message[hidden] {
    display: none;
}

.appointment-flow .time-slots {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.appointment-flow .time-slot-button {
    min-height: 74px;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    text-align: left;
    align-items: flex-start;
}

.appointment-flow .time-slot-button__label {
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
}

.appointment-flow .time-slot-button__time {
    margin-top: 0.22rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
}

.appointment-flow .time-slot-button.is-active {
    background: var(--primary);
    border-color: var(--primary);
}

.appointment-flow .time-slot-button.is-active .time-slot-button__label,
.appointment-flow .time-slot-button.is-active .time-slot-button__time {
    color: #fff;
}

.appointment-flow .booking-submit-btn:disabled,
.booking-confirm-modal__footer .btn:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
    box-shadow: none;
}

.appointment-flow .booking-form {
    padding: 0;
    margin: 0;
    border: 0;
}

.appointment-flow textarea.form-control {
    min-height: 148px;
    resize: vertical;
}

.appointment-review-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
}

.appointment-review-card span {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.appointment-review-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

@keyframes bookingPanelIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 991.98px) {
    .appointment-flow.is-panel-open {
        grid-template-columns: 1fr;
    }

    .appointment-flow .appointment-calendar-panel,
    .appointment-flow .appointment-card__body--calendar,
    .appointment-flow-panel,
    .appointment-flow-panel .appointment-sidebar__body {
        min-height: 0;
    }
}

/* Book appointment single-screen layout cleanup */
body:has(.appointment-flow) {
    overflow: hidden;
}

.student-wrapper:has(.appointment-flow) {
    height: calc(100vh - 86px);
    min-height: 0;
    overflow: hidden;
}

.student-wrapper:has(.appointment-flow) .page-content {
    height: calc(100vh - 86px - 26px);
    min-height: 0;
    padding: 0.85rem clamp(1.25rem, 4vw, 4.4rem) 0.35rem;
    overflow: hidden;
}

.student-wrapper:has(.appointment-flow) .appointment-page {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.student-wrapper:has(.appointment-flow) .page-banner {
    flex: 0 0 96px;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    margin-bottom: 0.75rem;
}

.student-wrapper:has(.appointment-flow) .appointment-flow {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar-panel,
.student-wrapper:has(.appointment-flow) .appointment-card__body--calendar {
    min-height: 0;
    height: 100%;
}

.student-wrapper:has(.appointment-flow) .appointment-card__body--calendar {
    padding: 0.85rem 1rem;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-view-harness,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-dayGridMonth-view,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scrollgrid {
    min-height: 0;
    height: 100% !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-header-toolbar {
    margin-bottom: 0.45rem;
    padding: 0 0.2rem;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-toolbar-title {
    font-size: 1rem;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-col-header-cell {
    height: 30px;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-frame {
    min-height: 46px;
    height: 46px;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-number {
    min-width: 28px;
    height: 28px;
    font-size: 0.78rem;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scroller,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scroller-liquid-absolute {
    overflow: hidden !important;
}

@media (max-width: 767.98px) {
    body:has(.appointment-flow) {
        overflow-y: auto;
    }

    .student-wrapper:has(.appointment-flow),
    .student-wrapper:has(.appointment-flow) .page-content {
        height: auto;
        min-height: calc(100vh - 72px);
        overflow: visible;
    }

    .student-wrapper:has(.appointment-flow) .page-banner {
        flex-basis: 86px;
        height: 86px;
        min-height: 86px;
        max-height: 86px;
    }
}

/* Student booking calendar synced with admin availability */
.student-wrapper:has(.appointment-flow) .appointment-card__body--calendar {
    padding: 1rem;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc {
    height: auto !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-header-toolbar {
    margin-bottom: 0.75rem;
    padding: 0;
    border-bottom: 0;
    justify-content: space-between;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-toolbar-title {
    color: #1a2e22;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-button {
    border-radius: 7px !important;
    box-shadow: none !important;
    text-transform: capitalize !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-prev-button,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-next-button {
    width: 34px;
    height: 34px;
    background: #447b53 !important;
    border-color: #447b53 !important;
    color: #fff !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-today-button {
    height: 34px;
    padding: 0 0.9rem !important;
    background: #fff !important;
    border-color: #447b53 !important;
    color: #447b53 !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scrollgrid {
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    overflow: hidden;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-view-harness,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-view-harness-active,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-dayGridMonth-view,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scrollgrid,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scroller,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scroller-liquid-absolute,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-body,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-body table,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-scrollgrid-sync-table {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-col-header-cell {
    height: auto;
    padding: 0.5rem 0;
    background: #fbfdfc;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-col-header-cell-cushion {
    color: #1a2e22;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-frame {
    min-height: 78px !important;
    height: 78px !important;
    padding: 0.36rem 0.32rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-top {
    justify-content: center;
    width: 100%;
    padding: 0;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-number {
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a2e22;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-events,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-bg {
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.student-wrapper:has(.appointment-flow) .calendar-day-content {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 0.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.18rem;
    line-height: 1.1;
}

.student-wrapper:has(.appointment-flow) .calendar-day-note {
    max-width: 100%;
    display: block;
    color: #1a2e22;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.calendar-day-badge {
    max-width: 100%;
    padding: 0.24rem 0.48rem;
    border-radius: 7px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.calendar-day-badge--slots {
    background: #dff4e5;
    color: #1f6f3d;
}

.calendar-day-badge--full {
    background: #d92d20;
    color: #fff;
}

.calendar-day-badge--closed {
    background: #e9ecef;
    color: #4f5962;
}

.calendar-day-badge--sunday {
    background: #ffdcdc;
    color: #a82020;
}

.calendar-day-badge--holiday {
    background: #ffeaa3;
    color: #7a5700;
}

.calendar-day-badge--custom {
    background: #dcebf8;
    color: #25577f;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-open-day {
    background: #fbfdfc;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-open-day:hover {
    background: #e8f3ec;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-full-day {
    background: #fff3f3;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-closed-day,
.student-wrapper:has(.appointment-flow) .appointment-calendar .is-sunday-closed-day {
    background: #ffecec !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-holiday-day {
    background: #fff6d8 !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-custom-blocked-day {
    background: #eaf2fb !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-day-disabled,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-day-past {
    cursor: not-allowed;
    opacity: 0.78;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .student-calendar-day-past {
    background: #f5f6f5 !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-day-disabled .fc-daygrid-day-number,
.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-day-disabled .calendar-day-note {
    opacity: 0.7;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-selected-day {
    box-shadow: inset 0 0 0 2px #447b53;
    background: #e8f3ec !important;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .is-selected-day .fc-daygrid-day-number {
    color: #447b53;
    background: rgba(68, 123, 83, 0.12);
}

.booking-confirm-modal[hidden] {
    display: none;
}

.booking-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(14, 31, 21, 0.45);
}

.booking-confirm-modal__card {
    width: min(100%, 460px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(14, 31, 21, 0.22);
}

.booking-confirm-modal__header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #447b53;
    color: #fff;
}

.booking-confirm-modal__header h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.booking-confirm-modal__close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.booking-confirm-modal__body {
    padding: 1.15rem;
}

.booking-confirm-modal__body p {
    margin: 0 0 0.9rem;
    color: #1a2e22;
    font-weight: 600;
}

.booking-confirm-summary {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.booking-confirm-summary div {
    padding: 0.75rem;
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    background: #fbfdfc;
}

.booking-confirm-summary dt {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
}

.booking-confirm-summary dd {
    margin: 0.2rem 0 0;
    color: #1a2e22;
    font-size: 0.9rem;
    font-weight: 700;
}

.booking-confirm-message {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.booking-confirm-message--success {
    color: #1f6f3d;
}

.booking-confirm-message--error {
    color: #b42318;
}

.booking-confirm-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0 1.15rem 1.15rem;
}

/* Keep the student booking calendar fully visible */
body:has(.appointment-flow) {
    overflow-y: auto;
}

.student-wrapper:has(.appointment-flow) {
    height: auto;
    min-height: calc(100vh - 86px);
    overflow: visible;
}

.student-wrapper:has(.appointment-flow) .page-content {
    height: auto;
    min-height: calc(100vh - 86px - 26px);
    overflow: visible;
    padding-bottom: 1.25rem;
}

.student-wrapper:has(.appointment-flow) .appointment-page,
.student-wrapper:has(.appointment-flow) .appointment-flow {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar-panel {
    overflow: visible;
}

.student-wrapper:has(.appointment-flow) .appointment-card__body--calendar {
    overflow-x: auto;
    overflow-y: visible;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar {
    min-width: 760px;
}

.student-wrapper:has(.appointment-flow) .appointment-calendar .fc-daygrid-day-frame {
    min-height: 72px !important;
    height: 72px !important;
}

.booking-success-modal .booking-confirm-modal__card {
    max-width: 430px;
}
