/* ============================================================
   NeedATyre — Commercial Mobile Tyre Fitting
   Industrial-utilitarian aesthetic: rugged, direct, trustworthy
   ============================================================ */

/* --- Custom Properties --- */
:root {
    /* Colours */
    --clr-dark: #0f0f1a;
    --clr-dark-mid: #1a1a2e;
    --clr-dark-surface: #232340;
    --clr-grey-900: #2a2a3d;
    --clr-grey-700: #4a4a5e;
    --clr-grey-500: #7a7a8e;
    --clr-grey-300: #b0b0be;
    --clr-grey-100: #e8e8ee;
    --clr-grey-50: #f4f4f8;
    --clr-white: #ffffff;

    --clr-orange: #ff6b35;
    --clr-orange-hover: #e85a25;
    --clr-orange-glow: rgba(255, 107, 53, 0.15);
    --clr-orange-subtle: rgba(255, 107, 53, 0.08);

    --clr-blue: #2d7dd2;
    --clr-blue-light: rgba(45, 125, 210, 0.12);
    --clr-amber: #e5a100;
    --clr-amber-light: rgba(229, 161, 0, 0.12);
    --clr-green: #2d9f4e;
    --clr-green-light: rgba(45, 159, 78, 0.12);
    --clr-red: #d32f2f;
    --clr-red-light: rgba(211, 47, 47, 0.12);

    /* Typography */
    --font-display: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.25rem;
    --fs-hero: clamp(2.5rem, 6vw, 5rem);

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-normal: 1.6;

    /* Spacing */
    --sp-2xs: 0.25rem;
    --sp-xs: 0.5rem;
    --sp-sm: 0.75rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;
    --sp-section: clamp(3rem, 8vw, 6rem);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--clr-dark);
    background: var(--clr-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
}

button { cursor: pointer; }

table {
    border-collapse: collapse;
    width: 100%;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sp-lg);
    padding-right: var(--sp-lg);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-lg); }
h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-md); }
h4 { font-size: var(--fs-xl); margin-bottom: var(--sp-sm); }

p + p { margin-top: var(--sp-md); }

.text-center { text-align: center; }
.text-muted { color: var(--clr-grey-500); }
.text-sm { font-size: var(--fs-sm); }
.text-orange { color: var(--clr-orange); }

.section-label {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-orange);
    display: block;
    margin-bottom: var(--sp-sm);
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--clr-dark);
    border-bottom: 2px solid var(--clr-orange);
    transition: background var(--duration-normal) var(--ease-out);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--clr-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo .logo-accent {
    color: var(--clr-orange);
}

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-white);
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-fast);
    margin: 3px 0;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav links */
.nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--clr-dark);
    padding: var(--sp-xl) var(--sp-lg);
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
}

.nav-links.is-open {
    display: flex;
}

.nav-links a,
.nav-dropdown > button {
    display: block;
    padding: var(--sp-sm) 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    color: var(--clr-grey-300);
    text-decoration: none;
    border-bottom: 1px solid var(--clr-grey-900);
    transition: color var(--duration-fast);
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: none;
}

.nav-links a:hover,
.nav-dropdown > button:hover {
    color: var(--clr-orange);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > button::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: var(--sp-xs);
    vertical-align: middle;
    transition: transform var(--duration-fast);
}

.nav-dropdown.is-open > button::after {
    transform: rotate(-135deg);
}

.nav-dropdown-menu {
    display: none;
    padding-left: var(--sp-lg);
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    font-size: var(--fs-base);
    color: var(--clr-grey-500);
    border-bottom-color: transparent;
    padding: var(--sp-xs) 0;
}

.nav-dropdown-menu a:hover {
    color: var(--clr-orange);
}

/* Body offset for fixed nav */
.site-content {
    padding-top: var(--nav-height);
}

/* --- Desktop Nav --- */
@media (min-width: 1024px) {
    .nav-toggle { display: none; }

    .nav-links {
        display: flex;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--sp-xs);
        overflow: visible;
    }

    .nav-links a,
    .nav-dropdown > button {
        font-size: var(--fs-sm);
        padding: var(--sp-xs) var(--sp-sm);
        border-bottom: none;
        white-space: nowrap;
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--clr-dark-mid);
        border: 1px solid var(--clr-grey-900);
        border-top: 2px solid var(--clr-orange);
        padding: var(--sp-xs) 0;
        min-width: 200px;
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        display: block;
        padding: var(--sp-xs) var(--sp-lg);
        font-size: var(--fs-sm);
        color: var(--clr-grey-300);
        border: none;
    }

    .nav-dropdown-menu a:hover {
        background: var(--clr-orange-subtle);
        color: var(--clr-orange);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    letter-spacing: 0.02em;
    padding: var(--sp-sm) var(--sp-xl);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    line-height: var(--lh-snug);
    min-height: 48px;
}

.btn-primary {
    background: var(--clr-orange);
    color: var(--clr-white);
    border-color: var(--clr-orange);
}

.btn-primary:hover {
    background: var(--clr-orange-hover);
    border-color: var(--clr-orange-hover);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: var(--clr-grey-700);
    color: var(--clr-white);
    border-color: var(--clr-grey-700);
}

.btn-secondary:hover {
    background: var(--clr-grey-500);
    border-color: var(--clr-grey-500);
}

.btn-danger {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
}

.btn-danger:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.btn-outline {
    background: transparent;
    color: var(--clr-orange);
    border-color: var(--clr-orange);
}

.btn-outline:hover {
    background: var(--clr-orange);
    color: var(--clr-white);
}

.btn-lg {
    font-size: var(--fs-md);
    padding: var(--sp-md) var(--sp-2xl);
    min-height: 56px;
}

.btn-sm {
    font-size: var(--fs-sm);
    padding: var(--sp-xs) var(--sp-md);
    min-height: 36px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: var(--clr-dark);
    color: var(--clr-white);
    padding: var(--sp-4xl) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255, 107, 53, 0.06) 0%, transparent 70%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.015) 60px,
            rgba(255, 255, 255, 0.015) 61px
        );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-hover), var(--clr-orange));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: var(--fs-hero);
    line-height: var(--lh-tight);
    margin-bottom: var(--sp-lg);
}

.hero h1 .highlight {
    color: var(--clr-orange);
    display: block;
}

.hero p {
    font-size: var(--fs-lg);
    color: var(--clr-grey-300);
    line-height: var(--lh-normal);
    margin-bottom: var(--sp-xl);
    max-width: 560px;
}

/* --- Sections --- */
.section {
    padding: var(--sp-section) 0;
}

.section-dark {
    background: var(--clr-dark);
    color: var(--clr-white);
}

.section-alt {
    background: var(--clr-grey-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-3xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--clr-grey-500);
    font-size: var(--fs-md);
    margin-top: var(--sp-sm);
}

.section-dark .section-header p {
    color: var(--clr-grey-300);
}

/* --- Grid System --- */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: var(--sp-xl);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Cards --- */
.card {
    background: var(--clr-white);
    border: 1px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-card);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-orange-glow);
    color: var(--clr-orange);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-lg);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    font-family: var(--font-display);
}

.card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-sm);
}

.card p {
    color: var(--clr-grey-500);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    margin-bottom: var(--sp-md);
}

.card-link {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    color: var(--clr-orange);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    transition: gap var(--duration-normal) var(--ease-out);
}

.card-link::after {
    content: '\2192';
    transition: transform var(--duration-normal) var(--ease-out);
}

.card:hover .card-link::after {
    transform: translateX(4px);
}

.section-dark .card {
    background: var(--clr-dark-surface);
    border-color: var(--clr-grey-900);
}

.section-dark .card p {
    color: var(--clr-grey-300);
}

/* --- Steps (How It Works) --- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    counter-reset: step-counter;
    position: relative;
}

.step {
    counter-increment: step-counter;
    text-align: center;
    padding: var(--sp-xl) var(--sp-lg);
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--sp-lg);
    background: var(--clr-dark);
    color: var(--clr-orange);
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    border-radius: 50%;
    border: 3px solid var(--clr-orange);
    position: relative;
    z-index: 1;
}

.step h4 {
    margin-bottom: var(--sp-xs);
}

.step p {
    color: var(--clr-grey-300);
    font-size: var(--fs-sm);
    max-width: 240px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps::before {
        content: '';
        position: absolute;
        top: 32px;
        left: calc(12.5% + 32px);
        right: calc(12.5% + 32px);
        height: 3px;
        background: var(--clr-grey-900);
        z-index: 0;
    }
}

/* --- Trust Signals --- */
.trust-item {
    text-align: center;
    padding: var(--sp-lg);
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--sp-md);
    position: relative;
}

.trust-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--clr-orange);
}

.trust-item h4 {
    font-size: var(--fs-md);
    margin-bottom: var(--sp-xs);
}

.trust-item p {
    color: var(--clr-grey-500);
    font-size: var(--fs-sm);
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--clr-dark);
    position: relative;
    padding: var(--sp-3xl) 0;
    text-align: center;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--clr-white);
    margin-bottom: var(--sp-lg);
    position: relative;
}

.cta-banner p {
    color: var(--clr-grey-300);
    margin-bottom: var(--sp-xl);
    font-size: var(--fs-md);
    position: relative;
}

.cta-banner .btn {
    position: relative;
}

/* --- Wizard / Progress --- */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--sp-2xl);
    padding: 0 var(--sp-md);
    overflow-x: auto;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-sm) var(--sp-md);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-grey-500);
    position: relative;
    white-space: nowrap;
}

.wizard-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--clr-grey-300);
    font-size: var(--fs-xs);
    flex-shrink: 0;
}

.wizard-step.is-active {
    color: var(--clr-orange);
}

.wizard-step.is-active .wizard-step-num {
    border-color: var(--clr-orange);
    background: var(--clr-orange);
    color: var(--clr-white);
}

.wizard-step.is-complete {
    color: var(--clr-green);
}

.wizard-step.is-complete .wizard-step-num {
    border-color: var(--clr-green);
    background: var(--clr-green);
    color: var(--clr-white);
}

.wizard-step + .wizard-step::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 24px;
    height: 2px;
    background: var(--clr-grey-300);
    margin-right: -12px;
}

.wizard-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-grey-100);
    border-radius: var(--radius-lg);
    padding: var(--sp-2xl);
    box-shadow: var(--shadow-md);
}

.wizard-container {
    position: relative;
}

.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
    animation: fadeIn var(--duration-slow) var(--ease-out);
}

.wizard-card h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-xs);
}

.wizard-card h3 {
    font-size: var(--fs-lg);
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
}

.wizard-actions {
    display: flex;
    gap: var(--sp-md);
    align-items: center;
    flex-wrap: wrap;
}

.wizard-loading {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-xl) 0;
    color: var(--clr-grey-500);
    font-size: var(--fs-sm);
}

.wizard-empty {
    color: var(--clr-grey-500);
    font-size: var(--fs-sm);
    padding: var(--sp-lg) 0;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--clr-grey-100);
    border-top-color: var(--clr-orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Option Grid / Buttons --- */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}

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

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

@media (min-width: 768px) {
    .option-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 599px) {
    .option-grid-3 {
        grid-template-columns: 1fr;
    }
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2xs);
    padding: var(--sp-lg) var(--sp-md);
    background: var(--clr-white);
    border: 2px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-align: center;
    min-height: 64px;
}

.option-btn:hover {
    border-color: var(--clr-orange);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
    transform: translateY(-2px);
}

.option-btn.is-selected {
    border-color: var(--clr-orange);
    background: var(--clr-orange-subtle);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

.option-btn-lg {
    padding: var(--sp-xl) var(--sp-lg);
    min-height: 100px;
}

.option-btn-title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--clr-dark);
}

.option-btn-desc {
    font-size: var(--fs-xs);
    color: var(--clr-grey-500);
}

.option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Tyre Result Cards --- */
.tyre-result-card {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--clr-white);
    border: 2px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-sm);
    transition: border-color var(--duration-fast);
    flex-wrap: wrap;
}

.tyre-result-card.is-selected {
    border-color: var(--clr-orange);
    background: var(--clr-orange-subtle);
}

.tyre-result-info {
    flex: 1;
    min-width: 150px;
}

.tyre-result-size {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    display: block;
}

.tyre-result-meta {
    font-size: var(--fs-sm);
    color: var(--clr-grey-500);
}

.tyre-result-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-2xs);
    min-width: 120px;
}

.tyre-result-net {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--clr-dark);
}

.tyre-result-vat {
    font-size: var(--fs-xs);
    color: var(--clr-grey-500);
}

/* --- Radio Group --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 0.4rem var(--sp-md);
    border: 2px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    font-size: var(--fs-sm);
    position: relative;
}

.radio-label:hover {
    border-color: var(--clr-orange);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

.radio-label:has(input:checked) {
    border-color: var(--clr-orange);
    background: var(--clr-orange-subtle);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

.radio-label input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 22px;
    border: none;
    border-radius: 11px;
    background: var(--clr-grey-200);
    flex-shrink: 0;
    position: relative;
    transition: background var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.radio-label input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform var(--duration-fast) var(--ease-out);
}

.radio-label:hover input[type="radio"] {
    background: var(--clr-grey-300);
}

.radio-label input[type="radio"]:checked {
    background: var(--clr-orange);
}

.radio-label input[type="radio"]:checked::after {
    transform: translateX(18px);
}

/* --- Checkbox Group --- */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 0.4rem var(--sp-md);
    border: 2px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    font-size: var(--fs-sm);
}

.checkbox-label:hover {
    border-color: var(--clr-orange);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

.checkbox-label:has(input:checked) {
    border-color: var(--clr-orange);
    background: var(--clr-orange-subtle);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

.checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 22px;
    border: none;
    border-radius: 11px;
    background: var(--clr-grey-200);
    flex-shrink: 0;
    position: relative;
    transition: background var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform var(--duration-fast) var(--ease-out);
}

.checkbox-label:hover input[type="checkbox"] {
    background: var(--clr-grey-300);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--clr-orange);
}

.checkbox-label input[type="checkbox"]:checked::after {
    transform: translateX(18px);
}

/* --- Form Section Heading --- */
.form-section-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--clr-dark);
    margin: var(--sp-xl) 0 var(--sp-md) 0;
    padding-bottom: var(--sp-xs);
    border-bottom: 2px solid var(--clr-grey-100);
}

.form-section-title:first-child {
    margin-top: 0;
}

/* --- Summary Items --- */
.summary-section {
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--clr-grey-100);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-item {
    font-size: var(--fs-sm);
    padding: var(--sp-2xs) 0;
    color: var(--clr-grey-700);
}

.summary-item strong {
    color: var(--clr-dark);
}

/* --- Form Validation --- */
.is-invalid {
    border-color: var(--clr-red) !important;
    box-shadow: 0 0 0 3px var(--clr-red-light) !important;
}

.required {
    color: var(--clr-red);
}

.optional {
    color: var(--clr-grey-500);
    font-weight: var(--fw-regular);
    text-transform: none;
    letter-spacing: normal;
}

/* --- Forms --- */
.form-group {
    margin-bottom: var(--sp-lg);
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-xs);
    color: var(--clr-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--sp-sm) var(--sp-md);
    background: var(--clr-white);
    border: 2px solid var(--clr-grey-100);
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    min-height: 48px;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a5e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--sp-md) center;
    padding-right: var(--sp-2xl);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-orange);
    box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group .form-hint {
    font-size: var(--fs-xs);
    color: var(--clr-grey-500);
    margin-top: var(--sp-2xs);
}

.form-group .form-error {
    font-size: var(--fs-xs);
    color: var(--clr-red);
    margin-top: var(--sp-2xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Price Table --- */
.price-table {
    width: 100%;
    background: var(--clr-white);
    border: 1px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: var(--sp-sm) var(--sp-md);
    text-align: left;
    border-bottom: 1px solid var(--clr-grey-100);
    font-size: var(--fs-sm);
}

.price-table th {
    background: var(--clr-grey-50);
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--fs-xs);
    color: var(--clr-grey-500);
}

.price-table td:last-child,
.price-table th:last-child {
    text-align: right;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .price-total td {
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    background: var(--clr-orange-subtle);
    border-top: 2px solid var(--clr-orange);
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-2xs) var(--sp-sm);
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.badge-paid {
    background: var(--clr-blue-light);
    color: var(--clr-blue);
}

.badge-accepted {
    background: var(--clr-amber-light);
    color: var(--clr-amber);
}

.badge-completed {
    background: var(--clr-green-light);
    color: var(--clr-green);
}

.badge-cancelled {
    background: var(--clr-red-light);
    color: var(--clr-red);
}

/* --- Job Cards --- */
.job-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.job-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-md);
    flex-wrap: wrap;
    gap: var(--sp-xs);
}

.job-card-ref {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--clr-grey-500);
}

.job-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xs) var(--sp-md);
    font-size: var(--fs-sm);
    color: var(--clr-grey-500);
    margin-bottom: var(--sp-md);
}

.job-card-meta dt {
    font-weight: var(--fw-semibold);
    color: var(--clr-dark);
}

/* --- Footer --- */
.site-footer {
    background: var(--clr-dark);
    color: var(--clr-grey-300);
    padding: var(--sp-3xl) 0 var(--sp-xl);
    border-top: 3px solid var(--clr-orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    margin-bottom: var(--sp-2xl);
}

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

.footer-brand {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--clr-white);
    text-transform: uppercase;
    margin-bottom: var(--sp-md);
}

.footer-brand .logo-accent {
    color: var(--clr-orange);
}

.footer-desc {
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--clr-grey-500);
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-white);
    margin-bottom: var(--sp-md);
}

.footer-links a {
    display: block;
    font-size: var(--fs-sm);
    color: var(--clr-grey-500);
    padding: var(--sp-2xs) 0;
    transition: color var(--duration-fast);
}

.footer-links a:hover {
    color: var(--clr-orange);
}

.footer-bottom {
    border-top: 1px solid var(--clr-grey-900);
    padding-top: var(--sp-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    align-items: center;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--clr-grey-500);
}

.footer-bottom-links {
    display: flex;
    gap: var(--sp-lg);
}

.footer-bottom-links a {
    color: var(--clr-grey-500);
    transition: color var(--duration-fast);
}

.footer-bottom-links a:hover {
    color: var(--clr-orange);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Error Pages --- */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-3xl) var(--sp-lg);
}

.error-page-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: var(--fw-bold);
    color: var(--clr-grey-100);
    line-height: 1;
    margin-bottom: var(--sp-md);
}

.error-page h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--sp-md);
}

.error-page p {
    color: var(--clr-grey-500);
    font-size: var(--fs-md);
    margin-bottom: var(--sp-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-page-actions {
    display: flex;
    gap: var(--sp-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- SEO Content --- */
.seo-content {
    padding: var(--sp-section) 0;
    background: var(--clr-white);
}

.seo-content .container {
    max-width: 800px;
}

.seo-content h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-lg);
}

.seo-content p {
    color: var(--clr-grey-700);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--sp-md); }
.mb-md { margin-bottom: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-xl { margin-bottom: var(--sp-xl); }

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(12px);
        animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
    }

    .fade-in-delay-1 { animation-delay: 100ms; }
    .fade-in-delay-2 { animation-delay: 200ms; }
    .fade-in-delay-3 { animation-delay: 300ms; }
    .fade-in-delay-4 { animation-delay: 400ms; }

    @keyframes fadeIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- Alert / Flash Messages --- */
.alert {
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-lg);
    border: 1px solid;
}

.alert-success {
    background: var(--clr-green-light);
    color: var(--clr-green);
    border-color: var(--clr-green);
}

.alert-error {
    background: var(--clr-red-light);
    color: var(--clr-red);
    border-color: var(--clr-red);
}

.alert-warning {
    background: var(--clr-amber-light);
    color: var(--clr-amber);
    border-color: var(--clr-amber);
}

.alert-info {
    background: var(--clr-blue-light);
    color: var(--clr-blue);
    border-color: var(--clr-blue);
}

/* --- Standalone Form Error Alert --- */
.form-error {
    background: var(--clr-red-light);
    color: var(--clr-red);
    border: 1px solid var(--clr-red);
    border-radius: var(--radius-md);
    padding: var(--sp-sm) var(--sp-md);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-lg);
}

/* --- Status Filter Buttons --- */
.status-filter {
    background: var(--clr-grey-50);
    color: var(--clr-grey-500);
    border: 1px solid var(--clr-grey-100);
    cursor: pointer;
}

.status-filter.is-active {
    background: var(--clr-orange);
    color: var(--clr-white);
    border-color: var(--clr-orange);
}

.status-filter:hover:not(.is-active) {
    background: var(--clr-grey-100);
}

/* --- Jobs Table --- */
.jobs-table {
    background: var(--clr-white);
    border: 1px solid var(--clr-grey-100);
    border-radius: var(--radius-md);
    border-collapse: collapse;
    overflow: hidden;
}

.jobs-table th,
.jobs-table td {
    padding: var(--sp-sm) var(--sp-md);
    text-align: left;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--clr-grey-100);
}

.jobs-table th {
    background: var(--clr-grey-50);
    font-weight: var(--fw-semibold);
    color: var(--clr-grey-700);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.jobs-table tr:hover td {
    background: var(--clr-orange-subtle);
}
