:root {
    --success: #22c55e;
    --danger: #ef4444;
    --panel: #0b0b0b;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.btn-filled-accent {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--bg-dark);
    border: 2px solid var(--accent);
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.25s ease;
}

.btn-filled-accent:hover {
    background: #facc15;
    border-color: #facc15;
    color: #050505;
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.35);
}

.conversion-bar {
    background: #0f0f0f;
    border-top: 1px solid rgba(234, 179, 8, 0.18);
    border-bottom: 1px solid rgba(234, 179, 8, 0.18);
}

.metric {
    border-left: 2px solid var(--accent);
    padding-left: 18px;
}

.metric strong {
    display: block;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.proof-card, .faq-item, .schedule-row, .benefit-row {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.proof-card {
    padding: 28px;
}

.star-rating {
    color: var(--accent);
    letter-spacing: 2px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: var(--accent);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.plan-note {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.28);
    color: #f8f8f8;
    border-radius: 8px;
}

.local-seo-panel {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: 8px;
}

.lead-status {
    display: none;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 18px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #dcfce7;
}

.sticky-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sticky-cta a {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.booking-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.phone-field {
    display: flex;
    align-items: center;
    background: #151515;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.phone-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(234, 179, 8, 0.15);
}

.phone-field span {
    color: var(--accent);
    font-weight: 800;
    padding: 0 14px;
    border-right: 1px solid #333;
}

.phone-field .dark-input {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.visually-hidden-field {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-select {
    position: relative;
}

.custom-select-toggle,
.custom-select-menu button,
.date-options button,
.custom-choice-grid button {
    width: 100%;
    border: 1px solid #333;
    background: #151515;
    color: var(--text-main);
    text-align: left;
    border-radius: 4px;
    padding: 13px 15px;
    transition: all 0.2s ease;
}

.custom-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
}

.custom-select-toggle:hover,
.custom-select.open .custom-select-toggle,
.date-options button:hover,
.date-options button.active,
.custom-choice-grid button:hover,
.custom-choice-grid button.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.18rem rgba(234, 179, 8, 0.12);
}

.custom-select-toggle i {
    color: var(--accent);
    font-size: 0.8rem;
}

.custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 8px;
    background: #0d0d0d;
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.custom-select.open .custom-select-menu {
    display: grid;
    gap: 6px;
}

.custom-select-menu button {
    border-color: transparent;
}

.custom-select-menu button:hover,
.custom-select-menu button.active {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.38);
    color: var(--accent);
}

.date-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.date-options button {
    min-height: 72px;
}

.date-options strong {
    display: block;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
}

.date-options span {
    display: block;
    color: #f5f5f5;
    font-size: 0.9rem;
}

.custom-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.custom-choice-grid button {
    text-align: center;
    min-height: 54px;
}

.custom-choice-grid i {
    color: var(--accent);
    margin-right: 6px;
}

.form-invalid {
    border-color: var(--danger) !important;
}

.field-error {
    color: #ff3333;
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.45rem;
}

.custom-select.form-invalid .custom-select-toggle,
.date-options.form-invalid,
.custom-choice-grid.form-invalid {
    border-color: var(--danger) !important;
}

.date-options.form-invalid,
.custom-choice-grid.form-invalid {
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 6px;
}

.form-locked-note {
    color: #fde68a;
    font-size: 0.9rem;
    margin-top: 12px;
}

.class-overlay {
    pointer-events: auto;
}

.class-card:focus-within .class-overlay {
    opacity: 1;
}

/* --- Cinematic UI Enhancements (Pillar 3) --- */
.global-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.global-loader.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(234, 179, 8, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.offline-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    transform: translateY(-100%);
    background: var(--danger);
    color: white;
    text-align: center;
    padding: 12px;
    z-index: 10000;
    transition: transform 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.offline-banner.visible { transform: translateY(0); }

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-left.is-visible { opacity: 1; transform: translateX(0); }

.btn-filled-accent:hover, .btn-accent:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3);
}
/* --- End Cinematic UI Enhancements --- */

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Typography downscaling */
    h1, .display-1, .display-4, .display-5 {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        line-height: 1.1;
    }
    h2, h3 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.2;
    }

    /* Brutal Mobile Responsiveness: 320px constraint */
    .dark-card, .class-card, .proof-card, .faq-item, .local-seo-panel, .content-card {
        max-width: 320px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .row.g-4,
    .row.g-5 {
        --bs-gutter-y: 0.9rem;
        --bs-gutter-x: 0.75rem;
    }

    .mb-5 {
        margin-bottom: 1.55rem !important;
    }

    .pb-4 {
        padding-bottom: 0.35rem !important;
    }

    .hero-section {
        min-height: auto !important;
        background-attachment: scroll !important;
        padding-top: 74px !important;
        padding-bottom: 22px !important;
        background-position: center top !important;
        align-items: flex-start !important;
    }

    .hero-section .d-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }

    .hero-section .btn {
        width: 100%;
        padding: 0.6rem 0.55rem !important;
        font-size: 0.82rem !important;
        min-height: 40px;
    }

    .hero-section .display-1 {
        font-size: clamp(2.25rem, 11vw, 3.15rem);
        line-height: 0.95;
        margin-bottom: 1rem !important;
    }

    .hero-section .lead {
        font-size: 1.05rem !important;
        line-height: 1.35;
        margin-bottom: 1.1rem !important;
    }

    .tag-pill {
        font-size: 0.72rem;
        padding: 6px 10px;
        margin-bottom: 0.8rem !important;
    }

    section[style*="padding-top: 100px"],
    section[style*="padding-top: 90px"],
    section[style*="padding-top: 80px"] {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    .display-4,
    .display-5 {
        font-size: 2.15rem;
        line-height: 1.05;
    }

    .btn,
    .btn-accent,
    .btn-filled-accent {
        padding: 0.62rem 0.9rem !important;
        font-size: 0.9rem !important;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
    }

    .pricing-pro {
        transform: none !important;
        margin-top: 10px;
    }

    .sticky-cta {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .sticky-cta a {
        flex: 1;
        min-height: 44px;
        padding: 0.65rem 0.8rem !important;
    }

    footer {
        padding-top: 28px !important;
        padding-bottom: 76px !important;
    }

    footer .row {
        --bs-gutter-y: 1rem;
    }

    footer .d-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }

    footer .btn {
        width: 100%;
        min-height: 36px;
        padding: 0.48rem 0.5rem !important;
        font-size: 0.78rem !important;
    }

    footer h4 {
        font-size: 1.45rem;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem !important;
    }

    footer p {
        font-size: 0.9rem;
        margin-bottom: 0.35rem !important;
    }

    .contact-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }

    .contact-actions .btn {
        width: 100%;
        min-height: 40px;
        padding: 0.55rem 0.5rem !important;
        font-size: 0.84rem !important;
    }

    .contact-icon-box {
        width: 42px !important;
        height: 42px !important;
        margin-right: 0.75rem !important;
    }

    .contact-icon-box + div h4 {
        margin-bottom: 0.15rem !important;
    }

    iframe {
        height: 235px;
    }

    .schedule-row {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
        align-items: center;
        padding: 14px 16px !important;
    }

    .schedule-row strong {
        display: block;
        grid-column: 1 / -1;
        line-height: 1.25;
    }

    .schedule-row span {
        display: block;
        line-height: 1.25;
        font-size: 0.92rem;
    }

    .schedule-row .btn {
        min-height: 34px;
        padding: 0.38rem 0.65rem !important;
        font-size: 0.78rem !important;
        width: auto;
        align-self: center;
    }

    .date-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .date-options button {
        min-height: 58px;
        padding: 9px 8px;
    }

    .date-options strong {
        font-size: 0.92rem;
    }

    .date-options span {
        font-size: 0.78rem;
    }

    .custom-choice-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .custom-select-toggle,
    .custom-select-menu button,
    .custom-choice-grid button {
        min-height: 44px;
        padding: 10px 12px;
    }

    .dark-card.p-5 {
        padding: 1rem !important;
    }

    .dark-card {
        border-radius: 8px;
    }

    .dark-card .icon-wrapper {
        margin-bottom: 0.85rem !important;
    }

    .dark-card .icon-wrapper i {
        font-size: 2.35rem !important;
    }

    .dark-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.55rem !important;
    }

    .dark-card p,
    .dark-card li {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .dark-card ul {
        margin-left: 0 !important;
        margin-bottom: 1.15rem !important;
    }

    .dark-card li {
        margin-bottom: 0.52rem !important;
    }

    .dark-card .display-4 {
        font-size: 2.6rem;
        margin-bottom: 1rem !important;
    }

    .trainer-img {
        width: 118px !important;
        height: 118px !important;
        margin-bottom: 1rem !important;
    }

    .dark-card.p-4 {
        padding: 1.25rem !important;
    }

    .dark-card:has(.trainer-img) {
        max-width: 318px;
        margin-left: auto;
        margin-right: auto;
    }

    .dark-card .btn-accent {
        color: var(--accent) !important;
        opacity: 1 !important;
        min-height: 42px;
        padding: 0.6rem 0.85rem !important;
    }

    .dark-card .btn-accent:hover {
        color: var(--bg-dark) !important;
    }

    .trainer-social a {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }
}

@media (hover: none) {
    .class-overlay {
        position: relative;
        opacity: 1;
        min-height: 190px;
    }

    .class-overlay h3,
    .class-overlay p {
        transform: none !important;
        opacity: 1 !important;
    }
}
