/* Fitness with Hooman Class Reservation System - Public Stylesheet */
/* Matching fitness/index.html visual identity & design language */

*, *::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: 20px;
    text-align: left;
}

/* Header & Branding */
.fitness-header {
    text-align: center;
    margin-bottom: 25px;
}

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

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

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

/* Nav Bar */
.class-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.95em;
}

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

.class-nav a:hover {
    color: #000;
    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: 18px;
    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: #0d6efd;
    white-space: nowrap;
}

.class-address-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.class-address-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.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: #0070ba;
    color: #ffffff;
    font-size: 1.05em;
    padding: 12px 24px;
}

.btn-online-payment:hover {
    background-color: #005ea6;
    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: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.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;
}

/* 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: 15px;
    }
    .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%;
    }
}

