/**
 * Quoting Engine CSS (BEM Methodology)
 * Powered by GeneratePress Global Blueprint.
 */

/* Quoting Card Container */
.bf-quoting-card {
    background: var(--brand-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    padding: 0; /* Override GP default if needed, we control inner padding */
}

/* Timeline — numbered-circle stepper with a progress line */
.bf-quoting-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    background: var(--brand-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 20px var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.bf-step-indicator {
    /* Real <button> now (was a div with a click handler, so it was unreachable by
       keyboard). Reset the UA button chrome so it renders exactly as before —
       font-family only, since the type scale below is set explicitly. */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: inherit;
    text-align: center;

    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    position: relative;
    cursor: pointer;
    color: #8b97ad;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.3s ease;
}

/* Now that these are keyboard-reachable, focus has to be visible. :focus-visible
   keeps it off mouse clicks. */
.bf-step-indicator:focus-visible,
.bf-plan-svc:focus-visible,
.bf-qty-selector button:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 3px;
    border-radius: 6px;
}

/* The step panels are focus TARGETS, not controls: they are tabindex="-1" purely so
   goToStep() can move focus into the step it just revealed, which is what tells a
   screen reader the content changed. Tab never lands here. Chrome still matches
   :focus-visible on that programmatic focus and paints its 1px outline, which showed
   up as a stray black line around "Build your plan". Suppress it — the visible
   "which step am I on" cue is the numbered chip, which carries aria-current for
   assistive tech. Do not add a focus ring back here; it would be decoration on a
   non-interactive container. */
.bf-step-content:focus,
.bf-step-content:focus-visible {
    outline: none;
}

/* connecting line to the next step (sits behind the circles) */
.bf-step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 19px);
    right: calc(-50% + 19px);
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.bf-step-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.22);
    color: #cbd5e1;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.bf-step-label { line-height: 1; }

/* active = current + already-completed steps (JS keeps prior steps active) */
.bf-step-indicator.active { color: #ffffff; }
.bf-step-indicator.active .bf-step-num {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(36, 179, 53, 0.20);
}
/* fill the line green between two reached steps */
.bf-step-indicator.active:has(+ .bf-step-indicator.active)::after {
    background: var(--brand-secondary);
}

/* locked = not yet unlocked (before coverage confirmed) */
.bf-step-indicator.locked { cursor: default; opacity: 0.55; }

/* Step Content Areas */
.bf-step-content {
    display: none;
    animation: bf-fade-in 0.3s ease forwards;
    padding: 0 var(--spacing-lg) var(--spacing-xxl) var(--spacing-lg);
}

.bf-step-content.active {
    display: block;
}

@keyframes bf-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards Grid (Native CSS Grid) */
.bf-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}
/* Commercial flow uses a single centred card (one bin quantity / one service). */
.bf-cards-grid--single {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
}

/* Base Card Styles */
.bf-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--brand-surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.bf-card:hover {
    border-color: var(--brand-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bf-card.selected {
    border-color: var(--brand-secondary);
    background-color: #f0fdf4; /* Light green tint */
    box-shadow: 0 0 0 4px rgba(36, 179, 53, 0.1);
}

.bf-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-accent);
    color: var(--text-inverse);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* ---- Wheelie bin icon — flat-modern inline SVG: tapered body, overhanging lid
   with a front lift-lip, grounded wheels. Colour per waste stream stays the area's
   real council colour (--bin-general etc., set on #binfresh-booking by the wrapper);
   each icon exposes it locally as --bin, which the SVG's painted parts inherit. */
.bf-bin-icon {
    --w: 80px;                     /* one knob: the SVG scales from the width */
    width: var(--w);
    margin: 0 auto var(--spacing-lg);
    flex: 0 0 auto;
    line-height: 0;                /* no inline-SVG baseline gap */
}
#color-general   { --bin: var(--bin-general, #334155); }
#color-recycling { --bin: var(--bin-recycling, #0284c7); }
#color-garden    { --bin: var(--bin-garden, #854d0e); }
#color-commercial { --bin: #475569; } /* neutral trade-bin slate for commercial */

.bf-bin-icon .bf-bin-svg {
    width: var(--w);
    height: auto;
    display: block;
    overflow: visible;             /* let the ground shadow sit outside the box */
}
/* The bin body + lid + collar take the live council colour; the wheels, axle bar
   and hinge tabs stay fixed black. Recolouring on postcode = just re-setting --bin,
   so it eases. The bold black outline gives the flat-sticker look. */
.bf-bin-icon .bf-bin-fill {
    fill: var(--bin);
    transition: fill 0.28s ease;
}
.bf-bin-icon .bf-bin-stroke {
    stroke: #000;
    stroke-width: 5;
    stroke-linejoin: round;
    stroke-linecap: round;
}
@media (prefers-reduced-motion: reduce) {
    .bf-bin-icon .bf-bin-fill { transition: none; }
}

/* Bin card — premium surface + live "has a quantity" active state */
.bf-bin-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.bf-bin-card.is-active {
    border-color: var(--brand-secondary);
    background: linear-gradient(180deg, #f0fdf7 0%, #ffffff 100%);
    box-shadow: 0 0 0 3px rgba(36, 179, 53, 0.14), var(--shadow-lg);
}
.bf-bin-card.is-active::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-secondary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
    z-index: 4;
}

/* Quantity Selectors */
.bf-qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    background: var(--brand-background);
    border-radius: var(--radius-pill);
    padding: 6px;
}

.bf-qty-selector button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--brand-surface);
    color: var(--brand-primary);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bf-qty-selector button:hover {
    background: var(--brand-primary);
    color: var(--text-inverse);
}

.bf-qty-selector span {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

/* Price Display */
.bf-price-display {
    margin-top: var(--spacing-sm);
}

.bf-price-currency {
    font-size: 1.2rem;
    font-weight: bold;
    vertical-align: top;
    color: var(--brand-primary);
}

.bf-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-primary);
}

.bf-price-suffix {
    color: var(--text-secondary);
    font-weight: bold;
}

/* Receipt Breakdown */
.bf-receipt-breakdown {
    background: var(--brand-background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.bf-receipt-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    color: var(--text-primary);
    border-bottom: 1px dashed var(--border-color);
}

.bf-receipt-row:last-child {
    border-bottom: none;
}

.bf-receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--brand-primary);
}

/* ============================================================
   Step 3 — Choose your service
   ============================================================ */
.bf-service-header { margin-bottom: var(--spacing-xl); }

/* modern back button — ghost pill, left-aligned above the centred title */
.bf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-background);
    color: var(--brand-primary);
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading, inherit);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    margin-bottom: var(--spacing-lg);
}
.bf-back-btn:hover,
.bf-back-btn:focus-visible {
    background: #ffffff;
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    transform: translateX(-3px);
    outline: none;
}
.bf-back-btn i { font-size: 0.82rem; }

.bf-service-title { text-align: center; }
.bf-service-title h2 { margin: 0 0 6px; }
.bf-service-title p { margin: 0; }

/* service (frequency) cards — premium pricing cards */
.bf-service-grid { align-items: stretch; }
.bf-service-card {
    align-items: center;
    text-align: center;
    padding-top: var(--spacing-xl);
}
.bf-svc-ico {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: rgba(36, 179, 53, 0.12);
    color: var(--brand-secondary);
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md);
    transition: background 0.2s ease, color 0.2s ease;
}
.bf-service-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.bf-svc-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 var(--spacing-lg);
}
.bf-svc-price {
    margin-top: auto;
    font-family: var(--font-heading, inherit);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-primary);
}
.bf-svc-price span {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

/* selected service — clear green state + check + highlighted icon */
.bf-service-card.selected {
    border-color: var(--brand-secondary);
    background: linear-gradient(180deg, #f0fdf7 0%, #ffffff 100%);
    box-shadow: 0 0 0 3px rgba(36, 179, 53, 0.14), var(--shadow-lg);
}
.bf-service-card.selected .bf-svc-ico { background: var(--brand-secondary); color: #ffffff; }
.bf-service-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-secondary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
    z-index: 4;
}
.bf-service-card.is-popular { padding-top: calc(var(--spacing-xl) + 4px); }

/* --- Your Service Breakdown --- */
.bf-quote {
    max-width: 620px;
    margin: var(--spacing-xxl) auto 0;
}
.bf-quote-title {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.15rem;
    color: var(--brand-primary);
}
.bf-quote-note {
    margin: var(--spacing-md) 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    text-align: center;
}
.bf-quote-note[hidden] { display: none; }

.bf-checkout-btn {
    display: block;
    width: 100%;
    margin-top: var(--spacing-lg);
}

/* Native Mobile Layout (No more bleeding out of the screen!) */
@media (max-width: 768px) {
    /* Transform Bin Cards to horizontal list on mobile */
    .bf-card.bf-bin-card {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 5px var(--spacing-md);
        align-items: center;
        text-align: left;
        padding: var(--spacing-md);
    }
    
    .bf-bin-icon {
        grid-row: 1 / span 2;
        margin: 0;
        --w: 54px;
    }

    .bf-card.bf-bin-card h3 {
        margin: 0;
        font-size: 1.15rem;
    }
    
    .bf-qty-selector {
        margin-top: 0;
        justify-content: flex-start;
        padding: 0;
        background: transparent;
    }
    
    .bf-qty-selector button {
        width: 44px; /* Finger-friendly touch target */
        height: 44px;
        background: var(--brand-background);
    }

    /* General Mobile Utilities */
    .bf-full-width-mobile {
        width: 100%;
        padding: 18px;
    }
    
    /* Ensure content padding isn't massive on mobile */
    .bf-step-content {
        padding: 0 var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
    }

    .bf-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline: numbered circles + labels, compact on narrow screens */
    .bf-quoting-timeline { padding: 16px 10px; }
    .bf-step-indicator { font-size: 10.5px; letter-spacing: 0.3px; gap: 6px; }
    .bf-step-num { width: 28px; height: 28px; font-size: 13px; }
    .bf-step-indicator:not(:last-child)::after { top: 14px; left: calc(50% + 17px); right: calc(-50% + 17px); }

    /* Postcode step: keep the input + Check button aligned and within the card. */
    .bf-postcode-gate { max-width: 100%; }
    #binfresh-booking .bf-pc-input { font-size: 1rem; padding: 13px 14px; }
    .bf-pc-row { gap: 8px; }
    .bf-pc-row .btn { padding: 13px 18px; }
    #binfresh-booking .bf-pc-lead.is-open { padding: 16px; }
}


/* --- Booking / location pages ---
   Full width comes from the .full-width-content body class (GeneratePress native).
   Here we just cap the inner white card so it doesn't stretch too wide on big screens. */
.binfresh-booking-page .bf-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ============================================================
   Step 1 — Postcode coverage gate
   ============================================================ */
.bf-step-indicator.locked { opacity: 0.45; cursor: default; }

.bf-postcode-gate { max-width: 520px; margin: 0 auto; }
.bf-pc-row { display: flex; gap: 10px; align-items: stretch; }

/* Inputs are scoped under #binfresh-booking so they beat GeneratePress's own
   input[type="email"] rules (which are more specific than a bare class). */
#binfresh-booking .bf-pc-input {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color, #cbd5e1) !important;
    border-radius: 12px !important;
    font-size: 1.05rem;
    line-height: 1.3;
    background: #fff !important;
    color: var(--text-primary, #1e293b);
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
#binfresh-booking .bf-pc-row .bf-pc-input { flex: 1; }
#binfresh-booking .bf-pc-input::placeholder { color: #94a3b8; opacity: 1; }
#binfresh-booking .bf-pc-input:focus {
    outline: none;
    border-color: var(--brand-secondary, #24b335) !important;
    box-shadow: 0 0 0 3px rgba(36,179,53,.18) !important;
}
.bf-pc-row .btn { white-space: nowrap; }

.bf-pc-feedback { margin-top: 16px; font-size: 1rem; min-height: 22px; }
.bf-pc-feedback.loading { color: var(--text-secondary, #64748b); }

/* The "checking your postcode" loader, on the booking flow.
 *
 * These rules and the keyframes below are duplicated from home-sections.css on purpose:
 * that file is enqueued on the front page only, so on a location or ward page the dots
 * markup would have had no styles at all and no animation to run. Duplicating an identical
 * @keyframes is harmless — the definitions match, and neither file has to know about the
 * other's loading conditions.
 *
 * Unprefixed here so it works wherever the booking flow appears; home-sections.css keeps its
 * own .bf-hero-card-scoped copies, which carry higher specificity for a reason documented
 * there and must not be replaced by these. */
/* The same loader is used in two places on this flow: checking a postcode, and calculating the
   service breakdown. Extending the selector list rather than adding a third copy of identical
   rules — there are already two copies across two files for a documented reason, and a third
   would be one too many to keep in step. */
.bf-pc-feedback .bf-cov-loader,
.bf-receipt-breakdown .bf-cov-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 2px;
}
.bf-pc-feedback .bf-cov-loading-text,
.bf-receipt-breakdown .bf-cov-loading-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    letter-spacing: 0.01em;
}
.bf-pc-feedback .bf-cov-dots,
.bf-receipt-breakdown .bf-cov-dots {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}
.bf-receipt-breakdown .bf-cov-dots i,
.bf-pc-feedback .bf-cov-dots i {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: var(--brand-secondary, #24b335);
    animation: bf-cov-bounce 1s ease-in-out infinite;
}
/* The stagger IS the effect — without these the three dots pulse in unison, which reads as a
   glitch rather than a progress indicator. */
.bf-pc-feedback .bf-cov-dots i:nth-child(2),
.bf-receipt-breakdown .bf-cov-dots i:nth-child(2) { animation-delay: 0.16s; }
.bf-pc-feedback .bf-cov-dots i:nth-child(3),
.bf-receipt-breakdown .bf-cov-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes bf-cov-bounce {
    0%, 80%, 100% { transform: translateY(0) scale(0.7); opacity: 0.35; }
    40%           { transform: translateY(-6px) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-pc-feedback .bf-cov-dots i,
    .bf-receipt-breakdown .bf-cov-dots i { animation: none; transform: none; opacity: 0.75; }
    .bf-quote.is-calculating .bf-price-amount { transition: none; }
}

/* While a new total is being fetched, dim the old one so a stale figure never reads as the
   answer. Deliberately subtle: the number stays legible, because hiding it entirely would make
   the panel jump every time a bin quantity changes. */
.bf-quote .bf-price-amount { transition: opacity 0.18s ease; }
.bf-quote.is-calculating .bf-price-amount { opacity: 0.35; }
.bf-pc-feedback.err { color: #b91c1c; }
.bf-pc-feedback.ok { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 12px 14px; border-radius: 10px; }
.bf-pc-feedback.no { color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa; padding: 12px 14px; border-radius: 10px; }
.bf-pc-feedback.no a { color: #065f46; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* Lead capture — hidden until a postcode isn't covered (.is-open), then a
   distinct grouped card with real gaps between fields. */
#binfresh-booking .bf-pc-lead { display: none; }
#binfresh-booking .bf-pc-lead.is-open {
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin: 20px auto 0;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
}
.bf-pc-lead-intro { margin: 0; font-weight: 600; color: var(--text-primary, #1e293b); }
#binfresh-booking .bf-pc-lead .btn { width: 100%; margin: 4px 0 0; }
.bf-pc-lead-msg { font-size: 0.9rem; color: var(--text-secondary, #64748b); min-height: 18px; }
.bf-pc-lead-done { color: #065f46; font-weight: 600; padding: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; text-align: center; }

/* ============================================================
   Step 2 — Build your plan (Bins + Service combined)
   Each bin row has a quantity stepper; its cadence pills appear once a bin is
   added, so recurring + one-off can be mixed in one order.
   ============================================================ */
.bf-plan-list { display: flex; flex-direction: column; gap: var(--spacing-md); margin-bottom: var(--spacing-xl); }

.bf-plan-row {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.bf-plan-row.is-active { border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(36, 179, 53, 0.10); }

.bf-plan-head { display: flex; align-items: center; gap: var(--spacing-md); }
.bf-plan-icon.bf-bin-icon { --w: 40px; width: 40px; margin: 0; flex: 0 0 auto; }
.bf-plan-name { margin: 0; flex: 1 1 auto; text-align: left; font-size: 1.05rem; line-height: 1.15; }
.bf-plan-head .bf-qty-selector { margin: 0; flex: 0 0 auto; }

.bf-plan-services { display: flex; gap: 8px; margin-top: var(--spacing-md); }
.bf-plan-collection-day { margin-top: 4px; font-size: 0.95rem; }
.bf-plan-collection-day[hidden] { display: none; }
.bf-plan-clean-note { margin-top: 3px; font-size: 0.9rem; }
/* Polite scheduling notice on the Build-your-plan step (planned rounds / no guaranteed next-day). */
.bf-plan-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: var(--spacing-md);
    padding: 11px 14px;
    background: rgba(36, 179, 53, 0.06);
    border: 1px solid rgba(36, 179, 53, 0.18);
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-secondary, #5a6b62);
    text-align: left;
}
.bf-plan-notice i { color: var(--brand-secondary); margin-top: 3px; flex: 0 0 auto; }
.bf-plan-services[hidden] { display: none; }
.bf-plan-svc {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--brand-primary);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.bf-plan-svc:hover,
.bf-plan-svc:focus-visible { border-color: var(--brand-secondary); transform: translateY(-1px); outline: none; }
.bf-plan-svc-name { font-weight: 700; font-size: 0.9rem; }
.bf-plan-svc-price { font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; }
.bf-plan-svc-price small { font-weight: 500; opacity: 0.8; }
.bf-plan-svc.selected {
    border-color: var(--brand-secondary);
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(36, 179, 53, 0.14);
}
.bf-plan-svc.selected .bf-plan-svc-name { color: #059669; }

/* Plan-step bin icons recolour to the area's council (commercial = neutral slate). */
#plan-color-general    { --bin: var(--bin-general, #334155); }
#plan-color-recycling  { --bin: var(--bin-recycling, #0284c7); }
#plan-color-garden     { --bin: var(--bin-garden, #854d0e); }
#plan-color-commercial { --bin: #475569; }

@media (max-width: 600px) {
    /* Reclaim mobile width: the page wrappers (.bf-section + .bf-container from page.php) plus the
       step + row padding otherwise stack up (~136px on a 390px screen) and squash the plan. Trim
       them — scoped to the booking page so no other template's sections are affected — so the
       rows, stepper and cadence pills get room to breathe. The .bf-container padding is an inline
       clamp() in page.php, so it needs !important to override on phones. */
    .binfresh-booking-page .bf-section { padding-left: 12px; padding-right: 12px; }
    .binfresh-booking-page .bf-container { padding-left: 12px !important; padding-right: 12px !important; }
    #binfresh-booking .bf-step-content { padding-left: 6px; padding-right: 6px; }
    .bf-plan-row { padding-left: 12px; padding-right: 12px; }
    .bf-plan-head { gap: 10px; }
    .bf-plan-head .bf-qty-selector { gap: 8px; }   /* tighten the wide default stepper gap */
    .bf-plan-name { font-size: 1rem; }
    .bf-plan-svc { padding: 8px 6px; }
    .bf-plan-svc-name { font-size: 0.85rem; }
}
