:root {
    /* Design token system - same names/values as the Tailwind v4 @theme spec in
       docs/design-tokens.css, ported to plain custom properties since this project
       has no Tailwind build step. If Tailwind v4 is ever adopted, that file drops
       in as-is and these tokens become utilities (bg-accent, text-2xl, p-5, ...)
       for free. Every component should reference a token here - no raw hex,
       no one-off pixel values. */

    /* Named palette */
    --color-background: #f3f4f6;
    --color-surface: #ffffff;
    --color-surface-alt: #eef0f3;

    --color-primary: #121212;
    --color-primary-foreground: #ffffff;

    --color-accent: #4f5fee;
    --color-accent-hover: #3c4ad1;
    --color-accent-foreground: #ffffff;

    --color-secondary: #e8632e;
    --color-secondary-foreground: #ffffff;

    --color-tertiary: #facc15;
    --color-tertiary-hover: #eab308;
    --color-tertiary-foreground: #121212;

    --color-topbar-bg: #0b1c56;
    --color-topbar-text: #aebed2;

    /* Tints that used to be hard-coded: kept as tokens so a theme can repaint them. */
    --color-accent-light: #6b78f2;
    --color-surface-tint: #f0f4fb;
    --color-on-dark-muted: #aebed2;
    --color-tertiary-deep: #e0a716;
    --color-band-dark: #000000;

    --color-muted: #6b7280;
    --color-muted-foreground: #8a8f98;

    --color-border: #e5e7eb;
    --color-ring: #4f5fee;

    --color-success: #16a34a;
    --color-success-foreground: #15803d;
    --color-success-soft: #dcfce7;

    --color-warning: #d97706;
    --color-warning-foreground: #92400e;
    --color-warning-soft: #fef3c7;

    --color-danger: #dc2626;
    --color-danger-foreground: #b91c1c;
    --color-danger-soft: #fee2e2;

    --color-info: #4f5fee;
    --color-info-foreground: #3c4ad1;
    --color-info-soft: #e7e9fe;

    /* Type scale - Major Third, ratio 1.25, base 1rem */
    --text-xs: 0.64rem;
    --text-sm: 0.8rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.563rem;
    --text-2xl: 1.953rem;
    --text-3xl: 2.441rem;
    --text-4xl: 3.052rem;
    --text-5xl: 3.815rem;

    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;

    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-serif: "Fraunces", serif;

    /* Spacing - 8pt grid (4px half-step for fine control) */
    --spacing-0: 0px;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.5rem;
    --spacing-6: 2rem;
    --spacing-7: 2.5rem;
    --spacing-8: 3rem;
    --spacing-9: 4rem;
    --spacing-10: 5rem;
    --spacing-11: 6rem;
    --spacing-12: 8rem;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 999px;

    /* Shadow - ink-tinted */
    --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.06);
    --shadow-md: 0 10px 24px rgba(18, 18, 18, 0.12), 0 2px 6px rgba(18, 18, 18, 0.08);
    --shadow-lg: 0 20px 36px rgba(18, 18, 18, 0.2), 0 4px 10px rgba(18, 18, 18, 0.1);
    --shadow-xl: 0 25px 50px rgba(18, 18, 18, 0.25);

    /* ---- Legacy --sds-* aliases: every pre-existing rule in this 1,500+ line
       file references these names. Re-pointing them at the new tokens means the
       whole site repaints from the system above without a line-by-line rewrite. */
    --sds-ink: var(--color-primary);
    --sds-muted: var(--color-muted);
    --sds-muted-2: var(--color-muted-foreground);
    --sds-bg: var(--color-background);
    --sds-border: var(--color-border);
    --sds-indigo: var(--color-accent);
    --sds-indigo-dark: var(--color-accent-hover);
    --sds-coral: var(--color-secondary);

    --sds-navy-dark: var(--sds-ink);
    --sds-navy: var(--sds-ink);
    --sds-heading: var(--sds-ink);
    --sds-body: var(--sds-muted);
    --sds-accent: var(--sds-indigo);
    --sds-accent-dark: var(--sds-indigo-dark);
    --sds-light: var(--sds-bg);
    --sds-light-2: var(--color-surface-alt);

    --sds-primary: var(--sds-navy);
    --sds-primary-dark: var(--sds-navy-dark);
}

html {
    position: relative;
    min-height: 100%;
    font-size: 16px;
}

body {
    margin-bottom: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--sds-body);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-weight: 700;
    color: var(--sds-heading);
}

a {
    color: var(--sds-navy);
}

a:hover {
    color: var(--sds-accent-dark);
}

/* ---------- Test-environment banner ---------- */
.sds-test-banner {
    background-color: var(--color-warning-foreground);
    color: var(--color-primary-foreground);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    padding: var(--spacing-2) var(--spacing-4);
}

.sds-test-banner .bi {
    margin-right: .35rem;
}

/* ---------- Top bar ---------- */
.sds-topbar {
    background-color: var(--color-topbar-bg);
    color: var(--color-topbar-text);
    font-size: .85rem;
    padding: .45rem 0;
}

/* Three-column grid (contact info / follow-us / spacer) rather than justify-content-between,
   so the "Follow Us" group sits truly centred on the bar instead of pinned to the right edge
   next to whatever width the contact info happens to be. */
.sds-topbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.sds-topbar-contact {
    grid-column: 1;
}

.sds-topbar-social {
    grid-column: 3;
    justify-self: end;
}

.sds-topbar a {
    color: var(--color-topbar-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
}

.sds-topbar a:hover {
    color: #fff;
}

.sds-topbar .bi {
    color: var(--color-tertiary);
    margin-right: .3rem;
}

/* ---------- Navbar (white header, Consultix style) ---------- */
/* Floating pill nav, Clico-style: the navbar itself just supplies breathing room in the
   page background; the actual bar is its .container, styled as a white rounded card so it
   reads as "floating" rather than a full-width bar. A smaller radius below the xl
   breakpoint (where .navbar-expand-xl's menu can expand to a tall vertical list) avoids an
   extreme pill shape clipping that expanded content awkwardly. */
/* Transparent band so page content visibly scrolls under the glass card below. */
.sds-navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    padding-top: var(--spacing-4);
    padding-bottom: 0;
}

/* Engraved glass, same build as the hero buttons: frosted translucent fill with a soft sheen,
   a thin ink outer edge, a bright inner bevel, a light lip under the bottom and a drop shadow. */
.sds-navbar .container {
    background-color: rgba(255, 255, 255, .62);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .08) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3) var(--spacing-4) var(--spacing-3) calc(var(--spacing-4) + var(--spacing-1));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .75),
        inset 0 1px 1px rgba(255, 255, 255, .95),
        inset 0 -2px 6px color-mix(in srgb, var(--color-primary) 6%, transparent),
        0 1px 0 rgba(255, 255, 255, .8),
        0 12px 28px -10px rgba(18, 18, 18, .18);
}

@media (min-width: 1200px) {
    .sds-navbar .container {
        border-radius: var(--radius-full);
        padding: var(--spacing-2) var(--spacing-3) var(--spacing-2) var(--spacing-6);
    }
}

.sds-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.sds-navbar .navbar-brand img {
    height: 64px;
    width: auto;
}

@media (max-width: 575px) {
    .sds-navbar .navbar-brand img {
        height: 50px;
    }
}

.sds-navbar .nav-link {
    color: var(--color-primary) !important;
    font-weight: 500;
    padding-left: var(--spacing-3) !important;
    padding-right: var(--spacing-3) !important;
}

.sds-navbar .nav-link:hover,
.sds-navbar .nav-link.active {
    color: var(--sds-accent-dark) !important;
}

.sds-navbar .navbar-toggler {
    border-color: rgba(18, 18, 18, .2);
}

.sds-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2818, 18, 18, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons (pill, Consultix style) ---------- */
.btn {
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
}

.btn-lg {
    padding: var(--spacing-3) var(--spacing-7);
    font-size: var(--text-base);
}

.btn:not(.btn-sm):not(.btn-lg):not(.dropdown-item):not(.btn-close) {
    padding: .55rem var(--spacing-5);
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--sds-navy-dark) !important;
    border-color: var(--sds-navy-dark) !important;
}

/* "View details" on a package card is the secondary action next to "Book now" (btn-accent) -
   a light tint instead of the solid-ink .btn-primary fill keeps it from competing with that
   primary CTA. Scoped to .package-card so the rest of the site's .btn-primary is untouched. */
.package-card .btn-primary {
    background-color: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-primary);
}

.package-card .btn-primary:hover,
.package-card .btn-primary:focus,
.package-card .btn-primary:active {
    background-color: var(--color-border) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

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

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

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-foreground);
    font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-accent-foreground);
}

/* Dark yellow - a third brand accent reserved for the search CTA, so it reads as its own
   distinct action next to the indigo buttons elsewhere on the page. */
.btn-tertiary {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-tertiary-foreground);
    font-weight: 600;
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background-color: var(--color-tertiary-hover);
    border-color: var(--color-tertiary-hover);
    color: var(--color-tertiary-foreground);
}

.text-primary {
    color: var(--color-primary) !important;
}

/* ---------- Hero ---------- */
/* Soft indigo/coral gradient-mesh glow instead of a flat background - echoes the blurred
   blob treatment already used behind the search card below, so the whole top of the page
   reads as one continuous atmosphere rather than a flat grey slab handing off to colour. */
.sds-hero {
    position: relative;
    background:
        radial-gradient(640px circle at 18% 15%, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 62%),
        radial-gradient(640px circle at 85% 0%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 60%),
        var(--color-background);
    color: var(--color-primary);
    padding: var(--spacing-7) 0 var(--spacing-8);
}

.sds-hero h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--text-4xl);
    color: var(--color-primary);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}

.sds-hero .lead {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.sds-hero-accent {
    color: var(--color-accent);
    font-style: italic;
}

.sds-hero-coral {
    color: var(--color-secondary);
}

/* Bootstrap's .btn-outline-light assumes a dark backdrop (white border/text) -
   invisible against the new light hero background, so the hero repaints it
   as an ink outline button instead. */
/* Same engraved-glass build as the hero's View Packages (.btn-accent below), but clear glass
   with a neutral ink edge, so the indigo button stays the primary call to action. */
.sds-hero .btn-outline-light {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, .45);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .15) 48%, rgba(255, 255, 255, 0) 52%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .75),
        inset 0 1px 1px rgba(255, 255, 255, .95),
        inset 0 -2px 4px color-mix(in srgb, var(--color-primary) 8%, transparent),
        0 1px 0 rgba(255, 255, 255, .85),
        0 6px 18px color-mix(in srgb, var(--color-primary) 8%, transparent);
    transition: box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}

.sds-hero .btn-outline-light:hover,
.sds-hero .btn-outline-light:focus {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, .65);
    border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .85),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -2px 4px color-mix(in srgb, var(--color-primary) 10%, transparent),
        0 1px 0 rgba(255, 255, 255, .85),
        0 10px 24px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.sds-hero .btn-outline-light:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
    outline-offset: 2px;
}

.sds-hero .bi {
    color: var(--color-accent);
}

/* "View Packages" lighter than the solid .btn-accent fill used everywhere else (Book now,
   Continue, ...) - scoped to the hero only so those other CTAs keep their full-strength
   colour; text switches to indigo so it still reads clearly against the lighter fill. */
/* Engraved glass: frosted tinted fill with a top sheen, an indigo "cut" edge, a bright inner
   bevel line and a light lip under the bottom edge, so it looks set into the page. */
.sds-hero .btn-accent {
    background-color: color-mix(in srgb, var(--color-accent) 16%, rgba(255, 255, 255, .55));
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .15) 48%, rgba(255, 255, 255, 0) 52%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid color-mix(in srgb, var(--color-accent) 38%, transparent);
    color: var(--color-accent);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .7),
        inset 0 1px 1px rgba(255, 255, 255, .95),
        inset 0 -2px 4px color-mix(in srgb, var(--color-accent) 16%, transparent),
        0 1px 0 rgba(255, 255, 255, .85),
        0 6px 18px color-mix(in srgb, var(--color-accent) 18%, transparent);
    transition: box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}

.sds-hero .btn-accent:hover,
.sds-hero .btn-accent:focus {
    background-color: color-mix(in srgb, var(--color-accent) 24%, rgba(255, 255, 255, .6));
    border-color: color-mix(in srgb, var(--color-accent) 50%, transparent);
    color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .8),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -2px 4px color-mix(in srgb, var(--color-accent) 20%, transparent),
        0 1px 0 rgba(255, 255, 255, .85),
        0 10px 24px color-mix(in srgb, var(--color-accent) 24%, transparent);
}

.sds-hero .btn-accent:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
    outline-offset: 2px;
}

/* Small floating car photo on the hero's right side */
.hero-car-img {
    max-width: 290px;
    width: 100%;
    border-radius: 1rem;
    border: 4px solid var(--sds-accent);
    box-shadow: 0 18px 45px rgba(0, 10, 40, .5);
    transform: rotate(2.5deg);
    transition: transform .25s ease;
}

.hero-car-img:hover {
    transform: rotate(0deg) scale(1.03);
}

/* ---------- Google rating badge (hero) ---------- */
.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-5);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-primary);
    transition: background-color .15s ease;
}

.google-rating-badge:hover {
    background: var(--color-surface-alt);
    color: var(--color-primary);
}

.google-rating-stars {
    color: var(--color-tertiary);
    font-size: var(--text-base);
    letter-spacing: .05em;
}

/* Same specificity as .sds-hero .bi (two classes) - needed because the rating badge's
   star icons sit inside .sds-hero, so that rule was winning over the plain inherited
   colour above and repainting the stars indigo instead of yellow. */
.google-rating-stars .bi {
    color: var(--color-tertiary);
}

/* Admin review tables use this (not .google-rating-stars) since it's a single inline
   star next to a numeric rating, not a row of five. */
.sds-star-rating {
    color: var(--color-tertiary);
}

.google-rating-text {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.google-g-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.google-rating-text .text-muted {
    color: var(--color-muted) !important;
}

/* ---------- Reviews page ---------- */
.reviews-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: .75rem;
    background: var(--sds-light);
}

.reviews-summary-score {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    color: var(--sds-navy);
    line-height: 1;
}

.reviews-summary-stars {
    font-size: 1.1rem;
}

.review-card {
    padding: 1.5rem;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid var(--sds-light-2);
    box-shadow: 0 2px 10px rgba(18, 18, 18, .04);
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sds-navy);
    color: #fff;
    font-weight: 700;
}

.review-source-badge {
    font-weight: 500;
    font-size: .7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.review-source-google {
    background: var(--sds-light-2);
    color: var(--sds-navy);
}

.review-source-direct {
    background: var(--sds-light-2);
    color: var(--sds-body);
}

.pagination .page-item.active .page-link {
    background-color: var(--sds-navy);
    border-color: var(--sds-navy);
}

.pagination .page-link {
    color: var(--sds-navy);
}

.sds-hero-overline {
    display: inline-block;
    color: var(--sds-accent);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Our motto, "Skill for Life" - a quoted tagline sitting just under the hero H1,
   distinct from the overline above the heading and the lead paragraph below it. */
/* Embossed: light highlight top-left, darker tonal edge bottom-right, soft drop beneath. */
.sds-motto {
    display: inline-block;
    color: var(--color-tertiary-hover);
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .02em;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, .95),
        1px 1px 0 color-mix(in srgb, var(--color-tertiary-hover) 72%, #000),
        0 3px 5px rgba(0, 0, 0, .16);
}

.sds-motto::before {
    content: "\201C";
}

.sds-motto::after {
    content: "\201D";
}

/* Inner-page header band - plain light background matching the home hero (was a dark
   navy+photo wash left over from the old Consultix theme; the Clico redesign's hero is
   light, so this band needs to match or every inner page reads as a jarring, disconnected
   "old site" moment right after a "new site" home page). */
.sds-page-header {
    background: var(--color-background);
    padding: var(--spacing-7) 0;
}

.sds-page-header h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: 0;
}

/* ---------- Sections ---------- */
.section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--color-primary);
    font-size: var(--text-3xl);
}

.section-overline {
    display: block;
    color: var(--color-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-2);
}

.bg-light-blue {
    background-color: var(--color-background);
}

/* ---------- Cards ---------- */
.card {
    border-radius: var(--radius-xl);
}

.package-card {
    transition: transform .15s ease, box-shadow .15s ease;
    border: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-tint) 100%);
    /* Resting elevation so cards read as raised surfaces, not flat outlines. */
    box-shadow: var(--shadow-md);
}

/* Ink-to-indigo accent strip along the card's top edge. */
.package-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 1;
}

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

.package-price {
    font-family: var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-accent);
}

/* Tinted gradient placeholder for packages without a photo - keeps every
   card's top band visually consistent instead of some having a photo and
   others just jumping straight to the body. */
.package-thumb-fallback {
    height: 160px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 15%, transparent) 0%, color-mix(in srgb, var(--color-accent) 35%, transparent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-thumb-fallback-coral {
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-secondary) 15%, transparent) 0%, color-mix(in srgb, var(--color-secondary) 35%, transparent) 100%);
}

.package-thumb-fallback .bi {
    color: var(--color-primary);
    font-size: var(--text-2xl);
    opacity: .5;
}

/* Numbered feature icons on home page */
.feature-step .bi {
    color: var(--sds-navy);
}

/* ---------- Instructor cards (home page) ---------- */
.instructor-card {
    box-shadow: var(--shadow-md);
    border: none;
}

.instructor-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-4);
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-accent-foreground);
    font-weight: 800;
    font-size: var(--text-lg);
}

.instructor-avatar-coral {
    background: var(--color-secondary);
}

.instructor-card-placeholder {
    border: 1px dashed var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted-foreground);
}

.instructor-card-placeholder .bi {
    font-size: var(--text-xl);
    color: var(--color-muted-foreground);
}

/* "Why choose us" cards */
.why-card {
    border: none;
    border-radius: .7rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-tint) 100%);
    box-shadow: 0 10px 24px rgba(18, 18, 18, .12), 0 2px 6px rgba(18, 18, 18, .08);
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}

.why-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sds-navy), var(--sds-accent));
    z-index: 1;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.25rem 2.25rem rgba(18, 18, 18, .2), 0 4px 10px rgba(18, 18, 18, .1);
}

.why-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-accent-light) 0%, var(--sds-indigo) 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .25),
        inset 0 -3px 5px rgba(0, 0, 0, .15),
        0 6px 14px rgba(18, 18, 18, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.why-card .icon-circle .bi {
    font-size: 1.7rem;
    color: #fff;
}

/* One of the four "why us" cards in dark yellow instead of indigo - a deliberate touch of
   the third brand accent so the row doesn't read as one flat block of indigo. */
.why-card .icon-circle.icon-circle-yellow {
    background: linear-gradient(145deg, var(--color-tertiary-deep) 0%, var(--color-tertiary) 100%);
}

/* Call-to-action band above the footer */
.sds-cta-band {
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--color-band-dark) 93%, transparent) 0%, color-mix(in srgb, var(--color-band-dark) 82%, transparent) 100%),
        url('/images/melbourne-hero.jpg') center 35% / cover no-repeat,
        var(--sds-navy);
    color: #fff;
    padding: 4rem 0;
}

.sds-cta-band h2 {
    color: #fff;
}

.sds-cta-band p {
    color: var(--color-on-dark-muted);
}

/* ---------- Calendly-style date/time picker (Booking/Select) ---------- */
.slot-picker-card {
    overflow: hidden;
}

.slot-picker-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.slot-picker-month-heading {
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    color: var(--sds-body);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding-bottom: .4rem;
}

.slot-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: .85rem;
    color: #cbd5e1;
}

.slot-picker-day.available {
    color: var(--sds-navy);
    font-weight: 600;
    cursor: pointer;
}

.slot-picker-day.available:hover {
    background: var(--sds-light);
}

.slot-picker-day.selected {
    background: var(--sds-navy) !important;
    color: #fff !important;
}

.slot-picker-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--sds-navy);
    margin-right: .3rem;
}

/* No max-height here (unlike the inner list below) - this wrapper also holds the
   "Friday 28 August / Melbourne time" header above the list, so capping IT at a fixed
   height too undercounts by that header's own height. With overflow left at its default
   (visible), the list would then spill out past the wrapper's boundary instead of being
   clipped - and since the panels stack as plain blocks below the lg breakpoint, that
   spillover visually overlapped the "Your picks" panel directly underneath it. The wrapper
   should just size to its own content (the header, plus the inner list which already caps
   and scrolls itself) with no cap of its own. */
.slot-picker-times-list {
    max-height: 24rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* "All instructors": one column per instructor instead of every instructor's times
   interleaved into a single list, where the same time would otherwise repeat once per
   instructor and read as a confusing duplicate. The vertical scroll lives on THIS shared
   container, not on each column individually - columns used to each scroll independently,
   so scrolling with the cursor/finger over just one column (easy to do, especially on a
   narrow phone screen where the columns sit close together) silently desynced it from the
   others, defeating the whole point of comparing instructors side by side. One shared
   scroll keeps every column's times lined up at the same row no matter where the scroll
   gesture starts; columns pan sideways together as a set when there isn't room for all of
   them at once. */
.slot-picker-times-list.slot-picker-times-columns {
    flex-direction: row;
    align-items: flex-start;
    overflow: auto;
    max-height: 24rem;
}

.slot-picker-times-column {
    flex: 0 0 auto;
    width: 7.5rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.slot-picker-times-column-header {
    font-size: .72rem;
    font-weight: 700;
    color: var(--sds-navy);
    text-align: center;
    padding-bottom: .35rem;
    margin-bottom: .1rem;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    background: #fff;
    flex-shrink: 0; /* see .slot-picker-time-btn's flex-shrink comment - same fix applies here */
}

.slot-picker-time-btn {
    width: 100%;
    text-align: left;
    padding: .5rem .75rem;
    border: 1px solid var(--sds-navy);
    border-radius: .4rem;
    background: #fff;
    color: var(--sds-navy);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    /* Without this, a flex column whose content overflows its max-height (nearly every
       date here - a full day's times far exceeds the panel height) shrinks EVERY child
       instead of just scrolling past the excess, once overflow is anything but visible
       (the CSS flexbox spec drops each item's automatic minimum size to 0 in that case) -
       every time button (and the column header below) would otherwise get squashed down
       to a few pixels tall instead of keeping its natural size and scrolling normally. */
    flex-shrink: 0;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

/* The little "pop" a time plays the moment it becomes picked/claimed - draws the eye to the
   whole block of times that just got reserved together, not just the one you clicked. */
@keyframes slot-picker-claim-pop {
    0% { transform: scale(.94); }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.slot-picker-time-btn.picked,
.slot-picker-time-btn.claimed {
    animation: slot-picker-claim-pop .28s ease;
}
@media (prefers-reduced-motion: reduce) {
    .slot-picker-time-btn.picked,
    .slot-picker-time-btn.claimed {
        animation: none;
    }
}

/* Not [disabled] here - claimed/insufficient/unreachable times stay clickable (see
   Select.cshtml) so a click can explain why, so they need their own hover exclusion via
   [aria-disabled] instead of relying on the native :disabled pseudo-class. */
.slot-picker-time-btn:hover:not([aria-disabled="true"]) {
    background: var(--sds-light);
}

.slot-picker-time-instructor {
    font-size: .75rem;
    font-weight: 400;
    color: var(--sds-body);
}

/* The time you actually picked - filled solid so it reads clearly against the plain
   outlined buttons around it. */
.slot-picker-time-btn.picked {
    background: var(--sds-navy) !important;
    border-color: var(--sds-navy) !important;
    color: #fff !important;
}

.slot-picker-time-btn.picked .slot-picker-time-instructor {
    color: rgba(255, 255, 255, .8);
}

/* A quarter-hour the rest of a picked 60-minute lesson literally runs through - stays
   visible rather than disappearing, and reads as belonging to that pick (solid fill in the
   same navy family as .picked, so the whole reserved block reads as one clearly-selected
   unit) rather than as a plain unrelated "unavailable" time. A distinct shade from .picked
   itself (--sds-heading, not --sds-navy) keeps the one time you actually clicked visually
   identifiable within its own claimed group. Distinct from .overlaps-pick below (a
   different start time that merely clashes with the pick, not literally part of it) and
   from .unreachable further down (disabled for a completely different, unrelated reason -
   nothing left to do with it - see update()'s atLimit). */
.slot-picker-time-btn.claimed {
    background: var(--sds-heading) !important;
    border-color: var(--sds-heading) !important;
    color: #fff !important;
    cursor: not-allowed;
}

.slot-picker-time-btn.claimed .slot-picker-time-instructor,
.slot-picker-time-btn.claimed .slot-picker-time-note {
    color: #fff;
    opacity: .75;
}

/* A different, alternative start time whose own hour would clash with a lesson already
   picked (e.g. 8:00am once 8:15am is picked) - it's not literally one of the quarter-hours
   the picked lesson runs through (contrast with .claimed above, solid and dark), just
   incompatible with it, so a lighter grey reads as "related but not the same thing". */
.slot-picker-time-btn.overlaps-pick {
    background: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

.slot-picker-time-btn.overlaps-pick .slot-picker-time-instructor,
.slot-picker-time-btn.overlaps-pick .slot-picker-time-note {
    color: #6c757d;
    opacity: .85;
}

/* Merely unreachable because the required number of lessons is already picked elsewhere -
   nothing wrong with this time itself, so it reads as neutrally muted rather than tied to
   any particular pick (contrast with .claimed above). */
.slot-picker-time-btn.unreachable {
    background: #f8f9fa !important;
    border-color: #e5e7eb !important;
    color: #adb5bd !important;
    cursor: not-allowed;
}

/* A different instructor's column, once a lesson's already been picked with someone else -
   a whole package books with one instructor, so every other instructor's times go inert
   the moment the first pick is made (see update()'s lockedInstructorId). Same muted
   treatment as .unreachable - nothing wrong with the time itself, just not choosable here. */
.slot-picker-time-btn.other-instructor {
    background: #f8f9fa !important;
    border-color: #e5e7eb !important;
    color: #adb5bd !important;
    cursor: not-allowed;
}

.slot-picker-time-btn.insufficient {
    border-color: #dc3545;
    color: #dc3545;
    opacity: .7;
    cursor: not-allowed;
}

/* Claimed by another customer's booking entirely, not by anything the current customer picked
   (contrast with .claimed above) - a solid, slightly darker fill than .unreachable/
   .other-instructor so "someone else has this" reads as more definite than "just not reachable
   from here right now". */
.slot-picker-time-btn.booked {
    background: #eceef1 !important;
    border-color: #ced4da !important;
    color: #868e96 !important;
    cursor: not-allowed;
}

.slot-picker-time-btn.booked .slot-picker-time-instructor,
.slot-picker-time-btn.booked .slot-picker-time-note {
    color: #868e96;
    opacity: .85;
}

/* Excluded only because it falls inside the instructor buffer around a real booking (not the
   booking itself - see .booked above, nor the day's own closing time - see .insufficient
   above). Same light-grey family as .booked/.overlaps-pick: nothing wrong with the time
   itself, it's just too close to someone else's reservation, so it should read as calmly
   "also affected by that booking" rather than as an error. */
.slot-picker-time-btn.near-booking {
    background: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

.slot-picker-time-btn.near-booking .slot-picker-time-instructor,
.slot-picker-time-btn.near-booking .slot-picker-time-note {
    color: #6c757d;
    opacity: .85;
}

.slot-picker-time-note {
    font-size: .72rem;
    font-weight: 400;
}

.slot-picker-picks-list {
    max-height: 24rem;
    overflow-y: auto;
}

.slot-picker-picks-list .list-group-item {
    font-size: .85rem;
    padding: .5rem .75rem;
}

@media (max-width: 991.98px) {
    .slot-picker-times,
    .slot-picker-picks {
        border-left: none !important;
        border-top: 1px solid #e5e7eb;
    }
}

/* ---------- Availability calendar modal ---------- */
.avail-dot {
    display: inline-block;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    margin-right: .3rem;
}

.avail-dot-free {
    background: var(--color-success);
}

.avail-dot-booked {
    background: var(--color-muted-foreground);
}

.avail-grid {
    overflow-x: auto;
}

.avail-grid-inner {
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(80px, 1fr));
    min-width: 620px;
}

.avail-corner {
    grid-column: 1;
    grid-row: 1;
}

.avail-day-header {
    text-align: center;
    padding: .25rem 0;
    border-bottom: 1px solid var(--sds-light-2);
}

.avail-hour-label {
    grid-column: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: .5rem;
    font-size: .75rem;
    color: var(--sds-body);
    border-top: 1px solid var(--sds-light-2);
}

.avail-gridline {
    border-top: 1px solid var(--sds-light-2);
    border-left: 1px solid var(--sds-light-2);
}

.avail-block {
    margin: 2px 3px;
    border-radius: .4rem;
    padding: .4rem .3rem;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
}

.avail-block-free {
    background: var(--color-success-soft);
    border: 1px solid var(--color-success);
    color: var(--color-success-foreground);
}

.avail-block-booked {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-muted-foreground);
}

/* Instructor portal "My Schedule" - lesson blocks on the same grid as .avail-grid,
   placed on 15-minute rows, so they need tighter padding than the day-range blocks. */
.sched-block {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    padding: .15rem .35rem;
    text-align: left;
    line-height: 1.25;
    text-decoration: none;
}

.sched-block:hover {
    filter: brightness(.95);
}

.sched-block-confirmed {
    background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
    border: 1px solid var(--color-accent);
    color: var(--color-accent-hover);
}

.sched-block-pending {
    background: color-mix(in srgb, var(--color-tertiary) 22%, var(--color-surface));
    border: 1px solid var(--color-tertiary-hover);
    color: var(--sds-heading);
}

.sched-block-completed {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-muted-foreground);
}

.sched-day-today {
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
    border-radius: .4rem .4rem 0 0;
}

.badge-transmission {
    font-size: .75rem;
    background-color: var(--sds-heading) !important;
}

/* ---------- Admin sidebar ---------- */
/* !important: Bootstrap's responsive offcanvas (.offcanvas-md) resets background-color
   to transparent above the md breakpoint, which otherwise strips the navy background
   here and leaves nav-link text (and the white hover state) unreadable against the
   page's white background. */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--sds-navy-dark) !important;
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        min-height: auto;
    }
}

.admin-sidebar .nav-link {
    color: var(--color-on-dark-muted);
    border-radius: .35rem;
    margin-bottom: .15rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, .12);
}

.stat-card {
    border: none;
    border-radius: .6rem;
    box-shadow: 0 2px 10px rgba(18, 18, 18, .08);
}

.stat-card .stat-value {
    font-family: "Inter", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sds-heading);
}

/* ---------- Suburb tiles ---------- */
.suburb-tile {
    background: #fff;
    border: 1px solid var(--sds-light-2);
    border-left: 4px solid var(--sds-accent);
    border-radius: .5rem;
    box-shadow: 0 2px 10px rgba(18, 18, 18, .07);
    padding: .7rem 1rem;
    font-weight: 500;
    color: var(--sds-heading);
    transition: transform .15s ease, box-shadow .15s ease;
}

.suburb-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 18, 18, .14);
}

.suburb-tile .bi {
    color: var(--sds-accent);
}

/* ---------- Chat widget ---------- */
.sds-chat-toggle {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--color-accent-light) 0%, var(--sds-indigo) 100%);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 22px rgba(18, 18, 18, .3);
    z-index: 1040;
    transition: transform .15s ease;
}

.sds-chat-toggle:hover {
    transform: scale(1.08);
}

.sds-chat-window {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 350px;
    max-width: calc(100vw - 2rem);
    height: 480px;
    max-height: calc(100vh - 4rem);
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0, 10, 40, .35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}

.sds-chat-window.d-none {
    display: none !important;
}

.sds-chat-header {
    background: linear-gradient(115deg, var(--sds-navy-dark), var(--sds-navy));
    color: #fff;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
}

.sds-chat-header .bi {
    color: var(--sds-accent);
    font-size: 1.3rem;
}

.sds-chat-sub {
    font-size: .75rem;
    color: var(--color-on-dark-muted);
}

.sds-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--sds-light);
}

.sds-chat-msg {
    max-width: 85%;
    padding: .55rem .8rem;
    border-radius: .8rem;
    margin-bottom: .5rem;
    font-size: .88rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.sds-chat-msg.from-bot {
    background: #fff;
    color: var(--sds-body);
    border-bottom-left-radius: .2rem;
    box-shadow: 0 1px 4px rgba(18, 18, 18, .1);
}

.sds-chat-msg.from-user {
    background: var(--sds-navy);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: .2rem;
}

.sds-chat-quick {
    padding: .5rem .75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    background: #fff;
}

.sds-chat-chip {
    border: 1px solid var(--sds-navy);
    background: #fff;
    color: var(--sds-navy);
    border-radius: 20px;
    font-size: .78rem;
    padding: .25rem .7rem;
    transition: background .15s ease, color .15s ease;
}

.sds-chat-chip:hover {
    background: var(--sds-navy);
    color: #fff;
}

.sds-chat-input {
    display: flex;
    gap: .5rem;
    padding: .75rem;
    background: #fff;
}

.sds-chat-input .form-control {
    border-radius: 20px;
    font-size: .88rem;
}

.sds-chat-input .btn {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
}

/* ---------- Footer (dark navy, Consultix style) ---------- */
footer.sds-footer {
    background-color: var(--color-primary);
    color: #9ca3af;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    margin-top: var(--spacing-4);
    padding: var(--spacing-8) 0 0;
}

.sds-footer h5,
.sds-footer .h5 {
    color: var(--color-primary-foreground);
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-4);
}

.sds-footer a {
    color: #9ca3af;
    text-decoration: none;
}

.sds-footer a:hover {
    color: var(--color-primary-foreground);
}

.sds-footer .footer-brand {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--color-primary-foreground);
}

.sds-footer .footer-brand .bi {
    color: var(--color-accent);
}

.sds-footer ul {
    list-style: none;
    padding-left: 0;
}

.sds-footer ul li {
    margin-bottom: var(--spacing-2);
}

/* WhatsApp's own brand green, so the link reads as WhatsApp at a glance. */
.sds-footer-whatsapp .bi {
    color: #25d366;
}

.sds-footer-bottom {
    background-color: var(--sds-navy-dark);
    padding: var(--spacing-4) 0;
    margin-top: var(--spacing-6);
    font-size: var(--text-sm);
    text-align: center;
}

/* ---------- Sticky navigation ---------- */
/* When the sticky navbar's collapse menu is open on small screens, cap it to the
   viewport so every item stays reachable by scrolling inside the menu. */
.navbar.sticky-top .navbar-collapse.show,
.navbar.sticky-top .navbar-collapse.collapsing {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* ---------- Active navigation state ---------- */
/* Shows the visitor which section of the site they are currently in. */
.sds-navbar .nav-link.active {
    color: var(--sds-navy);
    font-weight: 700;
    position: relative;
}

.sds-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sds-navy), var(--sds-accent));
}

/* Collapsed (mobile) menu: use a left bar instead of an underline. */
@media (max-width: 991.98px) {
    .sds-navbar .nav-link.active::after {
        left: 0;
        right: auto;
        top: .3rem;
        bottom: .3rem;
        width: 3px;
        height: auto;
    }
}

/* ---------- Find an Instructor (home page search) ---------- */
.find-instructor-section {
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-9);
    padding-bottom: var(--spacing-7);
}

/* Soft blurred colour blobs behind the floating search card - purely
   decorative, sits behind the card via z-index/position. */
.sds-hero-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sds-blob {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(70px);
}

.sds-blob-indigo {
    top: -20px;
    left: 6%;
    width: 280px;
    height: 280px;
    background: var(--color-accent);
    opacity: .18;
}

.sds-blob-coral {
    top: 40px;
    right: 10%;
    width: 260px;
    height: 260px;
    background: var(--color-secondary);
    opacity: .16;
}

.sds-blob-ink {
    bottom: -40px;
    left: 38%;
    width: 320px;
    height: 220px;
    background: var(--color-primary);
    opacity: .05;
}

.find-instructor-card {
    position: relative;
    z-index: 1;
    max-width: 858px;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--color-tertiary);
    box-shadow: var(--shadow-sm), 0 32px 64px -20px rgba(18, 18, 18, .16);
}

.find-instructor-card .form-select,
.find-instructor-card .form-control {
    border-color: var(--color-border);
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.find-instructor-card .form-label {
    font-size: var(--text-xs);
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-1);
}

.sds-availability-caption {
    margin: var(--spacing-4) 0 0;
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
}

.sds-trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-3);
    margin-top: var(--spacing-6);
    position: relative;
    z-index: 1;
}

.sds-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #4b5160;
}

.sds-trust-pill .bi {
    color: var(--color-accent);
}

.sds-trust-pill-flat {
    background: var(--color-background);
    border: none;
    font-size: var(--text-xs);
    padding: var(--spacing-1) var(--spacing-3);
}

/* Light theme-colour tints for the three trust pills under the search card, so the row
   reads as three distinct points rather than one flat repeated pill. */
.sds-trust-pill-indigo {
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-accent) 25%, var(--color-border));
}

.sds-trust-pill-indigo .bi {
    color: var(--color-accent);
}

.sds-trust-pill-coral {
    background: color-mix(in srgb, var(--color-secondary) 10%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-secondary) 25%, var(--color-border));
}

.sds-trust-pill-coral .bi {
    color: var(--color-secondary);
}

.sds-trust-pill-yellow {
    background: color-mix(in srgb, var(--color-tertiary) 16%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-tertiary) 35%, var(--color-border));
}

.sds-trust-pill-yellow .bi {
    color: var(--color-tertiary-hover);
}

.sds-trust-pill-green {
    background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-success) 25%, var(--color-border));
}

.sds-trust-pill-green .bi {
    color: var(--color-success);
}

/* ---------- Showcase photo with floating cards (home page) ---------- */
/* A big photo with small rotated "tag" cards overlapping its edges, scrapbook-collage
   style - the frame carries generous padding so the cards' negative offsets never clip
   against the viewport, and on narrow screens the cards drop out of absolute positioning
   entirely and stack in a plain row below the photo instead of overlapping it. */
.sds-showcase-frame {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.sds-showcase-carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-tertiary);
}

.sds-showcase-img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sds-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-3) var(--spacing-4);
    white-space: nowrap;
}

.sds-float-card .bi {
    font-size: var(--text-xl);
    color: var(--color-accent);
}

/* Star rating reads as gold/yellow everywhere else on the site (the stars badge below) -
   matching that convention here instead of indigo like the other two cards. */
.sds-float-card-1 .bi {
    color: var(--color-tertiary);
}

.sds-float-card strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-primary);
    line-height: var(--leading-snug);
}

.sds-float-card span {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.sds-float-card-1 {
    top: -20px;
    left: -16px;
    transform: rotate(-6deg);
}

.sds-float-card-2 {
    bottom: -18px;
    right: -14px;
    transform: rotate(4deg);
}

.sds-float-card-3 {
    top: 42%;
    right: -28px;
    transform: rotate(-3deg);
}

@media (max-width: 767px) {
    .sds-showcase-frame {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-3);
    }

    .sds-float-card {
        position: static;
        transform: none;
        width: 100%;
    }
}

/* Order summary discount row: plain (non-!important) flex so JS can toggle
   `style.display` to hide it — Bootstrap's .d-flex is `!important` and silently
   wins over an inline style, which was making the row un-hideable. */
.order-summary-row {
    display: flex;
    justify-content: space-between;
}

/* ---------- Booking credit tier picker ---------- */
.credit-tier-card {
    display: flex;
    border: 2px solid var(--sds-light-2);
    border-radius: .75rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.credit-tier-card:hover {
    border-color: var(--sds-accent);
}

.credit-tier-card:has(.tier-radio:checked) {
    border-color: var(--sds-navy);
    box-shadow: 0 8px 20px rgba(18, 18, 18, .12);
}

.credit-discount-badge {
    background-color: color-mix(in srgb, var(--color-accent) 15%, var(--color-surface));
    color: var(--color-accent-hover);
    font-weight: 700;
}

.credit-best-badge {
    position: absolute;
    top: -.6rem;
    right: 1rem;
    background-color: var(--sds-navy);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: .35rem .6rem;
}

/* ---------- "Book in under 3 minutes" home explainer ---------- */
.mini-step-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(18, 18, 18, .1), 0 2px 6px rgba(18, 18, 18, .06);
}

.mini-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--sds-navy);
    color: #fff;
    font-weight: 700;
    font-family: "Inter", sans-serif;
}

.mini-mockup {
    background: var(--sds-light);
    border-radius: .6rem;
    padding: 1rem;
    margin-top: 1rem;
}

.mini-instructor-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .85rem;
}

.mini-instructor-row + .mini-instructor-row {
    border-top: 1px solid rgba(18, 18, 18, .08);
}

.mini-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--sds-navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mini-time-chip {
    display: inline-block;
    padding: .35rem .7rem;
    border-radius: .4rem;
    border: 1px solid rgba(18, 18, 18, .15);
    background: #fff;
    font-size: .8rem;
    color: var(--sds-body);
}

.mini-time-chip-active {
    background: var(--sds-navy);
    border-color: var(--sds-navy);
    color: #fff;
}

.mini-confirm-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: var(--spacing-3);
}

.mini-confirm-card .bi-check-circle-fill {
    color: var(--color-success);
    font-size: var(--text-xl);
}

/* ---------- Admin > Packages drag-to-reorder ---------- */
.package-row {
    cursor: default;
}

.package-row .drag-handle {
    cursor: grab;
    font-size: 1.1rem;
}

.package-row.dragging {
    opacity: .4;
    background: var(--sds-light);
}

/* ---------- Admin > Availability calendar view ---------- */
.admin-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .4rem;
}

.admin-cal-dow {
    text-align: center;
    font-weight: 600;
    font-size: .8rem;
    color: var(--sds-navy-dark);
    padding-bottom: .25rem;
}

.admin-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    min-height: 80px;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .4rem .2rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .15s ease, border-color .15s ease;
}

a.admin-cal-cell:hover {
    border-color: var(--sds-navy);
    box-shadow: 0 2px 8px rgba(18, 18, 18, .15);
    color: inherit;
}

.admin-cal-blank {
    border: none;
    background: transparent;
}

.admin-cal-today {
    border-color: var(--sds-navy);
    border-width: 2px;
}

.admin-cal-daynum {
    font-weight: 600;
    font-size: .9rem;
}

.admin-cal-badge {
    font-size: .68rem;
    border-radius: .3rem;
    padding: .1rem .4rem;
    width: 100%;
    text-align: center;
}

.admin-cal-badge-available {
    background: var(--color-success-soft);
    color: var(--color-success-foreground);
}

.admin-cal-badge-booked {
    background: var(--color-danger-soft);
    color: var(--color-danger-foreground);
}

.admin-timeline-block {
    display: block;
    overflow: hidden;
    border-radius: .35rem;
    padding: .2rem .4rem;
    font-size: .72rem;
    line-height: 1.2;
    color: #fff;
    background: var(--sds-navy);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
    transition: box-shadow .15s ease;
}

.admin-timeline-block:hover {
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.admin-timeline-conflict {
    background: #dc2626;
    outline: 2px solid #7f1d1d;
    z-index: 2;
}

/* Dashboard overlap warning: a compact two-row linear timeline per conflicting pair, with the
   actual overlap window highlighted as a translucent band across both rows. */
.dash-conflict-track {
    position: relative;
    height: 56px;
    background: #f8f9fb;
    border: 1px solid #e5e9ef;
    border-radius: .4rem;
}

.dash-conflict-bar {
    position: absolute;
    height: 20px;
    line-height: 20px;
    padding: 0 .4rem;
    font-size: .7rem;
    color: #fff;
    border-radius: .25rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash-conflict-bar-a {
    top: 4px;
    background: var(--sds-navy);
}

.dash-conflict-bar-b {
    top: 30px;
    background: #7c3aed;
}

.dash-conflict-overlap {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(220, 38, 38, .18);
    border-left: 2px dashed #dc2626;
    border-right: 2px dashed #dc2626;
}

.cal-legend-dot {
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    margin-right: .3rem;
    vertical-align: middle;
}

/* Hero call-to-action buttons: even gap between them; on phones they stack at full, equal width. */
.sds-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
}

@media (max-width: 575.98px) {
    .sds-hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}
