
body {
    padding-top: 20px; /* Accounts for fixed nav header */
}

.timetable-hero {
    background-color: var(--sh-card-light);
    padding: 80px 0 20px 0;
    border-bottom: 1px solid var(--sh-border-light);
    text-align: center;
}

    .timetable-hero h1 {
        font-family: var(--font-headers);
        font-size: 3.5rem;
        text-transform: uppercase;
        letter-spacing: -2px;
        margin-bottom: 15px;
    }

    .timetable-hero p {
        font-family: var(--font-arty);
        font-style: italic;
        font-size: 1.3rem;
        color: var(--sh-text-muted);
        max-width: 600px;
        margin: 0 auto;
    }

.timetable-section {
    --tt-ok: #2f7d4f;
    --tt-info: #2f6fed;
    padding: 20px 0;
}

/* Calendar (left) + that day's classes (right); stacks below 900px */
.timetable-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

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

/* ---------- Empty / prompt state ---------- */
.cal-prompt {
    text-align: center;
    padding: 56px 30px;
}

.cal-prompt-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 1px solid var(--sh-border-light);
    background: var(--sh-card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sh-text-muted);
}

    .cal-prompt-icon svg {
        width: 16px;
        height: 16px;
    }

.cal-prompt h3 {
    font-family: var(--font-headers);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--sh-text-dark);
}

.cal-prompt p {
    font-size: 0.85rem;
    max-width: 320px;
    margin: 0 auto;
}

.panel {
    background: var(--sh-white);
    border: 1px solid var(--sh-border-light);
    padding: 32px;
}

.hidden {
    display: none !important;
}

/* ---------- Calendar head / nav ---------- */
.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--sh-border-light);
    flex-wrap: wrap;
}

.cal-head-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .cal-head-label svg {
        width: 16px;
        height: 16px;
        color: var(--sh-text-muted);
    }

.cal-head h2 {
    font-family: var(--font-headers);
    font-size: 1rem;
    letter-spacing: -0.3px;
    color: var(--sh-text-dark);
}

.cal-nav {
    display: flex;
    gap: 6px;
}

.cal-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--sh-border-light);
    background: var(--sh-white);
    color: var(--sh-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

    .cal-nav-btn svg {
        width: 12px;
        height: 12px;
    }

    .cal-nav-btn:hover {
        background-color: var(--sh-text-dark);
        border-color: var(--sh-text-dark);
        color: var(--sh-white);
    }

/* ---------- Calendar grid ---------- */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    text-align: center;
}

    .cal-weekdays span {
        font-family: var(--font-headers);
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--sh-text-muted);
    }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.cal-day {
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--tt-ok);
    transition: var(--transition);
}

.cal-day:not(.disabled):hover .cal-day-num {
    background-color: var(--sh-text-dark);
    color: var(--sh-white);
}

.cal-day.selected .cal-day-num {
    background-color: var(--sh-gold);
    color: var(--sh-white);
}

.cal-day.today .cal-day-num {
    box-shadow: inset 0 0 0 1px var(--sh-gold);
}

.cal-day.disabled {
    cursor: not-allowed;
}

    .cal-day.disabled .cal-day-num {
        color: var(--sh-text-muted);
        opacity: 0.35;
    }

.cal-day.holiday .cal-day-num {
    box-shadow: inset 0 0 0 2px var(--tt-info);
    text-decoration: none;
    opacity: 0.75;
}

/* ---------- Legend ---------- */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--sh-border-light);
    font-family: var(--font-headers);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sh-text-muted);
}

    .cal-legend .swatch {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .cal-legend .dot {
        width: 10px;
        height: 10px;
        display: inline-block;
        border-radius: 50%;
    }

        .cal-legend .dot.none {
            background: none;
            border: 1px solid var(--sh-border-light);
            border-radius: 2px;
        }

        .cal-legend .dot.ok {
            background: var(--tt-ok);
        }

        .cal-legend .dot.info {
            background: none;
            border: 2px solid var(--tt-info);
        }

        .cal-legend .dot.sel {
            background: var(--sh-gold);
        }

/* ---------- Selected day's lesson list ---------- */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-empty {
    color: var(--sh-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--sh-card-light);
    border: 1px solid var(--sh-border-light);
    padding: 16px 20px;
    flex-wrap: wrap;
}

.lesson-info {
    min-width: 0;
}

.lesson-item h4 {
    font-family: var(--font-headers);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    color: var(--sh-text-dark);
    margin-bottom: 4px;
}

.lesson-style {
    font-size: 0.8rem;
    color: var(--sh-text-muted);
    margin: 0;
}

.lesson-time {
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sh-gold);
    margin: 6px 0 0;
}

.lesson-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .lesson-item {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- Booking panel ---------- */
.form-block {
    background: var(--sh-card-light);
    border: 1px solid var(--sh-border-light);
    padding: 22px;
    margin-bottom: 18px;
}

.form-block-title {
    font-family: var(--font-headers);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    color: var(--sh-text-dark);
    margin-bottom: 18px;
}

.field {
    margin-bottom: 16px;
}

    .field:last-child {
        margin-bottom: 0;
    }

    .field label {
        display: block;
        font-family: var(--font-headers);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--sh-text-muted);
        margin-bottom: 7px;
    }

    .field input,
    .field select {
        width: 100%;
        background: var(--sh-white);
        border: 1px solid var(--sh-border-light);
        color: var(--sh-text-dark);
        padding: 13px 14px;
        font-family: inherit;
        font-size: 0.95rem;
        transition: var(--transition);
    }

        .field input:focus,
        .field select:focus {
            border-color: var(--sh-gold);
            outline: none;
        }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--sh-text-dark);
    cursor: pointer;
    margin-top: 6px;
}

    .checkbox-row input {
        width: 18px;
        height: 18px;
        accent-color: var(--sh-gold);
    }

.dependent-card {
    background: var(--sh-white);
    border: 1px solid var(--sh-border-light);
    padding: 18px;
    margin-bottom: 14px;
}

.dependent-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-headers);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    color: var(--sh-text-muted);
    border-bottom: 1px solid var(--sh-border-light);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.dependent-remove-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--sh-border-light);
    border-radius: 50%;
    color: var(--sh-text-muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

    .dependent-remove-btn:hover {
        border-color: var(--tt-full, #b23b30);
        color: var(--tt-full, #b23b30);
    }

.booking-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

    .booking-actions .btn-outline {
        flex: 0 0 auto;
    }

    .booking-actions .btn-primary {
        flex: 1 1 auto;
    }

/* ---------- Booking confirmation ---------- */
.booking-confirm {
    text-align: center;
    padding: 40px 20px;
}

.booking-confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border: 1px solid var(--tt-ok);
    color: var(--tt-ok);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .booking-confirm-icon svg {
        width: 22px;
        height: 22px;
    }

.booking-confirm h3 {
    font-family: var(--font-headers);
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--sh-text-dark);
}

.booking-confirm p {
    max-width: 420px;
    margin: 0 auto;
}

.btn-outline {
    background: transparent;
    color: var(--sh-text-dark);
    border: 2px solid var(--sh-text-dark);
}

    .btn-outline:hover {
        background-color: var(--sh-text-dark);
        color: var(--sh-white);
    }

.btn-sm {
    padding: 10px 18px;
    font-size: 0.75rem;
}
