/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.package-intro, #package-scheduler, .package-summary { margin: 1rem 0; padding: 1rem; }
.package-schedule-actions, .credit-breakdown { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.credit-breakdown span { background: #eef6fc; border-radius: 8px; padding: .65rem .8rem; min-width: 110px; }
.package-date-list li, .package-booking { border-bottom: 1px solid #dfe7ed; padding: .75rem 0; }
.link-button { border: 0; background: none; color: #a23636; cursor: pointer; text-decoration: underline; }
.package-result, .package-detail { margin-top: 2rem; }
@media (max-width: 640px) { .package-schedule-actions .btn, .credit-breakdown span { width: 100%; } }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #f3c543;
    outline-offset: 3px;
}

.nav-toggle {
    display: none;
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 5px;
    padding: 0.35rem 0.65rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.lesson-location-section {
    padding-top: 2rem;
    padding-bottom: 0;
}

.lesson-location-note {
    border-left: 4px solid #3498db;
    margin-bottom: 0;
}

.lesson-location-note h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.lesson-location-note p {
    margin-bottom: 0.65rem;
}

.lesson-location-note p:last-child {
    margin-bottom: 0;
}

.booking-location-notice {
    margin-bottom: 2rem;
}

.location-acknowledgement {
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}

.location-acknowledgement > label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 600;
}

.location-acknowledgement input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.location-acknowledgement .help-text {
    margin: 0.65rem 0 0 1.7rem;
}

.card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

/* Staff workspace */
.staff-shell { background: #f4f7fb; min-height: 70vh; }
.staff-subnav { background: #fff; border-bottom: 1px solid #dde5ef; box-shadow: 0 2px 10px rgba(33, 56, 80, .04); }
.staff-subnav-inner { display: flex; align-items: center; gap: .4rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; }
.staff-subnav a { color: #43576b; text-decoration: none; white-space: nowrap; font-size: .92rem; font-weight: 700; padding: .55rem .75rem; border-radius: 7px; }
.staff-subnav a:hover { color: #176b9d; background: #eaf5fb; }
.staff-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; margin-left: .25rem; border-radius: 999px; background: #e67e22; color: #fff; font-size: .72rem; }
.staff-page { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.staff-page-heading { display: flex; gap: 1.25rem; justify-content: space-between; align-items: end; margin-bottom: 1.8rem; }
.staff-page-heading h1 { color: #23384d; font-size: 2.15rem; line-height: 1.15; margin: .2rem 0 .45rem; }
.staff-page-heading p { color: #667789; }
.staff-eyebrow { color: #2783ba !important; font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.staff-notice { margin: 0 0 1.5rem; padding: 1rem 1.15rem; border-left: 4px solid #3498db; border-radius: 7px; background: #eaf5fb; color: #36546d; }
.staff-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.staff-metric, .staff-panel { background: #fff; border: 1px solid #e3eaf2; border-radius: 12px; box-shadow: 0 8px 24px rgba(28, 53, 77, .06); }
.staff-metric { padding: 1.25rem; }
.staff-metric span { display: block; color: #657789; font-size: .86rem; font-weight: 700; }
.staff-metric strong { display: block; color: #243a50; font-size: 2rem; margin-top: .3rem; }
.staff-metric em { color: #aab7c5; font-style: normal; }
.staff-panel { padding: 1.4rem; margin-bottom: 1.35rem; }
.staff-panel h2 { color: #294158; font-size: 1.15rem; margin-bottom: 1rem; }
.staff-panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.staff-panel-heading a, .staff-row-link, .staff-back { color: #227eb5; font-weight: 700; text-decoration: none; }
.staff-table-wrap { overflow-x: auto; }
.staff-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.staff-table th { color: #68798b; background: #f6f9fc; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.staff-table th, .staff-table td { border-bottom: 1px solid #e8eef4; padding: .9rem .75rem; text-align: left; vertical-align: middle; }
.staff-table tbody tr:hover { background: #f9fbfd; }
.staff-status { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.staff-status-pending { color: #986800; background: #fff3cd; }.staff-status-confirmed { color: #197044; background: #d9f2e3; }.staff-status-declined, .staff-status-cancelled { color: #a23636; background: #fbe2e2; }.staff-status-completed { color: #266493; background: #ddecf8; }
.staff-filter, .staff-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.staff-filter input, .staff-filter select, .staff-form input, .staff-form select, .staff-form textarea { border: 1px solid #cdd9e5; border-radius: 7px; padding: .72rem .8rem; font: inherit; }
.staff-filter input { min-width: 230px; flex: 1; }.staff-form p { margin-bottom: 1rem; }.staff-form label { display: block; color: #344e66; font-weight: 700; margin-bottom: .35rem; }.staff-form input, .staff-form select, .staff-form textarea { width: 100%; }.staff-form textarea { resize: vertical; }
.staff-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }.staff-detail-grid .staff-panel { margin-bottom: 1.35rem; }.staff-detail-grid dl { display: grid; gap: .25rem .75rem; grid-template-columns: 9rem 1fr; }.staff-detail-grid dt { color: #6c7c8d; font-weight: 700; }.staff-detail-grid dd { margin: 0; color: #344e66; }.staff-muted { color: #778899; font-size: .9rem; }.staff-empty { color: #718396; padding: .5rem; }.staff-pagination { color: #718396; margin-top: 1rem; }
.staff-settings-panel { max-width: 680px; }.staff-settings-panel .staff-notice { margin-top: 1rem; }

@media (max-width: 800px) { .staff-page-heading { align-items: flex-start; flex-direction: column; }.staff-metrics, .staff-detail-grid { grid-template-columns: 1fr 1fr; }.staff-detail-grid { gap: 0; }.staff-filter input { min-width: 100%; }.staff-filter > * { flex: 1 1 auto; } }
@media (max-width: 520px) { .staff-page { padding-top: 1.6rem; }.staff-page-heading h1 { font-size: 1.8rem; }.staff-metrics { grid-template-columns: 1fr; }.staff-subnav-inner { padding-left: 12px; padding-right: 12px; }.staff-panel { padding: 1rem; }.staff-detail-grid { grid-template-columns: 1fr; } }

/* Staff pages intentionally reuse the calmer public-site language. */
.staff-shell { background: #f9f9f9; }
.staff-subnav { background: #34495e; border: 0; box-shadow: none; }
.staff-subnav-inner { gap: 0; padding-top: 0; padding-bottom: 0; }
.staff-subnav a { border-radius: 0; color: #fff; font-weight: 600; padding: .8rem 1rem; }
.staff-subnav a:hover { color: #fff; background: #2c3e50; }
.staff-badge { background: #3498db; }
.staff-page { padding-top: 3rem; }
.staff-page-heading { align-items: flex-start; margin-bottom: 2rem; }
.staff-page-heading h1 { color: #2c3e50; font-size: 2.3rem; }
.staff-page-heading p { color: #7f8c8d; }
.staff-eyebrow { color: #3498db !important; }
.staff-notice { background: #f8f9fa; border-left-color: #3498db; box-shadow: none; }
.staff-metrics { gap: 1.25rem; }
.staff-metric, .staff-panel { border: 0; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.staff-metric { padding: 1.5rem; }.staff-metric strong { color: #3498db; font-size: 2.1rem; }
.staff-panel { padding: 2rem; margin-bottom: 2rem; }.staff-panel h2 { color: #2c3e50; font-size: 1.25rem; }
.staff-table th { background: #f8f9fa; color: #2c3e50; letter-spacing: normal; text-transform: none; font-size: .9rem; }
.staff-table th, .staff-table td { padding: 1rem .75rem; }.staff-table tbody tr:hover { background: #f8f9fa; }
.staff-status { border-radius: 5px; font-weight: 600; }.staff-filter { background: #fff; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,.1); padding: 1.25rem; }
.staff-detail-grid { gap: 2rem; }.staff-actions .btn { padding: .65rem 1rem; }.staff-settings-panel { max-width: 600px; }
@media (max-width: 800px) { .staff-subnav a { padding: .7rem .75rem; }.staff-metrics { grid-template-columns: 1fr 1fr; } }

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3498db;
}

.form-group .help-text {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
}

.info-message,
.warning-message {
    background-color: #eaf4fb;
    color: #1f4b6e;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.diagnostic-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e3bd57;
    border-radius: 5px;
    background: #fff8dd;
    color: #5d4807;
    font-size: 0.9rem;
}

.diagnostic-panel strong {
    width: 100%;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Homepage media is admin-managed and stays responsive without hardcoded URLs. */
.homepage-media {
    display: grid;
    gap: 3rem;
}

.homepage-video h3,
.homepage-gallery .section-title {
    margin-bottom: 1rem;
}

.homepage-video .section-title {
    margin-bottom: 1rem;
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.media-gallery-item {
    margin: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.media-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.media-gallery-item figcaption,
.media-caption {
    padding: 0.75rem 1rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.media-gallery-item .media-caption,
.homepage-video > .media-caption {
    padding: 0 1rem 1rem;
    color: #526579;
    font-weight: normal;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    flex-grow: 1;
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 0;
    margin-top: 0 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #7f8c8d;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #95a5a6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}

.step-indicator.active .step-number {
    background-color: #3498db;
}

.step-indicator.completed .step-number {
    background-color: #2ecc71;
}

.step-label {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.step-indicator.active .step-label {
    color: #2c3e50;
    font-weight: 600;
}

/* Form Steps */
.booking-step {
    animation: fadeIn 0.3s ease-in;
}

.form-error-tooltip {
    position: absolute;
    z-index: 1000;
    max-width: min(360px, calc(100vw - 24px));
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    background: #c0392b;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.form-error-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        text-align: center;
    }

    .nav-menu.is-open {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .step-indicators {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}
