/* Vibe & Flow Class Reservation System - Public Stylesheet */
/* Matching the landing-page palette and visual identity */

:root {
    --vibe-ink: #110b1c;
    --vibe-plum: #4a355b;
    --vibe-lavender: #e2d6f5;
    --vibe-turquoise: #6fd8d1;
    --vibe-turquoise-dark: #00504c;
    --vibe-taupe: #d4b99c;
    --vibe-canvas: #110b1c;
    --vibe-muted: #4a355b;
}

::selection {
    background: var(--vibe-turquoise);
    color: var(--vibe-ink);
}

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

body.fitness-body {
    background: #fafafa;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.fitness-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 20px 20px;
    text-align: left;
}

/* Header & Branding */
.fitness-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 0 0 12px;
    text-align: left;
}

.fitness-logo-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.fitness-header-copy {
    flex: 1 1 0;
    min-width: 0;
}

.fitness-title-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.fitness-logo {
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 50%;
    margin: 0;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.fitness-header h1 {
    font-size: 1.65em;
    margin: 0 0 2px;
    font-weight: 700;
    color: #111;
}

.fitness-subtitle {
    color: #777;
    font-size: 0.95em;
    margin: 0;
}

/* Nav Bar */
.class-nav {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.95em;
}

.class-nav-links {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.class-nav .class-nav-mobile-home {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: #333;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--vibe-turquoise);
    outline-offset: 2px;
}

.mobile-menu-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}

.mobile-menu-icon span {
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.class-nav a {
    color: #6fd8d1;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.class-nav a:hover {
    color: #d4b99c;
    text-decoration: underline;
}

/* Intro Card */
.intro-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.intro-box h2 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a202c;
}

.intro-box p {
    margin: 0 0 10px;
    color: #4a5568;
    line-height: 1.6;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

/* Class List / Cards */
.classes-heading {
    font-size: 1.35em;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-card {
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.class-card.is-sold-out {
    border-color: #f1aeb5;
    background: #fffdfd;
}

.class-card.is-cancelled {
    border-color: #ced4da;
    background: #f8f9fa;
    opacity: 0.85;
}

.class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.class-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.class-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.class-card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.class-price {
    font-size: 1.35em;
    font-weight: 700;
    color: var(--vibe-turquoise-dark);
    white-space: nowrap;
}

.class-card-meta {
    color: var(--vibe-muted);
    font-size: 0.85em;
}

.class-card-meta a,
.intro-box a,
.faq-answer a,
.brand-link {
    color: var(--vibe-turquoise-dark);
}

.class-card-meta a:hover,
.intro-box a:hover,
.faq-answer a:hover,
.brand-link:hover {
    color: var(--vibe-ink);
}

.class-address-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--vibe-turquoise-dark);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.class-address-link:hover {
    text-decoration: underline;
    color: var(--vibe-ink);
}

.class-datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #4b5563;
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 10px;
}

.class-datetime span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.class-location {
    color: #4b5563;
    font-size: 0.98em;
    margin-bottom: 12px;
    line-height: 1.4;
}

.class-location strong {
    color: #222;
}

.class-desc {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 16px;
    line-height: 1.5;
}

.class-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

/* Badges & Tags */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 600;
}

.badge-open {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-sold-out {
    background-color: #f8d7da;
    color: #842029;
}

.badge-cancelled {
    background-color: #e2e3e5;
    color: #41464b;
}

.badge-waitlist {
    background-color: #fff3cd;
    color: #664d03;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.98em;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-height: 42px;
}

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

.btn-primary {
    background-color: #111827;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #374151;
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background-color: #d1d5db;
    text-decoration: none;
}

.btn-online-payment {
    background-color: var(--vibe-plum);
    color: #ffffff;
    font-size: 1.05em;
    padding: 12px 24px;
}

.btn-online-payment:hover {
    background-color: var(--vibe-ink);
    color: #ffffff;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

/* Forms */
.form-card {
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group label .required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--vibe-turquoise-dark);
    box-shadow: 0 0 0 3px rgba(111, 216, 209, 0.28);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.2s;
}

.payment-radio-label:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.payment-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-desc {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    margin-left: 28px;
    margin-top: -4px;
}

/* Alert Banners */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.96em;
    line-height: 1.5;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

/* Confirmation Page Box */
.confirmation-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.confirmation-card .check-icon {
    font-size: 3.5rem;
    color: #198754;
    line-height: 1;
    margin-bottom: 12px;
}

.confirmation-card h2 {
    font-size: 1.8em;
    margin: 0 0 8px;
    color: #111;
}

.reservation-number {
    display: inline-block;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.details-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    text-align: left;
}

.details-table th, .details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.details-table th {
    color: #64748b;
    font-weight: 600;
    width: 38%;
}

.details-table td {
    color: #1e293b;
    font-weight: 500;
}

/* FAQ Styles */
.faq-header {
    margin-bottom: 25px;
}
.faq-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 30px;
}
.faq-toc h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
    color: #1e293b;
}
.faq-toc ul {
    margin: 0;
    padding-left: 20px;
}
.faq-toc li {
    margin-bottom: 8px;
    line-height: 1.45;
}
.faq-toc a {
    color: var(--vibe-turquoise-dark);
    text-decoration: none;
    font-weight: 500;
}
.faq-toc a:hover {
    text-decoration: underline;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    scroll-margin-top: 25px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.faq-item:target {
    border-color: var(--vibe-turquoise-dark);
    box-shadow: 0 0 0 3px rgba(111, 216, 209, 0.28);
    background-color: #e9f4f2;
}
.faq-question {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15em;
    color: #0f172a;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.faq-answer {
    color: #334155;
    font-size: 0.98em;
    line-height: 1.65;
}
.faq-answer p {
    margin: 0 0 10px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer */
.fitness-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #888;
    text-align: center;
}

.fitness-footer a {
    color: #666;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .fitness-container {
        padding: 12px 15px 15px;
    }

    .fitness-header {
        gap: 10px;
        max-width: none;
        margin-bottom: 10px;
    }
    .fitness-logo {
        width: 48px;
        height: 48px;
    }
    .fitness-header h1 {
        font-size: 1.25em;
        margin: 0 0 2px;
    }
    .fitness-subtitle {
        font-size: 0.9em;
    }
    .class-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
    }
    .class-nav .class-nav-mobile-home {
        display: inline-flex;
    }
    .class-nav.has-mobile-menu > .mobile-menu-toggle {
        display: inline-flex;
    }
    .class-nav.has-mobile-menu .class-nav-links {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 10px;
    }
    .class-nav.has-mobile-menu.is-open .class-nav-links {
        display: flex;
    }
    .class-nav-links a {
        padding: 10px 12px;
        border-top: 1px solid #eaeaea;
    }
    .class-nav-links a:first-child {
        display: none;
    }
    .class-card {
        padding: 16px;
    }
    .class-card-header {
        gap: 6px;
    }
    .class-price {
        align-self: flex-start;
    }
    .class-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .class-footer .btn {
        width: 100%;
    }
}

body.fitness-body {
    background: var(--vibe-canvas);
    color: var(--vibe-ink);
}

.fitness-logo {
    background-color: #fff;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(17, 11, 28, 0.14);
}

.fitness-header h1,
.intro-box h2,
.class-card-title,
.confirmation-card h2,
.faq-question {
    color: var(--vibe-ink);
}

.fitness-header h1 {
    color: #fff;
}

.fitness-subtitle {
    color: var(--vibe-lavender);
}

.class-datetime,
.class-location,
.class-desc,
.faq-answer {
    color: var(--vibe-muted);
}

.class-nav {
    border-color: rgba(226, 214, 245, 0.3);
}

.class-nav a,
.faq-toc a {
    color: var(--vibe-turquoise);
}

.class-address-link {
    color: var(--vibe-turquoise-dark);
}

.class-nav a:hover {
    color: var(--vibe-taupe);
}

.class-address-link:hover {
    color: var(--vibe-ink);
}

.classes-heading {
    color: #fff;
    border-color: rgba(226, 214, 245, 0.3);
}

.class-nav a:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 3px solid var(--vibe-turquoise);
    outline-offset: 2px;
}

.intro-box,
.class-card,
.form-card,
.confirmation-card,
.faq-item,
.faq-toc,
.payment-radio-label {
    background-color: var(--vibe-taupe);
    border-color: rgba(17, 11, 28, 0.16);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(40, 25, 55, 0.06);
}

.intro-box,
.class-card,
.form-card,
.confirmation-card,
.faq-item,
.faq-toc,
.payment-radio-label {
    color: var(--vibe-ink);
}

.class-card:hover,
.faq-item:target {
    border-color: var(--vibe-plum);
    box-shadow: 0 8px 24px rgba(40, 25, 55, 0.1);
}

.faq-item:target {
    border-color: var(--vibe-turquoise-dark);
    background-color: #e9f4f2;
}

.class-price,
.faq-toc a {
    color: var(--vibe-turquoise-dark);
}

.back-link {
    color: var(--vibe-turquoise);
    text-decoration: none;
}

.back-link:hover {
    color: var(--vibe-lavender);
    text-decoration: underline;
}

.back-link:focus-visible {
    outline: 3px solid var(--vibe-turquoise);
    outline-offset: 3px;
}

.badge-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.class-footer,
.details-table th,
.details-table td,
.fitness-footer {
    border-color: #e5dced;
}

.fitness-footer {
    color: var(--vibe-lavender);
    border-color: rgba(226, 214, 245, 0.3);
}

.fitness-footer a {
    color: var(--vibe-taupe);
}

.btn-primary,
.btn-online-payment {
    background-color: var(--vibe-plum);
    color: #fff;
}

.btn-primary:hover,
.btn-online-payment:hover {
    background-color: var(--vibe-ink);
    color: #fff;
}

.btn-dark,
.btn-secondary,
.btn-outline {
    background-color: var(--vibe-lavender);
    border: 1px solid var(--vibe-plum);
    color: var(--vibe-ink);
}

.btn-dark:hover,
.btn-secondary:hover,
.btn-outline:hover {
    background-color: var(--vibe-plum);
    border-color: var(--vibe-plum);
    color: #fff;
}

.intro-box .btn,
.class-card .btn,
.form-card .btn,
.confirmation-card .btn,
.faq-toc .btn,
.faq-item .btn {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.intro-box .btn:hover,
.class-card .btn:hover,
.form-card .btn:hover,
.confirmation-card .btn:hover,
.faq-toc .btn:hover,
.faq-item .btn:hover {
    background-color: #29232f;
    border-color: #29232f;
    color: #fff;
}

.form-control:focus {
    border-color: var(--vibe-taupe);
    box-shadow: 0 0 0 3px rgba(212, 185, 156, 0.28);
}

.payment-radio-label {
    border-color: #e5dced;
    color: var(--vibe-ink);
}

.payment-radio-label:hover {
    border-color: var(--vibe-plum);
    background-color: #c6a887;
}

.alert-info {
    background-color: #f1eafa;
    border-color: #dfd1ed;
    color: var(--vibe-plum);
}

.faq-toc {
    background-color: var(--vibe-taupe);
    border-color: rgba(17, 11, 28, 0.16);
}

.faq-toc h3 {
    color: var(--vibe-ink);
}

.faq-item:target {
    background-color: #e9f4f2;
}
