/* ===================================
   RACING PARTNERS v2 — DESIGN SYSTEM
   Modern Luxury Hospitality
   =================================== */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Brand Palette */
    --rose: #C06B74;
    --rose-dark: #A35660;
    --rose-light: #F0DDE0;
    --rose-pale: #FAF4F5;

    /* Neutrals (warm-toned) */
    --white: #FFFFFF;
    --cream: #FAF9F7;
    --sand: #F2EFEB;
    --stone: #9E9A95;
    --graphite: #5C5856;
    --charcoal: #2C2926;
    --black: #1A1816;

    /* Borders */
    --border: #E8E5E0;
    --border-dark: #D4D0CA;

    /* Functional */
    --success: #4A8C6A;
    --success-light: #EAF5EF;
    --warning: #D4912A;
    --warning-light: #FFF5E6;
    --error: #C94444;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    /* Spacing scale */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26,24,22,0.04);
    --shadow-md: 0 4px 20px rgba(26,24,22,0.06);
    --shadow-lg: 0 8px 40px rgba(26,24,22,0.08);
    --shadow-xl: 0 16px 60px rgba(26,24,22,0.1);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration: 0.3s;
    --duration-slow: 0.5s;

    /* Layout */
    --container: clamp(10rem, 90vw, 100rem);
    --header-h: 80px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--duration) var(--ease); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--rose);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--rose-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(192,107,116,0.3);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--charcoal);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--border-dark);
}

.btn-outline:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: all var(--duration) var(--ease);
}

/* Transparent on hero */
.header--transparent {
    background: transparent;
}

.header--transparent .nav-link,
.header--transparent .header-cart {
    color: var(--white);
}

.header--transparent .nav-link:hover {
    color: var(--rose-light);
}

/* Solid on scroll */
.header--solid {
    background: rgba(250,249,247,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header--solid .nav-link,
.header--solid .header-cart {
    color: var(--charcoal);
}

.header--solid .nav-link:hover {
    color: var(--rose);
}

.header--solid .logo-light { display: none; }
.header--solid .logo-dark { display: block; }

.header--transparent .logo-light { display: block; }
.header--transparent .logo-dark { display: none; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width var(--duration) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: color var(--duration) var(--ease);
}

.header-cart:hover {
    color: var(--rose);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-cta {
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: all var(--duration) var(--ease);
}

.header--transparent .menu-toggle span { background: var(--white); }
.header--solid .menu-toggle span { background: var(--charcoal); }

.menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile nav drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 100px 2rem 2rem;
    transition: right var(--duration-slow) var(--ease);
    overflow-y: auto;
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,24,22,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--black);
    border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover {
    color: var(--rose);
}

.mobile-nav-cta {
    margin-top: var(--space-xl);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    max-width: 300px;
    margin-top: var(--space-md);
    line-height: 1.7;
}

.footer-brand .logo img {
    height: 36px;
    /* Invert or use light logo version */
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    padding: 0.3rem 0;
}

.footer-col a:hover {
    color: var(--rose-light);
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--duration) var(--ease);
}

.footer-social:hover {
    border-color: var(--rose);
    color: var(--rose-light);
    background: rgba(255,255,255,0.05);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-legal a,
.footer-legal-menu a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.footer-legal a:hover,
.footer-legal-menu a:hover {
    color: rgba(255,255,255,0.7);
}

/* Footer nav menu styles */
.footer-menu {
    display: flex;
    flex-direction: column;
}

.footer-menu li a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    padding: 0.3rem 0;
    transition: color var(--duration) var(--ease);
}

.footer-menu li a:hover {
    color: var(--rose-light);
}

.footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-menu li a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    transition: color var(--duration) var(--ease);
}

.footer-legal-menu li a:hover {
    color: rgba(255,255,255,0.7);
}

/* ===================================
   RESPONSIVE — TABLET (768px+)
   =================================== */
@media (min-width: 640px) {
    .contact-form .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav { display: flex; }
    .menu-toggle { display: none; }
    .mobile-nav, .mobile-nav-overlay { display: none; }
    .header-cta { display: inline-flex; }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ===================================
   RESPONSIVE — LARGE (1440px+)
   =================================== */
/* --container uses clamp(10rem, 90vw, 100rem) — no override needed at large breakpoints */

/* Body lock for open nav */
body.nav-open { overflow: hidden; }

/* Button success state */
.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: var(--white) !important;
}

/* ===================================
   SECTION LABELS & HEADERS
   =================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rose);
    margin-bottom: var(--space-lg);
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--rose);
}

.section-intro { max-width: 600px; }
.section-intro p { margin-top: var(--space-md); font-size: 1.0625rem; }

.section-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* ===================================
   IMAGE PLACEHOLDER
   =================================== */
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--sand) 0%, var(--border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   PAGE HERO (inner pages)
   =================================== */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + var(--space-4xl)) 0 var(--space-3xl);
    background: var(--black);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(192,107,116,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.page-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.0625rem;
    max-width: 560px;
}

.page-hero-intro {
    margin-top: var(--space-md);
    max-width: 620px;
}

.page-hero-intro p {
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--space-sm);
}

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

.page-hero-sm {
    padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-xl);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--space-lg);
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--rose-light); }

.breadcrumb svg {
    width: 12px;
    height: 12px;
    opacity: 0.4;
}

/* ===================================
   TRUST SIGNALS
   =================================== */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--stone);
    font-weight: 500;
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--success);
    flex-shrink: 0;
}

/* ===================================
   EVENT SINGLE — TWO-COLUMN LAYOUT
   =================================== */
.tk-layout {
    display: grid;
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0;
}

.tk-gallery {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
    background: var(--sand);
}

.tk-gallery img,
.tk-gallery .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tk-gallery-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.tk-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.tk-title-block h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.3rem;
}

.tk-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--stone);
    margin-top: var(--space-sm);
}

.tk-subtitle span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tk-subtitle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tk-description p { margin-bottom: var(--space-md); }

/* What's included list */
.tk-includes {
    display: grid;
    gap: var(--space-sm);
}

.tk-includes li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--charcoal);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.tk-includes li:last-child { border-bottom: none; }

.tk-includes li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

.tk-includes-extra-wrap {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--border);
}

.tk-includes-extra-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rose);
    margin-bottom: var(--space-sm);
}

.tk-includes-extra li svg {
    color: var(--rose);
}

/* Booking card */
.tk-book-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.tk-book-card h3 {
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.tk-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.tk-price-main {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.tk-price-unit {
    font-size: 0.875rem;
    color: var(--stone);
}

/* Ticket tier selector */
.tk-types {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tk-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.tk-type:hover { border-color: var(--rose-light); }

.tk-type.selected {
    border-color: var(--rose);
    background: var(--rose-pale);
}

.tk-type-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.tk-type-info p {
    font-size: 0.75rem;
    color: var(--stone);
    margin: 0;
}

.tk-type-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--black);
    white-space: nowrap;
}

.tk-type-price-req {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--rose);
}

.tk-type-left {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rose);
    margin-top: 0.15rem !important;
}

.tk-type.soldout {
    opacity: 0.55;
    cursor: not-allowed;
}

.tk-type.soldout:hover { border-color: var(--border); }

.tk-type-sold {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.15rem !important;
}

/* Quantity selector */
.qty-select {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--charcoal);
    transition: background var(--duration) var(--ease);
}

.qty-btn:hover { background: var(--sand); }

.qty-input {
    width: 44px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tk-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.tk-qty-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
}

.tk-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

.tk-subtotal strong {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===================================
   EVENT CARDS (related events / homepage grid)
   =================================== */
.events-preview { padding: var(--space-4xl) 0; }

.event-cards {
    display: grid;
    gap: var(--space-lg);
}

.event-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    color: inherit;
    text-decoration: none;
}

.event-card:hover {
    border-color: var(--rose-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.event-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--sand) 0%, var(--border) 100%);
}

.event-card-img img,
.event-card-img .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-date {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow-md);
}

.event-card-date .day {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.event-card-date .month {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rose);
}

.event-card-body { padding: var(--space-lg); }

.event-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.event-card-venue {
    font-size: 0.8125rem;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--black);
}

.event-card-price span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--stone);
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-rose {
    background: var(--rose-light);
    color: var(--rose-dark);
}

.tag-dark {
    background: var(--black);
    color: var(--white);
}

.tag-success {
    background: var(--success-light);
    color: var(--success);
}

.tag-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.tag-danger {
    background: #FEE9E9;
    color: var(--error);
}

.tag-info {
    background: var(--rose-pale);
    color: var(--rose-dark);
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--graphite);
}

/* ===================================
   [rp_upcoming_events] — EVENT CARDS
   Matches the homepage "Find your perfect race day" grid
   =================================== */
.rp-upcoming-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--space-lg);
}

.rp-upcoming-event-card {
    display: block;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    color: inherit;
    text-decoration: none;
}

.rp-upcoming-event-card:hover {
    border-color: var(--rose-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.rp-upcoming-event-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--sand) 0%, var(--border) 100%);
}

.rp-upcoming-event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rp-upcoming-event-body {
    padding: var(--space-lg);
}

.rp-upcoming-event-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.rp-upcoming-event-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.rp-upcoming-event-venue {
    font-size: 0.8125rem;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

.rp-upcoming-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rp-upcoming-event-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--black);
}

/* ===================================
   [rp_events] — EVENTS LISTING
   Matches the /events/ calendar page
   =================================== */

/* Filter bar */
.cal-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.cal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.cal-filter {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--graphite);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.cal-filter:hover {
    border-color: var(--rose-light);
    color: var(--rose);
}

.cal-filter.active {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
}

/* Event list */
.cal-events {
    display: grid;
    gap: var(--space-md);
}

.cal-event-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    align-items: center;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
}

.cal-event-row:hover {
    border-color: var(--rose-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cal-event-date {
    text-align: center;
    flex-shrink: 0;
}

.cal-event-date .day {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
}

.cal-event-date .month {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rose);
}

.cal-event-date .year {
    display: block;
    font-size: 0.625rem;
    color: var(--stone);
}

.cal-event-info h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.2rem;
}

.cal-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin-top: 0.3rem;
}

.cal-event-meta span {
    font-size: 0.8125rem;
    color: var(--stone);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cal-event-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.cal-event-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    grid-column: 1 / -1;
}

.cal-event-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--black);
}

.cal-event-price small {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--stone);
}

.cal-no-events {
    font-size: 0.9375rem;
    color: var(--stone);
    padding: var(--space-3xl) 0;
    text-align: center;
}

/* Search bar */
.cal-search {
    position: relative;
    min-width: 220px;
}

.cal-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--stone);
    pointer-events: none;
}

.cal-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.8125rem;
    font-family: var(--font-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--charcoal);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.cal-search input:focus {
    border-color: var(--rose-light);
}

/* Month navigation */
.cal-month-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-lg);
    margin: var(--space-xl) 0 var(--space-sm);
}

.cal-month-label {
    font-size: 1.125rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--black);
    min-width: 240px;
    text-align: center;
    margin: 0;
}

.cal-month-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--graphite);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-size: 1rem;
    line-height: 1;
}

.cal-month-btn:hover:not(:disabled) {
    border-color: var(--rose-light);
    color: var(--rose);
}

.cal-month-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Results counter */
.cal-results {
    font-size: 0.875rem;
    color: var(--stone);
    text-align: left;
    margin-bottom: var(--space-xl);
}

.cal-results strong {
    color: var(--charcoal);
}

/* ===================================
   ENQUIRY PAGE
   =================================== */
.enq-layout {
    display: grid;
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0 var(--space-4xl);
}

/* Summary / selection card */
.conf-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.conf-card h3 {
    font-size: 0.8125rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone);
    margin-bottom: var(--space-lg);
}

.conf-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.conf-detail-row:last-child {
    border-bottom: none;
}

.conf-detail-row span:first-child {
    color: var(--stone);
    flex-shrink: 0;
}

.conf-detail-row span:last-child {
    color: var(--charcoal);
    font-weight: 500;
    text-align: right;
}

/* Enquiry form card */
.pkg-enquiry-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.pkg-enquiry-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Contact form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: var(--space-md);
}

.contact-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--charcoal);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--duration) var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--rose-light);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--stone);
    text-align: center;
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.form-error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    color: #b91c1c;
    font-size: 0.875rem;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* ===================================
   CONFIRMATION PAGE
   =================================== */
.conf-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-3xl) 0 var(--space-4xl);
    text-align: center;
}

.conf-wrapper h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.conf-wrapper > p {
    font-size: 1.0625rem;
    color: var(--graphite);
    margin-bottom: var(--space-2xl);
}

.conf-wrapper .conf-card {
    text-align: left;
    margin-bottom: var(--space-2xl);
}

.conf-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
}

.conf-icon svg {
    width: 28px;
    height: 28px;
    color: #16a34a;
}

.conf-next-steps {
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.conf-next-steps h3 {
    font-size: 0.8125rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone);
    margin-bottom: var(--space-lg);
}

.conf-step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.conf-step:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.conf-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.conf-step strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.conf-step p {
    font-size: 0.875rem;
    color: var(--stone);
    margin: 0;
}

.conf-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   RESPONSIVE — TABLET (768px+)
   =================================== */
@media (min-width: 768px) {
    .cal-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .cal-event-row {
        grid-template-columns: 80px 1fr auto;
    }

    .cal-event-actions {
        flex-direction: column;
        align-items: flex-end;
        margin-top: 0;
        grid-column: auto;
    }

    .tk-includes {
        grid-template-columns: 1fr 1fr;
    }

    .event-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   RESPONSIVE — DESKTOP (1024px+)
   =================================== */
@media (min-width: 1024px) {
    .cal-event-row {
        grid-template-columns: 80px 1fr auto;
    }

    .event-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .tk-layout {
        grid-template-columns: 1fr 400px;
    }

    .enq-layout {
        grid-template-columns: 1fr 440px;
        align-items: start;
    }

    .fix-layout {
        grid-template-columns: 320px 1fr;
    }
}

/* ===================================
   FIXTURES — Locations & fixture lists
   =================================== */

/* Locations directory grid (archive) */
.fix-loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.fix-loc-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.fix-loc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.fix-loc-img {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.fix-loc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fix-loc-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

.fix-loc-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: var(--space-lg);
}

.fix-loc-body h3 {
    font-size: 1.25rem;
    margin: 0;
}

.fix-loc-region {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--stone);
    margin: 0;
}

.fix-loc-region svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.fix-loc-next {
    font-size: 0.875rem;
    color: var(--charcoal);
    margin: 0;
}

.fix-loc-counts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--graphite);
    margin: 0 0 0.25rem;
}

.fix-loc-counts strong {
    color: var(--rose-dark);
}

.fix-loc-next-empty {
    color: var(--stone);
    font-style: italic;
}

.fix-loc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rose);
}

.fix-loc-link svg {
    width: 14px;
    height: 14px;
}

/* Single location layout */
.fix-layout {
    display: grid;
    gap: var(--space-2xl);
    align-items: start;
}

.fix-sidebar-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.fix-sidebar-img img {
    width: 100%;
    height: auto;
    display: block;
}

.fix-sidebar-desc {
    font-size: 0.9375rem;
    color: var(--graphite);
    margin-bottom: var(--space-lg);
}

.fix-meta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.fix-meta-card h3 {
    font-size: 0.8125rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

.fix-list-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.rc-events-intro {
    color: var(--graphite);
    margin: calc(-1 * var(--space-md)) 0 var(--space-xl);
}

/* Racecourse events/fixtures tabs */
.fix-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--rose-light);
}

.fix-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--stone);
    cursor: pointer;
    transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.fix-tab:hover {
    color: var(--charcoal);
}

.fix-tab.is-active {
    color: var(--rose-dark);
    border-bottom-color: var(--rose);
}

.fix-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: var(--radius-pill);
    background: var(--rose-pale);
    color: var(--rose-dark);
    font-size: 0.8125rem;
    font-weight: 700;
}

.fix-tab.is-active .fix-tab-count {
    background: var(--rose);
    color: var(--white);
}

/* The tab title is redundant once JS tabs are active */
.fix-tabbed.js-tabs .fix-panel-title {
    display: none;
}

/* Without JS, both panels stack (progressive enhancement) */
.fix-tabbed.js-tabs .fix-tab-panel {
    display: none;
}

.fix-tabbed.js-tabs .fix-tab-panel.is-active {
    display: block;
}

.fix-tabbed:not(.js-tabs) .fix-tab-panel + .fix-tab-panel {
    margin-top: var(--space-3xl);
}

/* Fixtures filter / sort controls */
.fix-sort {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}
[data-fix-filter] .cal-controls,
[data-evt-filter] .cal-controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
}.fix-sort-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fix-sort-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--stone);
}

.fix-sort select {
    padding: 0.5rem 2rem 0.5rem 0.9rem;
    font-size: 0.8125rem;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E9A95' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 14px;
    transition: border-color var(--duration) var(--ease);
}

.fix-sort select:focus {
    border-color: var(--rose-light);
}

.fix-no-results {
    font-size: 0.95rem;
    color: var(--graphite);
    padding: var(--space-xl) 0;
}

/* List pagination */
.fix-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.fix-page-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--rose);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--rose-dark);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.fix-page-btn:hover:not(:disabled) {
    background: var(--rose);
    color: var(--white);
}

.fix-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.fix-page-status {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--graphite);
}

.fix-course-link {
    color: var(--rose-dark);
    font-weight: 600;
    text-decoration: none;
}

.fix-course-link:hover {
    text-decoration: underline;
}

/* Fixtures list (single location) */
.fix-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-md);
}

.fix-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.fix-row:hover {
    border-color: var(--rose-light);
    box-shadow: var(--shadow-sm);
}

.fix-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--rose-pale);
    color: var(--rose-dark);
    line-height: 1;
}

.fix-date-day {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fix-date-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2px 0;
}

.fix-date-mon {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fix-info {
    min-width: 0;
}

.fix-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 1.0625rem;
    margin: 0 0 0.2rem;
}

.fix-when {
    font-size: 0.875rem;
    color: var(--stone);
    margin: 0;
}

.fix-action {
    flex-shrink: 0;
}

.fix-empty {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-xl);
}

.fix-empty p {
    color: var(--graphite);
    margin-bottom: var(--space-lg);
}

.fix-past-note {
    margin-top: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--stone);
    font-style: italic;
}

.fix-price-note {
    margin: var(--space-md) 0 0;
    font-size: 0.75rem;
    color: var(--stone);
    font-style: italic;
}

@media (max-width: 560px) {
    .fix-row {
        grid-template-columns: 52px 1fr;
        grid-template-areas:
            "date info"
            "action action";
    }

    .fix-date { grid-area: date; width: 52px; height: 52px; }
    .fix-info { grid-area: info; }
    .fix-action { grid-area: action; }
    .fix-action .btn { width: 100%; }
}

/* ===================================
   CONTACT FORM 7 — themed to match .contact-form
   =================================== */

/* CF7 wraps every field input in a span; make it fill the field width */
.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* CF7 adds a required asterisk via markup; style it subtly */
.contact-form label .wpcf7-not-valid-tip,
.contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #b91c1c;
}

/* Invalid field outline */
.contact-form .wpcf7-not-valid {
    border-color: #fca5a5 !important;
}

/* Submit button — inherit the theme button look */
.contact-form .wpcf7-submit {
    width: 100%;
    margin-top: var(--space-sm);
}

/* CF7 spinner sits next to the submit button */
.contact-form .wpcf7-spinner {
    margin: 0.5rem auto 0;
    display: block;
}

/* Response / status messages (success, error, validation summary) */
.contact-form .wpcf7-response-output {
    margin: var(--space-md) 0 0;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.contact-form .wpcf7-form.sent .wpcf7-response-output {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.contact-form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7-form.failed .wpcf7-response-output {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* ===================================
   HOMEPAGE CONTACT SECTION (v2.1 look)
   Self-contained — scoped to .contact-section / .form-card so it does
   not affect the enquiry-page .contact-form styling.
   =================================== */
.contact-section {
    padding: var(--space-5xl) 0;
}

.contact-section .contact-grid {
    display: grid;
    gap: var(--space-3xl);
}

.contact-section .contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-section .contact-info > p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-2xl);
}

.contact-section .contact-details {
    display: grid;
    gap: var(--space-lg);
}

.contact-section .contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-section .contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--rose-pale);
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-section .contact-item-icon svg {
    width: 18px;
    height: 18px;
}

.contact-section .contact-item h4 {
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-section .contact-item p {
    font-size: 0.875rem;
}

/* Form card (optional visual wrapper) */
.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border);
}

/* ---- Contact Form 7: styles scoped to the CF7 form itself ----
   These apply wherever the form is placed, with or without a .form-card
   wrapper, and whether you use .form-field divs or raw CF7 tags. */
.wpcf7-form .form-row {
    display: grid;
    gap: var(--space-md);
}

.wpcf7-form .form-field {
    margin-bottom: var(--space-md);
}

/* Field labels */
.wpcf7-form .form-field label,
.wpcf7-form > label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
}

/* CF7 wraps each field in a <p> by default — use it as field spacing */
.wpcf7-form p {
    margin: 0 0 var(--space-md);
}

/* CF7 converts markup line breaks into <br>; remove the gap they add
   between a field label and its input. */
.wpcf7-form .form-field br {
    display: none;
}

/* Inputs — any text-style control inside the CF7 form */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    transition: border-color var(--duration) var(--ease);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--rose);
    background: var(--white);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox row — supports .form-checkbox + CF7's acceptance/checkbox markup */
.wpcf7-form .form-checkbox,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 var(--space-lg);
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
    margin-left: 0;
}

/* CF7 checkbox labels should be inline, not the block field label */
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0;
    font-weight: 400;
}

.wpcf7-form .form-checkbox input,
.wpcf7-form input[type="checkbox"] {
    accent-color: var(--rose);
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wpcf7-form .form-checkbox span,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 0.8125rem;
    color: var(--stone);
    line-height: 1.5;
    font-weight: 400;
}

.wpcf7-form .form-note {
    font-size: 0.75rem;
    color: var(--stone);
    text-align: center;
    margin-top: var(--space-md);
}

/* CF7 wrapper integration */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #b91c1c;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #fca5a5 !important;
}

.wpcf7-form .wpcf7-spinner {
    margin: 0.5rem auto 0;
    display: block;
}

.wpcf7-form .wpcf7-response-output {
    margin: var(--space-md) 0 0;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

@media (min-width: 768px) {
    .contact-section .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .wpcf7-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}
