/* =========================================================
   TECKTONIQ GAMES — PREMIUM UI ENHANCEMENT LAYER
   Safe global enhancements only (NO layout breaking)
========================================================= */


/* ---------- DESIGN TOKENS ---------- */

:root {
    --primary: #00c853;
    --primary-dark: #009624;
    --secondary: #0d1224;
    --bg-main: #f0f5f9;
    --bg-card: #ffffff;
    --text-main: #191c23;
    --text-muted: #6b7280;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.14);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(.4, 0, .2, 1);
}


/* ---------- TYPOGRAPHY POLISH ---------- */

body {
    color: var(--text-main);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: 0.6px;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}


/* ---------- HEADER (GLASS + PREMIUM FEEL) ---------- */

header {
    backdrop-filter: blur(10px);
    background: rgba(34, 34, 34, 0.95);
}


/* NAV LINKS */

header nav ul li a {
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast);
}

header nav ul li a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

header nav ul li a:hover::after {
    transform: scaleX(1);
}


/* ---------- HERO BUTTON ---------- */

.hero-btn {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.hero-btn:hover {
    transform: translateY(-3px);
}


/* ---------- CARDS (SPORTS / VENUES / FEATURES) ---------- */

.sport-card,
.venue-card,
.feature-box {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.sport-card:hover,
.venue-card:hover,
.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}


/* SPORT IMAGE SMOOTH ZOOM */

.sport-card img {
    transition: transform var(--transition-smooth);
}

.sport-card:hover img {
    transform: scale(1.05);
}


/* ---------- SECTION HEADINGS ---------- */

.all-sports h2,
section.about h2 {
    position: relative;
}

.all-sports h2::after,
section.about h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 4px;
}


/* ---------- BUTTONS (GLOBAL) ---------- */

button,
.see-all-btn,
.submit-btn {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

button:hover,
.see-all-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.28);
}


/* ---------- FORMS ---------- */

input,
select {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.18);
}


/* ---------- ABOUT SECTION ---------- */

section.about {
    box-shadow: var(--shadow-soft);
}


/* ---------- FOOTER ---------- */

footer {
    background: linear-gradient(180deg, #1c1c1c, #0f0f0f);
}

footer a {
    position: relative;
}

footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

footer a:hover::after {
    transform: scaleX(1);
}


/* ---------- SMOOTH PAGE FEEL ---------- */

html {
    scroll-behavior: smooth;
}


/* ---------- MOBILE POLISH ---------- */

@media (max-width: 768px) {
    .hero-btn {
        padding: 14px 34px;
        font-size: 1.05rem;
    }
    .sport-label {
        font-size: 1rem;
    }
}


/* =========================================
   CENTER BOOK SLOT FORM (NO FUNCTIONAL CHANGE)
========================================= */


/* Center the whole booking section */

.merge-row {
    justify-content: center !important;
}


/* Ensure the form stays centered */

.centered-form {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}


/* Perfect visual balance */

.booking-form {
    margin: 0 auto;
}


/* When venues are hidden, keep form centered */

.venues-right-area {
    display: none;
}


/* ================================
   HEADER MENU — PERFECT CENTER
================================ */


/* Make header layout stable */

header {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}


/* Center the nav exactly */

header nav {
    justify-self: center;
}


/* Keep logo left */

header .logo {
    justify-self: start;
}


/* Nav spacing refinement */

header nav ul {
    gap: 45px;
}


/* ================================
   FOOTER — GLOBAL PROFESSIONAL STYLE
================================ */

footer {
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    color: #cfcfcf;
    text-align: center;
    padding: 22px 10px;
    font-size: 0.95rem;
}

footer p {
    margin: 6px 0;
}

footer a {
    color: #00c853;
    font-weight: 600;
    text-decoration: none;
    margin: 0 8px;
}

footer a:hover {
    color: #66ff9a;
}


/* =====================================
   FORCE SEE ALL BUTTON TO RIGHT CORNER
===================================== */

.see-all-btn {
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: 0;
    right: 0;
    align-self: flex-end;
}


/* Force parent to allow right alignment */

.all-sports {
    display: flex;
    flex-direction: column;
}


/* =====================================
   SEE ALL BUTTON — SMALL RIGHT NUDGE
===================================== */

.see-all-btn {
    margin-right: -65px;
    /* move slightly to right */
}


/* =====================================
   REMOVE GREEN UNDERLINE FROM HEADINGS
===================================== */

.all-sports h2::after,
section.about h2::after {
    display: none !important;
    content: none !important;
}


/* =====================================
   GLOBAL SECTION SPACING — CLEAN RHYTHM
===================================== */


/* All main sections */

main>section {
    margin-bottom: 70px;
}


/* All Sports section */

.all-sports {
    margin-top: 40px;
    margin-bottom: 80px;
}


/* About section */

section.about {
    margin-top: 0;
    margin-bottom: 80px;
}


/* Cards grid spacing consistency */

.sports-list {
    margin-top: 32px;
}


/* Reduce gap before footer */

footer {
    margin-top: 40px;
}


/* ================================
   MOBILE MENU — PREMIUM STYLE
================================ */


/* Hide mobile menu by default */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}


/* Mobile menu panel */

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #121212;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 999;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Mobile view */

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}


/* Active state */

.mobile-menu.show {
    display: flex;
}


/* =====================================
   MOBILE HEADER FIX — NO OVERLAP
===================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo should not shrink */

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* Push hamburger to right */

.menu-toggle {
    margin-left: auto;
    padding-left: 16px;
}


/* Mobile specific spacing */

@media (max-width: 768px) {
    .site-header {
        padding: 10px 16px;
    }
    .site-header .logo {
        font-size: 1.1rem;
    }
}


/* =====================================
   PREMIUM HAMBURGER ANIMATION
===================================== */

.menu-toggle {
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
}


/* Top line */

.menu-toggle span:nth-child(1) {
    top: 0;
}


/* Middle line */

.menu-toggle span:nth-child(2) {
    top: 10px;
}


/* Bottom line */

.menu-toggle span:nth-child(3) {
    top: 20px;
}


/* ===== OPEN STATE (X ICON) ===== */

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}


/* =====================================
   MOBILE MENU — DESKTOP-LIKE HOVER EFFECT
===================================== */

.mobile-menu a {
    position: relative;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.6px;
    transition: color 0.25s ease;
}


/* underline effect */

.mobile-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 2px;
    background: #00c853;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}


/* hover state */

.mobile-menu a:hover {
    color: #00c853;
}

.mobile-menu a:hover::after {
    transform: scaleX(1);
}


/* active / tapped state (mobile feel) */

.mobile-menu a:active {
    opacity: 0.85;
}


/* =====================================
   GLOBAL MOBILE STABILITY FIX
===================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}


/* =====================================
   MOBILE LAYOUT — PERFECT CENTERING
===================================== */

@media (max-width: 768px) {
    /* Main sections */
    section,
    .section,
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Cards grid fix */
    .sports-grid,
    .cards-grid,
    .venues-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }
    /* Individual cards */
    .sport-card,
    .venue-card,
    .game-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    /* Images inside cards */
    img,
    video {
        max-width: 100%;
        height: auto;
        display: block;
    }
    /* Hero section */
    .hero,
    .hero-content {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    /* Buttons */
    button,
    .btn,
    .see-all-btn {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    /* Header safety */
    .site-header {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    /* Mobile menu full width */
    .mobile-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}


/* =====================================
   MOBILE SLIDE FIX — FINAL & SAFE
===================================== */

@media (max-width: 768px) {
    /* Stop horizontal scrolling */
    html,
    body {
        overflow-x: hidden;
    }
    /* Fix header overflow on mobile */
    header {
        display: flex !important;
        grid-template-columns: unset !important;
    }
    /* Ensure buttons never overflow */
    .see-all-btn {
        margin-right: 0;
        max-width: 100%;
    }
}


/* =====================================
   MOBILE TIME SLOT FIX (NO CROP)
===================================== */

@media (max-width: 768px) {
    /* Time slot container */
    .time-slots,
    .time-slots-container,
    .available-slots {
        display: grid;
        grid-template-columns: 1fr;
        /* single column */
        gap: 12px;
        width: 100%;
    }
    /* Individual time buttons */
    .time-slot,
    .slot-btn,
    .time-button {
        width: 100%;
        max-width: 100%;
        padding: 12px 10px;
        font-size: 0.95rem;
        white-space: nowrap;
        text-align: center;
        border-radius: 999px;
    }
    /* Prevent overflow from parent */
    .booking-form,
    .form-group {
        overflow: hidden;
    }
}


/* =====================================
   CONTACT FORM — FORCE CENTER (MOBILE)
===================================== */

@media (max-width: 768px) {
    /* Entire contact section */
    .hero-contact,
    .contact-section,
    .contact-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    /* Send us a Message block */
    .contact-form,
    form {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    /* Each form field group */
    .contact-form .form-group,
    form .form-group {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    /* Inputs & textarea */
    .contact-form input,
    .contact-form textarea,
    form input,
    form textarea {
        width: 100%;
        display: block;
    }
    /* Button centered */
    .contact-form button,
    form button {
        display: block;
        margin: 16px auto 0 auto;
    }
    /* Headings */
    .contact-form h2,
    .contact-form h3,
    form h2,
    form h3 {
        text-align: center;
    }
}


/* =====================================
   MOBILE IMAGE — NO CROP (FINAL FIX)
===================================== */

@media (max-width: 768px) {
    /* Sports / Games cards images */
    .sport-card img,
    .game-card img,
    .venue-card img {
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
        background: #000;
        /* prevents ugly gaps */
    }
    /* If images are inside fixed-height wrappers */
    .sport-card,
    .game-card,
    .venue-card {
        height: auto !important;
    }
}


/* =====================================
   MOBILE CARDS — SAME SIZE, NO CROP
===================================== */

@media (max-width: 768px) {
    /* Card wrapper */
    .sport-card,
    .game-card,
    .venue-card {
        width: 100%;
        max-width: 360px;
        height: 260px;
        /* SAME HEIGHT FOR ALL */
        margin: 0 auto 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
        border-radius: 16px;
    }
    /* Image wrapper (important) */
    .sport-card img,
    .game-card img,
    .venue-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* keeps premium look */
        object-position: center;
        display: block;
    }
    /* Label overlay stays fixed */
    .sport-label,
    .card-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
}


/* ================================
   CONFIRM BOOKING — MATCH SEND MESSAGE
================================ */

.submit-btn {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    /* perfect center */
    padding: 14px 36px;
    background: #00c853;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 200, 83, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}


/* MOBILE SAFETY — NO OVERLAP */

@media (max-width: 768px) {
    .submit-btn {
        margin-bottom: 24px;
    }
}


/* ================================
   UNIVERSAL SPORT BANNER FIX
================================ */


/* Banner container */

.banner-row {
    display: flex;
    max-width: 1125px;
    margin: 40px auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* Desktop unified height ONLY */

@media (min-width: 901px) {
    .banner-row {
        height: 380px;
        /* premium uniform height */
    }
}


/* Banner image */

.banner-row img {
    width: 58%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Text container */

.banner-gradient-box {
    width: 42%;
    padding: 40px 36px;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Sport title */

.banner-gradient-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00c853;
    margin-bottom: 14px;
    line-height: 1.2;
}


/* Description text */

.banner-gradient-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}


/* ================================
   MOBILE FIX (MOST IMPORTANT)
================================ */

@media (max-width: 900px) {
    .banner-row {
        flex-direction: column;
        height: auto;
        /* 🔥 KEY FIX */
    }
    .banner-row img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }
    .banner-gradient-box {
        width: 100%;
        padding: 20px 18px 24px;
    }
    .banner-gradient-box h2 {
        font-size: 1.6rem;
    }
    .banner-gradient-box p {
        font-size: 0.95rem;
    }
}


/* =====================================
   UNIVERSAL CARD FIX – MOBILE ONLY
===================================== */

@media (max-width: 768px) {
    /* CARD CONTAINER */
    .venue-card,
    .sport-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 240px;
        max-height: 240px;
        overflow: hidden;
    }
    /* IMAGE – SAME SIZE ON MOBILE */
    .venue-card img,
    .sport-card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        flex-shrink: 0;
    }
    /* CARD CONTENT */
    .venue-card-info,
    .sport-label {
        flex: 1;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    /* TEXT SAFETY – NO OVERLAP */
    .venue-name,
    .sport-label {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .venue-location,
    .venue-rating {
        font-size: 0.9rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* =====================================
   MOBILE – SPORT BANNER CARD FIX
===================================== */

@media (max-width: 768px) {
    .banner-row {
        flex-direction: column;
        height: auto;
    }
    .banner-row img {
        width: 100%;
        height: auto;
        /* 🔥 IMPORTANT */
        max-height: 220px;
        object-fit: contain;
        /* 🔥 NO CROPPING */
        background: #000;
        /* clean edges */
    }
    .banner-gradient-box {
        width: 100%;
        padding: 18px 16px 20px;
        gap: 10px;
    }
    .banner-gradient-box h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .banner-gradient-box p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
    }
    .banner-gradient-box .location {
        margin-top: 6px;
        font-size: 0.9rem;
    }
}


/* ===============================
   MOBILE BANNER HARD FIX
================================ */

@media (max-width: 768px) {
    .banner-row {
        margin: 16px auto 20px !important;
        padding: 0 !important;
        border-radius: 14px;
    }
    .banner-row img {
        height: 200px !important;
        border-radius: 14px 14px 0 0;
    }
    .banner-gradient-box {
        padding: 16px 14px 18px !important;
    }
    .banner-gradient-box h2 {
        margin-top: 0 !important;
    }
}


/* =================================
   FULL-WIDTH MOBILE BANNER FIX
================================= */

@media (max-width: 768px) {
    .banner-row {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .banner-row img {
        width: 100% !important;
        height: 220px !important;
        border-radius: 0 !important;
        object-fit: cover;
    }
    .banner-gradient-box {
        width: 100% !important;
        padding: 18px 16px 22px !important;
    }
}


/* =====================================
   BANNER OVERFLOW & CUT FIX (FINAL)
===================================== */

.banner-row {
    height: auto !important;
    min-height: unset !important;
    align-items: stretch;
}

.banner-gradient-box {
    height: auto !important;
    min-height: unset !important;
}


/* Ensure text never gets hidden */

.banner-gradient-box p,
.banner-gradient-box .location {
    overflow: visible !important;
}


/* Mobile safety */

@media (max-width: 768px) {
    .banner-row {
        height: auto !important;
    }
    .banner-gradient-box {
        padding-bottom: 24px !important;
    }
}


/* ===============================
   HEADER BOTTOM SPACING FIX
================================ */

.site-header {
    margin-bottom: 14px;
}


/* Mobile only – slightly more space */

@media (max-width: 768px) {
    .site-header {
        margin-bottom: 18px;
    }
}


/* ===============================
   CONTACT PAGE CENTER ALIGN FIX
================================ */


/* Center the whole contact section */

.contact-section {
    max-width: 420px;
    margin: 0 auto 32px;
}


/* Center Get in Touch box */

.contact-info {
    text-align: center;
}


/* Spacing between info lines */

.contact-info .info-group {
    margin-bottom: 10px;
}


/* Links (phone, email) */

.contact-info a {
    color: #0a7cff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}


/* Social links alignment */

.contact-info p:last-child {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
}


/* Heading consistency */

.contact-info h2 {
    margin-bottom: 16px;
}


/* ===============================
   ABOUT PAGE – FEATURE BOX
   MOBILE ONLY FIX
================================ */

@media (max-width: 768px) {
    /* Container holding all feature boxes */
    .features,
    .features-container,
    .feature-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 420px;
        margin: 0 auto;
    }
    /* Individual feature card */
    .feature-box {
        background: #eaf8ea;
        border-radius: 16px;
        padding: 20px 16px;
        /* SAME HEIGHT ON MOBILE */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 220px;
        text-align: center;
    }
    /* Title */
    .feature-box h3 {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #0b5d2a;
    }
    /* Description */
    .feature-box p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #333;
    }
}


/* ===============================
   FIX: Venue placeholder alignment
=============================== */

#venue {
    text-align: left !important;
    /* 🔥 force left */
    padding-left: 16px;
    /* match others */
}


/* Placeholder alignment */

#venue::placeholder {
    text-align: left;
    color: #8a8a8a;
}


/* =====================================
   BOOK SLOT FORM – PERFECT ALIGNMENT
===================================== */

.booking-form input,
.booking-form select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    /* SAME padding */
    font-size: 15px;
    font-family: inherit;
    display: block;
    /* 🔥 IMPORTANT */
    line-height: 52px;
    /* 🔥 vertical centering */
    border: 2px solid #00c853;
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    text-align: left;
    /* 🔥 horizontal alignment */
}


/* Placeholder text */

.booking-form input::placeholder {
    color: #8a8a8a;
    font-size: 14.5px;
    line-height: 52px;
}


/* SELECT FIX */

.booking-form select {
    line-height: normal;
    /* select uses native text */
    padding-right: 44px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}


/* DATE INPUT FIX */

.booking-form input[type="date"] {
    line-height: normal;
    padding-right: 16px;
}


/* READONLY INPUTS (venue etc.) */

.booking-form input[readonly] {
    background-color: #fff;
    cursor: pointer;
}


/* Focus state */

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: #00a94f;
}


/* =====================================
   UNIFY INPUT / SELECT / DATE TEXT COLOR
===================================== */

.booking-form input,
.booking-form select {
    color: #666;
    /* 🔥 same as other fields */
    font-weight: 400;
}


/* Placeholder color */

.booking-form input::placeholder {
    color: #9a9a9a;
    font-weight: 400;
}


/* SELECT default option color */

.booking-form select {
    color: #9a9a9a;
    /* match placeholder look */
}


/* When select has a value */

.booking-form select:not([value=""]) {
    color: #666;
}


/* DATE input text color */

.booking-form input[type="date"] {
    color: #9a9a9a;
}


/* When date is selected */

.booking-form input[type="date"]:valid {
    color: #666;
}


/* Calendar icon consistency */

.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
}


/* ===============================
   FORM VALIDATION UI
=============================== */

.error-msg {
    color: #e53935;
    font-size: 12.5px;
    margin-top: 4px;
    display: none;
}

.input-error {
    border-color: #e53935 !important;
}

.input-success {
    border-color: #00c853 !important;
}


/* PERIOD BUTTONS */

.time-periods {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.period-btn {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    border: 2px solid #00C853;
    background: #fff;
    color: #00C853;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.period-btn.active,
.period-btn:hover {
    background: #00C853;
    color: #fff;
}


/* SLOT BUTTON */

.slot-btn {
    height: 52px;
    border-radius: 28px;
    border: 2px solid #007bff;
    background: #fff;
    color: #007bff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-btn.active,
.slot-btn:hover {
    background: #007bff;
    color: #fff;
}


/* MOBILE */

@media (max-width: 600px) {
    .time-periods {
        flex-direction: column;
    }
}


/* Selected slot style */

.slot-btn.active {
    background: #007bff;
    color: #fff;
}


/* ===============================
   TIME PERIOD BUTTONS – MOBILE FIX
================================ */

.time-periods {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}


/* Desktop stays same */

.period-btn {
    padding: 10px 18px;
    border-radius: 22px;
    border: 2px solid #00C853;
    background: #fff;
    color: #00C853;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.period-btn.active {
    background: #00C853;
    color: #fff;
}


/* ✅ MOBILE VIEW FIX */

@media (max-width: 600px) {
    .time-periods {
        flex-direction: column;
        /* stack vertically */
        gap: 12px;
    }
    .period-btn {
        width: 100%;
        /* full width */
        height: 46px;
        /* uniform height */
        border-radius: 26px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* ===== TIME ACCORDION ===== */

.time-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.time-header {
    width: 100%;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.time-section.active .time-header {
    background: #007bff;
    color: #fff;
}

.time-header .icon {
    font-size: 1.4rem;
    font-weight: bold;
}


/* Mobile polish */

@media (max-width: 600px) {
    .time-header {
        font-size: 1rem;
        padding: 12px 16px;
    }
}


/* Prevent layout shift when slots are hidden */

.slots-wrapper {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.35s ease;
}


/* =====================================================
   ✅ RESTORE ORIGINAL BOOK SLOT LAYOUT (CSS ONLY)
===================================================== */


/* Page container – keep everything centered */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Center heading */

.slot-title {
    text-align: center !important;
    width: 100%;
    margin: 40px 0 30px;
}


/* Center the form wrapper */

.merge-row {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
}


/* Form container */

.centered-form {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* Booking card – original size */

.booking-form {
    width: 480px;
    max-width: 95%;
    margin: 0 auto;
}


/* ❌ Remove bottom floating button effect */

.submit-btn {
    position: static !important;
    width: auto !important;
    padding: 14px 36px !important;
    margin: 20px auto 0 !important;
    display: block;
    border-radius: 25px;
}


/* ❌ Kill any full-width / sticky behavior */

.submit-btn,
.submit-btn:focus {
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}


/* Ensure button stays INSIDE form */

.booking-form .submit-btn {
    align-self: center;
}


/* Keep right-side venue area from shifting layout */

.venues-right-area {
    position: relative;
}


/* Mobile safety */

@media (max-width: 768px) {
    .booking-form {
        width: 94%;
    }
}


/* MAIN */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* TITLE */

.slot-title {
    margin: 40px 0 30px;
    text-align: center;
}


/* FORM WRAPPER */

.merge-row {
    width: 100%;
    display: flex;
    justify-content: center;
}


/* FORM CARD */

.centered-form {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}


/* FORM UI */

.booking-form {
    background: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.submit-btn {
    display: block;
    margin: 30px auto 10px;
    padding: 14px 42px;
    border-radius: 999px;
    background: #00c853;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 200, 83, 0.35);
}

@media (max-width: 768px) {
    .centered-form {
        max-width: 100%;
        padding: 0 14px;
    }
    .venues-right-area {
        width: 100%;
        margin-top: 20px;
    }
}


/* ===== BOOK SLOT DESKTOP FIX ===== */

main {
    display: block !important;
    width: 100%;
}


/* Heading */

.slot-title {
    width: 100%;
    text-align: center;
    margin: 40px auto 30px;
}


/* Force form below heading */

.merge-row {
    width: 100%;
}


/* Center the form */

.centered-form {
    max-width: 480px;
    width: 100%;
    margin: 0 auto !important;
}


/* Ensure form is normal flow */

.booking-form {
    width: 100%;
    display: block;
}


/* Center submit button */

.submit-btn {
    display: block !important;
    margin: 32px auto 0 !important;
    position: static !important;
}


/* FIELD GROUP SPACING */

.booking-form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}


/* INPUT / SELECT / DATE */

.booking-form input,
.booking-form select {
    margin-bottom: 12px;
}


/* TIME SECTION HEADING */

.booking-form label+.time-accordion {
    margin-top: 10px;
}


/* SPACE BETWEEN MAJOR SECTIONS */

.booking-form>label {
    margin-top: 22px;
}

.booking-form>label:first-child {
    margin-top: 0;
}

.time-accordion {
    margin-top: 12px;
    margin-bottom: 20px;
}

.submit-btn {
    margin-top: 28px !important;
}


/* ==============================
   TIME SLOTS — FINAL FIX
============================== */

.time-slots {
    width: 100%;
    max-width: 520px;
    margin: 12px auto 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    box-sizing: border-box;
}

.slot-btn {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: 2px solid #1e6bff;
    background: #fff;
    color: #1e6bff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
}

.slot-btn.active,
.slot-btn:hover {
    background: #1e6bff;
    color: #fff;
}


/* MOBILE SAFETY */

@media (max-width: 768px) {
    .time-slots {
        padding: 0 14px;
    }
    .slot-btn {
        font-size: 12.5px;
    }
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.slot-btn {
    width: 100%;
    min-width: 0;
}

.slots-wrapper {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.35s ease;
}

.slots-wrapper.show {
    opacity: 1;
    max-height: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    position: relative;
}

.form-group .error-msg {
    min-height: 16px;
    /* 🔥 KEY FIX */
}

.input-error {
    border-color: #e53935 !important;
}

.error-msg {
    transition: opacity 0.2s ease;
}


/* ===============================
   CONTACT FORM — MATCH BOOK SLOT SPACING
================================ */


/* Same vertical rhythm as booking-form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* 🔥 SAME visual spacing */
}


/* Each field group spacing */

.contact-form .form-group {
    margin-bottom: 0;
    /* gap controls spacing */
}


/* Label spacing (same as booking) */

.contact-form label {
    margin-bottom: 6px;
    font-weight: 600;
}


/* Input & textarea spacing (same as booking inputs) */

.contact-form input,
.contact-form textarea {
    margin-bottom: 9px;
}


/* Error message space (reserved but clean) */

.contact-form .error-msg {
    min-height: 16px;
}


/* ===============================
   BOOK SLOT — ERROR STYLE MATCH CONTACT
================================ */


/* Error text under inputs */

.booking-form .error-text,
.booking-form .error-msg {
    background: none !important;
    /* 🔥 remove block color */
    padding: 0 !important;
    margin-top: 4px;
    color: #e53935;
    /* 🔥 same red as contact */
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    display: none;
}

.slots-wrapper {
    display: none;
    margin-top: 14px;
}

.time-section.active+.slots-wrapper {
    display: block;
}


/* ===============================
   PREMIUM UI ANIMATION LAYER
   (SAFE – NO FUNCTIONAL CHANGES)
================================ */


/* Page fade-in */

body {
    animation: pageFade 0.6s ease-in-out;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Time section accordion */

.time-section {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.time-section.active {
    transform: scale(1.015);
}


/* Plus / Minus icon rotation */

.time-header .icon {
    transition: transform 0.35s ease;
}

.time-section.active .icon {
    transform: rotate(180deg);
}


/* Slots wrapper animation */

.slots-wrapper {
    overflow: hidden;
    animation: slotReveal 0.45s ease;
}

@keyframes slotReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Time slot buttons animation */

.slot-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.slot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
}


/* Active slot pop */

.slot-btn.active {
    animation: slotSelect 0.25s ease;
}

@keyframes slotSelect {
    0% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}


/* Form inputs focus animation */

.booking-form input,
.booking-form select {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
}


/* Submit button animation */

.submit-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 200, 83, 0.35);
}

.submit-btn:active {
    transform: scale(0.97);
}


/* Venue card animation (already fits your UI) */

.venue-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.venue-card:hover {
    transform: translateY(-4px);
}


/* Mobile safe */

@media (max-width: 768px) {
    .slot-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

.venues-right-area {
    width: 620px;
    min-height: 330px;
    display: none;
    /* hidden initially */
}

.venues-right-area.visible {
    display: flex;
    /* shown when sport selected */
}

.merge-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
    width: 100%;
    padding: 0 40px;
}

.centered-form {
    flex: 0 0 480px;
}

.venues-right-area {
    flex: 0 1 720px;
    max-width: 720px;
    display: none;
}

.venues-right-area.visible {
    display: block;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.venue-card {
    width: 100%;
}

@media (max-width: 900px) {
    .merge-row {
        flex-direction: column;
        gap: 32px;
        padding: 0 16px;
    }
    .centered-form,
    .venues-right-area {
        width: 100%;
        max-width: 100%;
    }
    .venues-grid {
        grid-template-columns: 1fr;
    }
    .venue-card {
        max-width: 360px;
        margin: 0 auto;
    }
}


/* =====================================
   DESKTOP FORCE SIDE-BY-SIDE LAYOUT
===================================== */

@media (min-width: 901px) {
    .merge-row {
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 48px;
        width: 100%;
        max-width: 1300px;
        margin: 0 auto;
    }
}

@media (min-width: 901px) {
    .venues-right-area {
        flex: 0 0 520px;
        /* ⬅ makes venues compact */
        max-width: 520px;
    }
}

@media (min-width: 901px) {
    .venues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .venue-card {
        padding: 14px;
        min-height: 145px;
    }
    .venue-card img {
        width: 170px;
        height: 90px;
    }
    .venue-name {
        font-size: 0.95rem;
    }
    .venue-address {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .venue-rating {
        font-size: 0.9rem;
    }
}

@media (min-width: 901px) {
    .centered-form {
        flex: 0 0 480px;
        max-width: 480px;
    }
}

@media (max-width: 900px) {
    .merge-row {
        gap: 32px;
    }
}


/* =====================================
   FIX TIME SLOT OVERLAP (MOBILE ONLY)
===================================== */

@media (max-width: 768px) {
    /* Slot wrapper must expand naturally */
    .slots-wrapper {
        max-height: none !important;
        overflow: visible !important;
    }
    /* Force single-column layout */
    .time-slots {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    /* Slot buttons must auto-size */
    .slot-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 44px;
        padding: 10px 12px !important;
        white-space: nowrap;
        line-height: normal;
    }
}

.time-slots {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 769px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    body main .venue-card {
        width: 245px !important;
        min-height: 165px;
        padding: 16px;
    }
    body main .venue-card img {
        width: 185px;
        height: 95px;
    }
}

@media (min-width: 901px) {
    body main .venues-right-area {
        animation: venueSlideIn 0.6s ease both;
    }
    @keyframes venueSlideIn {
        from {
            opacity: 0;
            transform: translateX(40px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.venues-right-area {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(80px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.venues-right-area.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.centered-form {
    transition: transform 0.6s ease;
}

.centered-form.shift-left {
    transform: translateX(-130px);
}


/* =====================================
   BOOK SLOT — DYNAMIC DESKTOP LAYOUT
===================================== */


/* Base layout */

.merge-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 56px;
    width: 100%;
}


/* Form default (CENTER) */

.centered-form {
    flex: 0 0 480px;
    transition: transform 0.6s ease;
}


/* Form slides LEFT when active */

.centered-form.shift-left {
    transform: translateX(-160px);
}


/* Venues hidden by default */

.venues-right-area {
    display: none;
    flex: 0 0 520px;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}


/* Venues visible */

.venues-right-area.visible {
    display: block;
    opacity: 1;
    transform: translateX(0);
}


/* Desktop only */

@media (max-width: 900px) {
    .centered-form.shift-left {
        transform: none;
    }
}


/* =====================================
   BOOK SLOT — DESKTOP LEFT / RIGHT FIX
===================================== */

@media (min-width: 901px) {
    /* Force row layout */
    .merge-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
        justify-content: center;
        gap: 56px;
        width: 100%;
        max-width: 1300px;
        margin: 0 auto;
    }
    /* FORM — LEFT */
    .centered-form {
        flex: 0 0 480px;
        max-width: 480px;
        margin: 0;
        order: 1;
        /* 👈 LEFT */
        transition: transform 0.6s ease;
    }
    /* VENUES — RIGHT */
    .venues-right-area {
        flex: 0 0 560px;
        max-width: 560px;
        order: 2;
        /* 👈 RIGHT */
    }
}


/* =====================================
   BOOK SLOT — GAP KILL (FINAL FIX)
===================================== */

@media (min-width: 901px) {
    /* Reduce space between form & venues */
    .merge-row {
        gap: 14px !important;
        /* 👈 tight & professional */
    }
    /* Pull venues slightly closer */
    .venues-right-area {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    /* Reduce internal grid spacing */
    .venues-grid {
        gap: 16px !important;
    }
}


/* =====================================
   BOOK SLOT — FINAL MICRO SPACING
===================================== */

@media (min-width: 901px) {
    /* Tighten the main container */
    .merge-row {
        justify-content: flex-start !important;
        max-width: 1040px !important;
        /* 🔥 THIS is the key */
        gap: 16px !important;
        /* small, premium gap */
        margin: 0 auto;
    }
    /* Lock widths so no extra flex space appears */
    .centered-form {
        flex: 0 0 560px !important;
    }
    .venues-right-area {
        flex: 0 0 560px !important;
    }
}

.venues-right-area {
    transform: translateX(20px) scale(1);
    /* 🔥 was 85px */
}

.centered-form.shift-left {
    transform: translateX(-30px);
}

.venues-right-area {
    transform: translateX(15px) scale(1);
}


/* =========================================
   GLOBAL FIX — REMOVE HEADER ↔ HERO GAP
   APPLIES TO ALL PAGES (FINAL)
========================================= */


/* Absolute reset */

* {
    margin: 0;
    padding: 0;
}


/* Body safety */

html,
body {
    margin: 0;
    padding: 0;
}


/* Header — no bottom gap */

header,
.site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* Direct element after header */

header+*,
.site-header+* {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Hero / Banner / Top sections */

.hero,
.hero-section,
.banner,
.banner-row,
.top-section,
.main-banner,
.page-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Sections generally (first section only) */

main>section:first-child,
main>div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Image baseline gap fix */

img {
    display: block;
}


/* =========================================
   FORCE VOLLEY CARDS TO MATCH BASKET CARDS
   INLINE STYLE OVERRIDE — DESKTOP ONLY
========================================= */

@media (min-width: 901px) {
    body .venue-grid {
        align-items: stretch !important;
    }
    body .venue-card {
        min-height: 380px !important;
        /* same as basket */
        display: flex !important;
        flex-direction: column !important;
    }
    body .venue-card img {
        height: 180px !important;
        /* override 140px */
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    body .venue-card-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
}

.hero-tagline {
    margin-top: 12px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.4px;
}

.hero-tagline {
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===============================
   CENTER IMAGES IN VENUE CARDS
================================ */

.venue-card img {
    display: block;
    margin: 0 auto;
    /* ✅ centers image */
    max-width: 100%;
    height: auto;
    object-fit: cover;
}


/* =====================================
   REDUCE VENUE CARD SIZE (DESKTOP ONLY)
   MATCH FORM HEIGHT
===================================== */

@media (min-width: 901px) {
    .venue-card {
        width: 240px;
        /* ⬅ slightly smaller */
        min-height: 150px;
        /* ⬅ reduced height */
        padding: 12px 12px 10px;
    }
    .venue-card img {
        width: 170px;
        height: 90px;
        /* ⬅ smaller image */
        margin-bottom: 8px;
    }
    .venue-name {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    .venue-address {
        font-size: 0.85rem;
        line-height: 1.25;
        margin-bottom: 4px;
    }
    .venue-rating {
        font-size: 0.9rem;
    }
    .venues-grid {
        gap: 16px;
        /* ⬅ tighter grid */
    }
}


/* ===============================
   LOGIN MODAL – PLAYO STYLE
================================ */

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.auth-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.auth-box {
    background: #fff;
    width: 360px;
    padding: 28px;
    border-radius: 16px;
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.auth-modal.show .auth-box {
    transform: translateY(0);
    opacity: 1;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
}

.auth-box input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    margin: 14px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.auth-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: #00c853;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}


/* ===============================
   PLAYO STYLE LOGIN MODAL
================================ */

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.auth-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.auth-container {
    width: 860px;
    max-width: 94%;
    height: 520px;
    background: #fff;
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}


/* LEFT */

.auth-left {
    flex: 1;
    background: #f5f7f9;
}

.auth-left {
    flex: 1;
    background: #f5f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* RIGHT */

.auth-right {
    flex: 1;
    padding: 36px 40px;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
}

.auth-right h2 {
    margin-bottom: 24px;
    font-size: 1.6rem;
}

.auth-label {
    font-size: .9rem;
    font-weight: 600;
}

.auth-label span {
    color: red;
}

.auth-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 14px 0 20px;
}

.country-code {
    margin-right: 8px;
    font-weight: 600;
}

.auth-input-group input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex: 1;
}

.auth-submit {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: #e0e0e0;
    font-weight: 600;
    cursor: not-allowed;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: .9rem;
}

.auth-alt {
    display: flex;
    gap: 14px;
}

.alt-btn {
    flex: 1;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}


/* MOBILE */

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
    }
    .auth-left {
        display: none;
    }
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
}

.country-select {
    border: none;
    background: transparent;
    font-weight: 600;
    margin-right: 8px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.google-btn img {
    width: 18px;
    height: 18px;
}


/* =====================================
   ALL SPORTS – PLAYO GRID (HOME PAGE)
===================================== */

.sports-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Tablet */

@media (max-width: 1024px) {
    .sports-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile */

@media (max-width: 640px) {
    .sports-list {
        grid-template-columns: 1fr;
    }
}


/* =====================================
   ALL SPORTS – PLAYO PERFECT FIX
===================================== */

.sports-list {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    /* 🔥 KEY FIXES */
    max-width: 1120px;
    /* fits 3 cards */
    margin: 0 auto;
    padding: 8px 12px 20px 12px;
    scroll-behavior: smooth;
}

.sport-card {
    width: 340px;
    /* 🔥 EXACT SIZE FOR 3 CARDS */
    height: 220px;
    flex-shrink: 0;
    /* prevents squeezing */
}

.sport-card-link {
    flex: 0 0 auto;
}


/* =====================================
   ALL SPORTS HEADER – PLAYO ALIGNMENT
===================================== */

.all-sports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    /* SAME AS SPORTS ROW */
    margin: 0 auto 20px;
    padding: 0 12px;
}

.all-sports-header h2 {
    margin: 0;
}


/* Button style stays same – ONLY ALIGNMENT */

.see-all-btn {
    margin: 0;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}


/* =====================================
   ABOUT TECKTONIQ GAMES – PREMIUM STYLE
===================================== */

.about-premium {
    background: linear-gradient(135deg, #e8f5e9, #f0f7ff);
    padding: 70px 20px;
}

.about-inner {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 50px 48px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    text-align: center;
}


/* Heading */

.about-premium h2 {
    font-size: 2.3rem;
    font-weight: 900;
    color: #191c23;
    margin-bottom: 20px;
    letter-spacing: 0.6px;
}


/* Accent underline */

.about-premium h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: #00c853;
    margin: 14px auto 0;
    border-radius: 4px;
}


/* Text */

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-top: 22px;
}

.about-text.muted {
    color: #6b7280;
}


/* Subtle hover lift */

.about-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .about-inner {
        padding: 36px 24px;
    }
    .about-premium h2 {
        font-size: 1.7rem;
    }
    .about-text {
        font-size: 1rem;
    }
}


/* =====================================
   HEADER NAV – PLAYO STYLE ICON MENU
===================================== */

header {
    background: #0f172a;
    /* premium dark blue */
    padding: 10px 32px;
}


/* Menu container */

.nav-icons {
    display: flex;
    gap: 22px;
    /* 🔥 compact spacing */
    align-items: center;
}


/* Menu link */

.nav-icons li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}


/* Icon */

.nav-icon {
    font-size: 1.1rem;
}


/* Hover like Playo */

.nav-icons li a:hover {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
}


/* Active page (optional) */

.nav-icons li a.active {
    background: rgba(0, 200, 83, 0.22);
    color: #00c853;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1rem;
    }
    .mobile-menu a::before {
        content: "•";
        color: #00c853;
        font-size: 1.2rem;
    }
}


/* =====================================
   MOBILE MENU – PLAYO PREMIUM STYLE
===================================== */

.mobile-menu {
    position: fixed;
    top: 64px;
    /* below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: #0f172a;
    /* premium dark */
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    gap: 6px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
}


/* Show state (JS already toggles .show) */

.mobile-menu.show {
    transform: translateX(0);
}


/* Mobile links */

.mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}


/* Icons */

.mobile-icon {
    font-size: 1.25rem;
}


/* Hover / tap effect */

.mobile-link:hover {
    background: rgba(0, 200, 83, 0.16);
    color: #00c853;
}


/* Divider */

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 14px 0;
}


/* Login highlight */

.login-link {
    background: rgba(0, 200, 83, 0.18);
    color: #00c853;
}


/* Active tap feel */

.mobile-link:active {
    transform: scale(0.98);
}


/* Hide desktop nav on mobile */

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}


/* =====================================
   HERO SECTION – MOBILE FIX
===================================== */

@media (max-width: 768px) {
    .hero {
        min-height: 360px;
        padding: 0 16px;
        text-align: center;
        align-items: center;
    }
    .hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.25;
    }
    .hero-tagline {
        font-size: 0.95rem;
        opacity: 0.9;
    }
    .hero-btn {
        margin-top: 14px;
        padding: 14px 28px;
        font-size: 1rem;
    }
}


/* =====================================
   MOBILE HEADER – LOGIN ICON FIX (CSS ONLY)
===================================== */

@media (max-width: 768px) {
    /* Header alignment */
    .site-header {
        height: 60px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    /* Hide login text on mobile */
    #openAuth span:last-child {
        display: none;
    }
    /* Make login icon circular */
    #openAuth {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        cursor: pointer;
    }
    #openAuth:hover {
        background: rgba(0, 200, 83, 0.25);
        color: #00c853;
    }
    /* Icon size */
    .auth-icon svg {
        width: 20px;
        height: 20px;
    }
}


/* =====================================
   MOBILE HEADER – FORCE FLEX (CRITICAL FIX)
===================================== */

@media (max-width: 768px) {
    header,
    .site-header {
        display: flex !important;
        /* 🔥 overrides grid */
        align-items: center !important;
        justify-content: space-between !important;
        height: 64px;
        padding: 0 14px;
    }
}

@media (max-width: 768px) {
    #openAuth {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.14);
    }
    /* Hide text */
    #openAuth span:last-child {
        display: none;
    }
    .auth-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
}


/* =====================================
   GLOBAL MOBILE HEADER FIX – ALL PAGES
===================================== */

@media (max-width: 768px) {
    /* Force header to behave same everywhere */
    header,
    .site-header {
        display: flex !important;
        /* 🔥 override grid */
        align-items: center !important;
        justify-content: space-between !important;
        height: 64px;
        padding: 0 14px;
    }
    /* Logo alignment */
    .site-header .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        line-height: 1;
    }
    /* Login icon */
    #openAuth {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.14);
    }
    /* Hide login text everywhere on mobile */
    #openAuth span:last-child {
        display: none;
    }
    .auth-icon svg {
        width: 20px;
        height: 20px;
    }
    /* Hamburger */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
}


/* =====================================================
   🔥 MOBILE HEADER – FORCE HOME PAGE STYLE (ALL PAGES)
===================================================== */

@media (max-width: 768px) {
    /* FORCE HEADER LOOK */
    header,
    .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 64px !important;
        padding: 0 14px !important;
        background: #0b132b !important;
        /* 🔥 SAME AS HOME */
        box-shadow: none !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    /* LOGO */
    header .logo,
    .site-header .logo {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }
    /* LOGIN ICON (CIRCLE) */
    #openAuth {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }
    /* HIDE LOGIN TEXT */
    #openAuth span:last-child {
        display: none !important;
    }
    /* LOGIN SVG COLOR */
    #openAuth svg {
        width: 18px !important;
        height: 18px !important;
        color: #ffffff !important;
    }
    /* HAMBURGER */
    .menu-toggle {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .menu-toggle span {
        background: #ffffff !important;
    }
}


/* =====================================================
   PREVENT PAGE-SPECIFIC HEADER OVERRIDES
===================================================== */

@media (max-width: 768px) {
    header[style],
    .site-header[style] {
        background: #0b132b !important;
    }
}


/* =====================================
   HERO HEADING ALIGNMENT – GLOBAL FIX
   Makes ALL hero headings match Home page
===================================== */


/* Force same alignment & layout */

.hero .hero-content {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}


/* Force hero heading style consistency */

.hero .hero-title,
.hero h1 {
    text-align: left !important;
    letter-spacing: -0.5px !important;
    font-weight: 800 !important;
}


/* Tagline consistency */

.hero .hero-tagline,
.hero p {
    text-align: left !important;
}


/* =====================================
   ABOUT PAGE – PREMIUM SECTION UPGRADE
   SAFE UI ONLY (NO FUNCTIONAL CHANGE)
===================================== */


/* Section container */

.about-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 48px 56px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}


/* Section headings */

.about-content h2 {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #0b5d2a;
    margin-bottom: 16px;
}


/* Paragraph text */

.about-content p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #444;
    max-width: 900px;
}


/* Spacing between blocks */

.about-content h2:not(:first-child) {
    margin-top: 46px;
}


/* Feature grid */

.features {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}


/* Feature cards */

.feature-box {
    background: linear-gradient( 180deg, #ecfdf3, #e3f8ea);
    border-radius: 18px;
    padding: 28px 26px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}


/* Card hover */

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}


/* Feature title */

.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a7c3a;
    margin-bottom: 14px;
}


/* Feature description */

.feature-box p {
    font-size: 0.97rem;
    line-height: 1.65;
    color: #333;
}


/* Mobile polish */

@media (max-width: 768px) {
    .about-content {
        padding: 36px 22px 40px;
    }
    .about-content h2 {
        font-size: 1.7rem;
    }
    .feature-box {
        padding: 22px 18px;
    }
}


/* =====================================
   ABOUT SECTION – PLAYO STYLE PREMIUM
===================================== */

.about-content {
    background: #ffffff;
    border-radius: 22px;
    padding: 56px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}


/* Section headings */

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0b5d2a;
    margin-bottom: 18px;
}


/* Text */

.about-content p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #444;
    max-width: 900px;
}


/* Space between sections */

.about-content h2:not(:first-child) {
    margin-top: 52px;
}


/* Feature grid */

.features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}


/* Feature cards */

.feature-box {
    background: linear-gradient(180deg, #ecfdf3, #e6f7ec);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: left;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}


/* Hover like Playo */

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}


/* Heading with icon */

.feature-box h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.28rem;
    font-weight: 800;
    color: #0a7c3a;
    margin-bottom: 14px;
}


/* Icon style */

.feature-icon {
    font-size: 1.6rem;
    background: #00c853;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 200, 83, 0.35);
    flex-shrink: 0;
}


/* Description */

.feature-box p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #333;
}


/* Mobile polish */

@media (max-width: 768px) {
    .about-content {
        padding: 36px 22px 42px;
    }
    .about-content h2 {
        font-size: 1.7rem;
    }
    .feature-box {
        padding: 26px 20px;
    }
}


/* ===================================== */


/* WHATSAPP FLOATING BUTTON (GLOBAL)     */


/* ===================================== */

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
    display: block;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}


/* MOBILE ADJUSTMENT */

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-float img {
        width: 26px;
        height: 26px;
    }
}


/* ===================================== */


/* TABLET HEADER ALIGNMENT FIX           */


/* Applies only to tablets               */


/* ===================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    header.site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 20px;
    }
    /* Logo */
    header.site-header .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.2rem;
        white-space: nowrap;
    }
    /* Navigation center fix */
    header.site-header nav.desktop-nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    header.site-header nav.desktop-nav ul {
        gap: 24px;
    }
    /* Login / Signup fix */
    .auth-btn {
        display: flex;
        align-items: center;
        white-space: nowrap;
        padding: 6px 14px;
    }
    /* Prevent wrapping */
    header.site-header * {
        flex-shrink: 0;
    }
}


/* =====================================
   BOOK SLOT – MOBILE & TABLET FINAL FIX
   SAFE | NO FUNCTIONAL CHANGE
===================================== */


/* ---------- MOBILE VIEW ---------- */

@media (max-width: 768px) {
    /* Main container spacing */
    body main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    /* Stack layout cleanly */
    .merge-row {
        flex-direction: column !important;
        align-items: center !important;
    }
    /* Center venue section */
    .venues-right-area {
        width: 100% !important;
        margin: 16px auto 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    /* Center venue cards */
    .venues-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100%;
    }
    .venue-card {
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }
}


/* ---------- TABLET VIEW ---------- */

@media (min-width: 769px) and (max-width: 1100px) {
    /* Prevent border touching */
    body main {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Balanced two-column layout */
    .merge-row {
        display: grid !important;
        grid-template-columns: 1.05fr 1.25fr;
        gap: 20px !important;
        max-width: 100%;
        margin: 0 auto !important;
    }
    /* Form spacing */
    .centered-form {
        margin-left: 8px !important;
    }
    /* Venue spacing */
    .venues-right-area {
        margin-right: 8px !important;
    }
    /* Venue grid clean */
    .venues-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .venue-card {
        width: 100% !important;
    }
}