/* ══════════════════════════════════════════════════════════════════
   BASIC PLAN BOOKING PAGE — White & Blue palette
   Mobile-first, SMS-click optimised, full-screen layout
   ══════════════════════════════════════════════════════════════════ */

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

:root {
    /* Brand blue (matches landing page / design system) */
    --blue: #1c1917;
    --blue-light: #eef1f8;
    --blue-dark: #1a3280;
    --blue-50: #d6ddf0;
    /* Slate scale (matches landing page) */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #1c1917;
    /* Primary dark button (matching landing page) */
    --primary: #1c1917;
    --primary-hover: #1e293b;
    --radius: 12px;
    --radius-sm: 8px;
}

html { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* ── Page container ──────────────────────────── */
.booking-page {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
@media (min-width: 520px) {
    .booking-page {
        margin-top: 24px;
        margin-bottom: 24px;
        min-height: auto;
        border-radius: 16px;
        border: 1px solid var(--gray-200);
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
        overflow: hidden;
    }
}

/* ── Screen transitions ──────────────────────── */
.screen {
    display: none;
    padding: 0 20px 120px;
    animation: fadeSlideIn 0.3s ease;
}
.screen.active { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Top accent line ──────────────────────────── */
.top-accent {
    height: 2px;
    background: linear-gradient(90deg, var(--gray-900) 0%, var(--blue) 50%, var(--gray-900) 100%);
}

/* ── Top bar ─────────────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--gray-100);
}
.top-bar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.top-bar-verified {
    width: 16px;
    height: 16px;
    color: var(--blue);
    flex-shrink: 0;
}

/* ── Business header ─────────────────────────── */
.biz-header {
    text-align: center;
    padding: 20px 20px 8px;
    flex-shrink: 0;
}
.biz-header .biz-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-900);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    letter-spacing: 0.02em;
    overflow: hidden;
    box-shadow: 0 0 0 3px var(--gray-200), 0 2px 12px rgba(15, 23, 42, 0.08);
}
.biz-header .biz-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.biz-header h1 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.biz-header .biz-sub {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.biz-header .biz-phone {
    font-size: 0.8125rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}
.biz-header .biz-phone:hover { text-decoration: underline; }
.biz-header .biz-trade-sub {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.biz-header .biz-credentials {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    padding: 4px 12px;
    margin-top: 8px;
}
.biz-header .biz-credentials svg {
    width: 12px;
    height: 12px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* ── Trust strip ─────────────────────────────── */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px 12px;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-500);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    padding: 4px 10px;
    white-space: nowrap;
}
.trust-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--gray-400);
}
.trust-pill-link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.trust-pill-link:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.trust-pill-link:hover svg { color: var(--blue); }
.trust-pill-hours .hours-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.trust-pill-hours .hours-dot.open { background: #16a34a; }
.trust-pill-hours .hours-dot.closed { background: var(--gray-400); }

/* ── Callout fee notice ──────────────────────── */
.callout-fee-notice {
    margin-top: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700, #334155);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.callout-fee-notice svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--gray-400, #94a3b8); }
.callout-fee-notice .callout-suburb-note { font-size: 0.75rem; font-weight: 400; color: var(--gray-400, #94a3b8); }

/* ── Section titles ──────────────────────────── */
.section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue, #1c1917);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Service dropdown ────────────────────────── */
.service-select-wrap { position: relative; }
.service-select {
    width: 100%;
    padding: 13px 40px 13px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color: var(--gray-900);
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.service-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(194, 113, 74, 0.08);
    background: var(--gray-50);
}
.service-select option[value=""] { color: var(--gray-400); }
.service-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gray-400);
    pointer-events: none;
}

/* ── Service pricing badge ── */
.service-pricing-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700, #44403c);
    background: var(--gray-100, #f5f5f4);
    border: 1px solid var(--gray-200, #e7e5e4);
    border-radius: 20px;
    letter-spacing: -0.01em;
}

/* ── Chat option when "None" is selected ── */
.none-chat-option {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.none-chat-option.open {
    max-height: 80px;
    opacity: 1;
    margin-top: 12px;
}
.none-chat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--blue);
    border-radius: var(--radius-sm);
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    width: 100%;
}
.none-chat-link:hover { background: var(--blue-50); }
.none-chat-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Input fields ────────────────────────────── */
.input-field {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color: var(--gray-900);
    background: #fff;
}
.input-field::placeholder { color: var(--gray-400); }
.input-field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(194, 113, 74, 0.08);
    background: var(--gray-50);
}
.input-field.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.input-field.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.field-error-text {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}
.field-error-text.visible {
    display: flex;
}
.field-error-text svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.field-group { margin-bottom: 14px; }
.field-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.field-label .optional {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* ── Primary CTA ─────────────────────────────── */
.cta-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
    -webkit-tap-highlight-color: transparent;
}
.cta-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15), 0 1px 3px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.cta-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}
.cta-btn:disabled:hover { background: var(--gray-300); }
.cta-btn svg { width: 18px; height: 18px; }
.cta-btn.loading { opacity: 0.7; pointer-events: none; }
.cta-btn .btn-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
.cta-btn.loading .btn-spinner { display: block; }
.cta-btn.loading .btn-text-label { display: none; }

/* ── Stripe payment section ───────────────────── */
.payment-section {
    margin: 16px 0 0;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    animation: fadeSlideIn 0.25s ease-out;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.payment-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}
.payment-heading svg { color: var(--blue); }
.payment-subtext {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.45;
}
.stripe-card-element {
    padding: 11px 12px;
    background: #fff;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.stripe-card-element:focus-within,
.stripe-card-element.StripeElement--focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(194, 113, 74, 0.1);
}
.stripe-card-element.StripeElement--invalid {
    border-color: #ef4444;
}
.stripe-card-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 6px;
    min-height: 0;
}
.payment-secure-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.6875rem;
    color: var(--gray-400);
    letter-spacing: 0.01em;
}
.payment-secure-note svg { flex-shrink: 0; color: var(--gray-400); }

/* Split card fields grid */
.stripe-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.stripe-field-full { grid-column: 1 / -1; }
.stripe-field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

/* ── Mini calendar ────────────────────────────── */
.mini-cal { margin-bottom: 8px; }
.mini-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 10px;
}
.mini-cal-header .cal-month {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
}
.mini-cal-header .cal-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mini-cal-header .cal-nav:hover { background: var(--gray-200); }
.mini-cal-header .cal-nav svg { width: 14px; height: 14px; }
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 4px;
}
.cal-weekdays span {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--gray-300);
    cursor: default;
    transition: all 0.12s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.cal-day.empty { visibility: hidden; }
.cal-day.available {
    color: var(--gray-900);
    cursor: pointer;
    font-weight: 600;
}
.cal-day.available:hover {
    background: var(--blue-light);
    color: var(--blue);
}
.cal-day.available.selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.cal-day.available::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
}
.cal-day.available.selected::after {
    background: rgba(255,255,255,0.7);
}
.cal-day.today {
    color: var(--blue);
    font-weight: 700;
}

/* ── Time panel ─── */
.time-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    padding: 0;
}
.time-panel.open {
    max-height: 500px;
    opacity: 1;
    padding: 12px 0 4px;
    overflow-y: auto;
}
.time-panel-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.time-panel-label svg { width: 14px; height: 14px; color: var(--blue); }
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.time-btn {
    padding: 10px 6px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.time-btn:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
}
.time-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* ── No slots ──────────────────────────────── */
.no-slots {
    text-align: center;
    padding: 24px 16px;
}
.no-slots .no-slots-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.no-slots h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.no-slots p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* ── Chat bubbles ──────────────────────────── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    animation: bubbleIn 0.25s ease;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-bubble.bot {
    background: var(--gray-100);
    color: var(--gray-800);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble.user {
    background: var(--gray-900);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble .nudge-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid var(--blue);
    border-radius: 16px;
    background: #fff;
    color: var(--blue);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.chat-bubble .nudge-btn:hover { background: var(--blue-light); }
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 0 0;
    border-top: 1px solid var(--gray-200);
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--blue); }
.chat-input::placeholder { color: var(--gray-400); }
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--primary-hover); }
.chat-send-btn svg { width: 16px; height: 16px; }

/* ── Confirmation screen ─────────────────────── */
.confirm-card {
    text-align: center;
    padding: 36px 0 24px;
}
.confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: confirmPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.confirm-icon svg { width: 36px; height: 36px; }
@keyframes confirmPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.confirm-card h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.confirm-card .confirm-sub {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.back-to-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.back-to-booking-btn:hover {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.confirm-details {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    text-align: left;
    margin-bottom: 16px;
}
.confirm-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.8125rem;
}
.confirm-details .detail-row + .detail-row {
    border-top: 1px solid var(--gray-100);
}
.confirm-details .detail-row .label { color: var(--gray-400); font-weight: 500; }
.confirm-details .detail-row .value { font-weight: 600; color: var(--gray-900); text-align: right; max-width: 60%; }
.add-to-calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
}
.add-to-calendar-btn:hover { background: var(--primary-hover); }
.add-to-calendar-btn:active { transform: translateY(1px); }
.add-to-calendar-btn svg { width: 16px; height: 16px; }

/* Success state after clicking Add to Calendar */
.add-to-calendar-btn.cal-btn-success {
    background: #059669;
    pointer-events: none;
    animation: cal-btn-pop 0.35s ease;
}
@keyframes cal-btn-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Toast notification for calendar download */
.cal-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1d1d1f;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    max-width: calc(100vw - 32px);
    line-height: 1.4;
}
.cal-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.sms-sent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: #059669;
    font-weight: 500;
    margin-bottom: 12px;
}
.sms-sent svg { width: 16px; height: 16px; }
.add-notes-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}
.add-notes-btn:hover { border-color: var(--blue); color: var(--blue); }
.add-notes-btn svg { width: 16px; height: 16px; }
.notes-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.notes-box.open {
    max-height: 200px;
    margin-top: 10px;
    opacity: 1;
}
.notes-box textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    outline: none;
    color: var(--gray-700);
    height: 70px;
    transition: border-color 0.15s;
}
.notes-box textarea::placeholder { color: var(--gray-400); }
.notes-box textarea:focus { border-color: var(--blue); }

/* ── Photo upload ────────────────────────────── */
.photo-upload-area { margin-top: 2px; }
.photo-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 12px;
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-50);
    color: var(--gray-400);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.photo-add-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.photo-add-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.photo-add-btn.has-photos { padding: 8px 12px; font-size: 0.75rem; }

.photo-previews {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.photo-previews:empty { display: none; }

.photo-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.photo-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-thumb .photo-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.photo-thumb .photo-remove:hover { background: rgba(220,38,38,0.85); }

.photo-compressing {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ── Prep tips (post-booking) ────────────────── */
.prep-section {
    margin-top: 16px;
    padding: 14px;
    background: var(--blue-light);
    border-radius: var(--radius);
    border: 1px solid rgba(194, 113, 74, 0.12);
}
.prep-section .prep-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 4px;
}
.prep-section .prep-sub {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.prep-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.8125rem;
    color: var(--gray-700);
    line-height: 1.4;
}
.prep-tip svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.prep-tip + .prep-tip { border-top: 1px solid rgba(194, 113, 74, 0.08); }
.prep-shimmer {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 14px;
    margin-bottom: 10px;
}
.prep-shimmer.short { width: 60%; }
.prep-shimmer.med { width: 85%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Prep questions / answer chips ────────────── */
.prep-question {
    margin-bottom: 10px;
}
.prep-question .pq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}
.prep-question .pq-text {
    font-size: 0.8125rem;
    color: var(--gray-700);
    line-height: 1.4;
    margin-bottom: 6px;
}
.prep-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.prep-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: 0.75rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.prep-chip:active { transform: scale(0.96); }
.prep-chip.selected {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ── Lead form fallback ──────────────────────── */
.lead-form-mini { text-align: left; padding: 16px 0 0; }
.lead-form-mini .field-group { margin-bottom: 10px; }
.lead-success {
    text-align: center;
    padding: 20px;
    animation: fadeSlideIn 0.3s ease;
}
.lead-success h3 { font-size: 1rem; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.lead-success p { font-size: 0.8125rem; color: var(--gray-500); }

/* ── Typing / Thinking indicator ──────────────── */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}
.typing-indicator .thinking-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.typing-indicator span:not(.thinking-text) {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
    animation: typingBounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
.thinking-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-left: 4px;
    animation: thinkingFade 2.5s ease-in-out infinite;
}
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}
@keyframes thinkingFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ── Calendar section (always visible, locked until ready) ─── */
.calendar-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    transition: opacity 0.4s ease, filter 0.4s ease;
}
.calendar-section.locked .mini-cal,
.calendar-section.locked .time-panel {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.4) blur(0.5px);
    user-select: none;
}
.calendar-section.locked #cta-book {
    opacity: 0.4;
    pointer-events: none;
}
.calendar-locked-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
}
.calendar-locked-msg svg {
    flex-shrink: 0;
    color: var(--gray-300);
}
.calendar-section:not(.locked) .calendar-locked-msg {
    display: none;
}

/* ── Bottom-sheet chat overlay ────────────────── */
.chat-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.chat-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.chat-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 51;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}
.chat-sheet.open { transform: translateY(0); }
.chat-sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 0;
    flex-shrink: 0;
}
.chat-sheet-handle span {
    width: 36px; height: 4px;
    border-radius: 2px;
    background: var(--gray-300);
}
.chat-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.chat-sheet-header .sheet-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-sheet-header .sheet-title svg { width: 16px; height: 16px; color: var(--blue); }
.chat-sheet-header .sheet-close {
    padding: 4px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.chat-sheet-header .sheet-close:hover { border-color: var(--blue); color: var(--blue); }
.chat-sheet-context {
    padding: 6px 16px;
    background: var(--blue-light);
    font-size: 0.75rem;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.chat-sheet-context:empty { display: none; }
.chat-sheet-context svg { width: 12px; height: 12px; flex-shrink: 0; }
.chat-sheet .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-sheet .chat-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

/* ── Chat photo attach button ─────────────── */
.chat-attach-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.chat-attach-btn:hover { border-color: var(--primary); color: var(--primary); }
.chat-attach-btn svg { width: 18px; height: 18px; }

/* ── Chat photo previews (pending send) ───── */
.chat-photo-previews {
    display: flex;
    gap: 6px;
    padding: 0 16px;
    flex-wrap: wrap;
}
.chat-photo-previews:empty { display: none; }
.chat-photo-thumb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.chat-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.chat-photo-remove:hover { background: rgba(0,0,0,0.8); }

/* ── Photos in sent chat bubbles ──────────── */
.chat-photo-grid {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.chat-photo-grid img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

/* ── Floating chat FAB ───────────────────────── */
.chat-fab {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--blue, #1c1917);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    z-index: 52;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.chat-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab.hidden { display: none; }

/* ── Field sync pulse animation ──────────────── */
@keyframes fieldSyncPulse {
    0% { box-shadow: 0 0 0 0 rgba(194, 113, 74, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(194, 113, 74, 0.15); }
    100% { box-shadow: 0 0 0 0 rgba(194, 113, 74, 0); }
}
.field-synced {
    animation: fieldSyncPulse 0.7s ease 2;
    border-color: var(--blue) !important;
    transition: border-color 0.3s;
}

/* ── Mini calendar preview in chat ────────────── */
.chat-calendar-preview {
    background: #fff;
    border: 1.5px solid var(--blue-50, #d6ddf0);
    border-radius: 14px;
    padding: 12px 14px 10px;
    margin: 6px 0 8px;
    box-shadow: 0 2px 8px rgba(194, 113, 74, 0.08);
}
.chat-cal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--blue, #a35a38);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.chat-cal-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.chat-cal-day {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 8px 0 4px;
    padding-left: 2px;
}
.chat-cal-day:first-of-type {
    margin-top: 0;
}
.chat-cal-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.chat-cal-time-btn {
    padding: 10px 6px;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    background: #fff;
    color: var(--gray-700, #334155);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.chat-cal-time-btn:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
    transform: none;
    box-shadow: none;
}
.chat-cal-time-btn:active {
    transform: none;
    box-shadow: none;
}
.chat-cal-time-btn.selected {
    border-color: var(--primary, #1c1917);
    background: var(--primary, #1c1917);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Legacy slot buttons fallback */
.chat-slot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 8px;
}
.chat-slot-btn {
    background: var(--blue-light, #eef1f8);
    color: var(--blue, #a35a38);
    border: 1.5px solid var(--blue-50, #d6ddf0);
    border-radius: 18px;
    padding: 7px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.chat-slot-btn:hover {
    background: var(--blue, #a35a38);
    color: #fff;
    border-color: var(--blue, #a35a38);
}

/* ── Deposit Button (in chat) ──────────────── */
.chat-deposit-action {
    padding: 8px 0 12px;
}
.chat-deposit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--blue, #a35a38);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(194, 113, 74, 0.2);
}
.chat-deposit-btn:hover {
    background: var(--blue-dark, #1a3280);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 113, 74, 0.3);
}
.chat-deposit-btn svg {
    flex-shrink: 0;
}

/* ── Quote-first warning ────────────────────── */
.quote-warning {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    margin-top: 0;
    padding: 0 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--blue-dark, #1a3280);
    background: var(--blue-light, #eef1f8);
    border: 1px solid var(--blue-50, #d6ddf0);
    border-radius: var(--radius-sm);
    line-height: 1.35;
}
.quote-warning.open {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
    padding: 10px;
}
.quote-warning svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--blue, #a35a38);
}

/* ── Customer issue description (per-job-type) ─── */
.issue-description-wrap {
    margin-top: 10px;
    margin-bottom: 14px;
    animation: fadeSlideIn 0.25s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.issue-description-textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 180px;
    line-height: 1.5;
}
.issue-description-textarea.field-error {
    border-color: var(--red, #dc2626);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}
.issue-description-wrap .required-star {
    color: var(--red, #dc2626);
    font-weight: 600;
}

/* ── Mini calendar grid in chat ─────────────── */
.chat-mini-cal {
    margin-bottom: 10px;
}
.chat-mini-cal .mini-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 6px;
}
.chat-mini-cal .mini-cal-header .cal-month {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
}
.chat-mini-cal .mini-cal-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.chat-mini-cal .mini-cal-nav:hover {
    background: var(--gray-200);
}
.chat-mini-cal .cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 2px;
}
.chat-mini-cal .cal-weekdays span {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    padding: 2px 0;
}
.chat-mini-cal .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}
.chat-mini-cal .cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--gray-300);
    cursor: default;
    position: relative;
    padding: 0;
    width: 100%;
    transition: all 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.chat-mini-cal .cal-day.empty { visibility: hidden; }
.chat-mini-cal .cal-day.available {
    color: var(--gray-900);
    font-weight: 600;
    cursor: pointer;
}
.chat-mini-cal .cal-day.available:hover {
    background: var(--blue-light);
    color: var(--blue);
}
.chat-mini-cal .cal-day.available.selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.chat-mini-cal .cal-day.available::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--blue);
}
.chat-mini-cal .cal-day.available.selected::after {
    background: rgba(255,255,255,0.7);
}
.chat-mini-cal .cal-day.today {
    color: var(--blue);
    font-weight: 700;
}

/* Expanded time buttons below mini calendar in chat */
.chat-cal-times-expand {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100, #f1f5f9);
}
.chat-cal-times-expand .chat-cal-day {
    margin-top: 0;
}

/* Request Booking button inside chat calendar */
.chat-request-booking-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px;
    background: var(--gray-100, #f1f5f9);
    color: var(--gray-400, #94a3b8);
    border: 1.5px solid var(--gray-200, #e2e8f0);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}
.chat-request-booking-btn:disabled {
    opacity: 0.6;
}
.chat-request-booking-btn.active {
    background: var(--blue, #a35a38);
    color: #fff;
    border-color: var(--blue, #a35a38);
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(194, 113, 74, 0.25);
}
.chat-request-booking-btn.active:hover {
    background: var(--blue-dark, #1a3280);
    border-color: var(--blue-dark, #1a3280);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(194, 113, 74, 0.3);
}
.chat-request-booking-btn.active:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(194, 113, 74, 0.2);
}

/* ── Skip to content (accessibility) ─────── */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--blue, #a35a38);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-to-content:focus {
    left: 0;
}

/* ── Suburb coverage status ──────────────────── */
.suburb-status {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}
.suburb-status.open { max-height: 150px; opacity: 1; margin-top: 6px; }
.suburb-status .coverage-loading { color: var(--gray-400, #94a3b8); }
.suburb-status .coverage-spinner {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    animation: coverageSpin 0.8s linear infinite;
}
@keyframes coverageSpin { to { transform: rotate(360deg); } }
.suburb-status .status-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0 2px;
}
.suburb-status .status-inner.covered { color: #16a34a; }
.suburb-status .status-inner.covered svg { color: #16a34a; }
.suburb-status .status-inner.outside { color: var(--gray-500); }
.suburb-status .status-inner svg { width: 14px; height: 14px; flex-shrink: 0; }
.suburb-status .status-inner .chat-ask {
    color: var(--blue);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}
.suburb-status .status-inner .chat-ask:hover { color: var(--blue-dark); }

/* ── Service help chip ───────────────────────── */
.service-help {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}
.service-help.open { max-height: 40px; opacity: 1; margin-top: 8px; }
.service-help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    transition: all 0.15s;
}
.service-help-link:hover { border-color: var(--blue); color: var(--blue); }
.service-help-link svg { width: 12px; height: 12px; }

/* ── Powered by ──────────────────────────────── */
.powered-by {
    text-align: center;
    padding: 24px 0 32px;
    font-size: 0.6875rem;
    color: var(--gray-300);
}
.powered-by a { color: var(--gray-400); text-decoration: none; font-weight: 500; }
.powered-by a:hover { color: var(--gray-600); }

/* ── Loading spinner for slots ───────────────── */
.slots-loading {
    text-align: center;
    padding: 24px 0;
}
.slots-loading .spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.slots-loading p { font-size: 0.8125rem; color: var(--gray-500); }

/* ── Review prompt ───────────────────────────── */
.review-prompt {
    margin-top: 12px;
}
.review-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid var(--blue-50);
    border-radius: var(--radius-sm);
    background: var(--blue-light);
    transition: all 0.15s;
}
.review-link:hover { background: var(--blue-50); }
.review-link svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════
   Receipt mode (booking page as live status page)
   ══════════════════════════════════════════════════ */
.receipt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.receipt-status-pill .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.receipt-status-pill.status-pending { background: #dbeafe; color: #1e40af; }
.receipt-status-pill.status-pending .status-dot { background: #2563eb; }
.receipt-status-pill.status-confirmed { background: #ecfdf5; color: #065f46; }
.receipt-status-pill.status-confirmed .status-dot { background: #10b981; }
.receipt-status-pill.status-declined { background: #fef3c7; color: #92400e; }
.receipt-status-pill.status-declined .status-dot { background: #f59e0b; }
.receipt-status-pill.status-cancelled { background: var(--gray-100); color: var(--gray-500); }
.receipt-status-pill.status-cancelled .status-dot { background: var(--gray-400); }
.receipt-status-pill.status-rescheduled { background: #f5f3ff; color: #5b21b6; }
.receipt-status-pill.status-rescheduled .status-dot { background: #7c3aed; }

.receipt-sep {
    height: 1px;
    background: var(--gray-200);
}

.receipt-action-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.receipt-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    text-decoration: none;
    text-align: center;
}
.receipt-action-btn.btn-call {
    background: var(--primary);
    color: #fff;
}
.receipt-action-btn.btn-call:hover { background: var(--primary-hover); }
.receipt-action-btn.btn-reschedule {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.receipt-action-btn.btn-reschedule:hover { border-color: var(--gray-400); color: var(--gray-900); }
.receipt-action-btn.btn-cancel-booking {
    background: transparent;
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 8px 16px;
}
.receipt-action-btn.btn-cancel-booking:hover { color: #ef4444; }

.cancel-policy-box {
    background: var(--blue-light);
    border: 1px solid var(--blue-50);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}
.cancel-policy-box strong {
    font-weight: 600;
    color: var(--blue);
}

.receipt-cancel-notice {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.receipt-decline-msg {
    text-align: center;
    padding: 14px 16px;
    background: var(--blue-light);
    border: 1px solid var(--blue-50);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--blue-dark);
    margin-top: 10px;
    line-height: 1.55;
}

/* Cancel confirmation overlay */
.receipt-cancel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.45);
    align-items: flex-end;
    justify-content: center;
}
.receipt-cancel-overlay.active { display: flex; }
@media (min-width: 520px) { .receipt-cancel-overlay { align-items: center; padding: 24px; } }
.receipt-cancel-sheet {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px 16px 0 0;
    padding: 28px 24px;
    text-align: center;
}
@media (min-width: 520px) { .receipt-cancel-sheet { border-radius: 16px; } }
.receipt-cancel-sheet h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.receipt-cancel-sheet p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.5;
}
.receipt-cancel-sheet .cancel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.receipt-cancel-sheet .btn-confirm-cancel {
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: #ef4444;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.receipt-cancel-sheet .btn-confirm-cancel:hover { background: #dc2626; }
.receipt-cancel-sheet .btn-confirm-cancel:disabled { opacity: 0.6; cursor: not-allowed; }
.receipt-cancel-sheet .btn-keep {
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.receipt-cancel-sheet .btn-keep:hover { border-color: var(--gray-400); color: var(--gray-900); }

/* ══════════════════════════════════════════════════════════════════
   BOOKING SUMMARY CARD
   ══════════════════════════════════════════════════════════════════ */
#booking-summary {
    margin: 16px 0 0;
}
.bk-summary-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: var(--radius, 12px);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}
.bk-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-800, #1e293b);
    letter-spacing: 0.01em;
}
.bk-summary-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--blue, #a35a38);
}
.bk-summary-datetime {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500, #64748b);
}
.bk-summary-datetime svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--gray-400, #94a3b8);
}
.bk-summary-lines {
    padding: 10px 16px 6px;
}
.bk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-size: 0.8125rem;
    color: var(--gray-700, #334155);
    line-height: 1.45;
}
.bk-summary-row.summary-service {
    font-weight: 600;
    color: var(--gray-800, #1e293b);
}
.bk-summary-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.bk-summary-detail {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--gray-400, #94a3b8);
    white-space: nowrap;
}
.bk-summary-amount {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 12px;
    font-variant-numeric: tabular-nums;
}
.bk-summary-row.summary-surcharge .bk-summary-amount {
    color: var(--blue, #a35a38);
}
.bk-summary-row.summary-free .bk-summary-amount {
    color: #16a34a;
    font-weight: 500;
}
.bk-summary-divider {
    margin: 4px 16px 0;
    border-top: 1px dashed var(--gray-200, #e2e8f0);
}
.bk-summary-row.bk-summary-total {
    padding: 10px 16px 8px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gray-900, #1c1917);
}
.bk-summary-row.bk-summary-total .bk-summary-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900, #1c1917);
}
.bk-summary-row.bk-summary-deposit {
    padding: 4px 16px 2px;
    font-size: 0.75rem;
    color: var(--gray-500, #64748b);
    font-weight: 500;
}
.bk-summary-row.bk-summary-deposit .bk-summary-amount {
    font-weight: 500;
    color: var(--gray-500, #64748b);
}
.bk-summary-row.bk-summary-balance {
    padding: 0 16px 10px;
    font-size: 0.75rem;
    color: var(--gray-500, #64748b);
    font-weight: 400;
}
.bk-summary-row.bk-summary-balance .bk-summary-amount {
    font-weight: 500;
    color: var(--gray-500, #64748b);
}
.bk-summary-footnotes {
    padding: 8px 16px 12px;
    border-top: 1px solid var(--gray-100, #f1f5f9);
    background: var(--gray-50, #f8fafc);
}
.bk-summary-footnote {
    font-size: 0.6875rem;
    color: var(--gray-500, #64748b);
    line-height: 1.5;
    padding: 1px 0;
}

/* ══════════════════════════════════════════════════════════════════
   WELCOME / DESCRIPTION (optional customisation fields)
   ══════════════════════════════════════════════════════════════════ */
.biz-welcome {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 10px;
    line-height: 1.3;
}
.biz-description {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 4px;
    line-height: 1.45;
}


/* ══════════════════════════════════════════════════════════════════
   TEMPLATE: CLASSIC  (default — base styles above apply as-is)
   ══════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════
   TEMPLATE: BRANDED — accent-tinted header using brand colour
   ══════════════════════════════════════════════════════════════════ */
.booking-page[data-template="branded"] .top-accent {
    height: 4px;
    background: var(--blue);
}
.booking-page[data-template="branded"] .top-bar { display: none; }

.booking-page[data-template="branded"] .biz-header {
    background: color-mix(in srgb, var(--blue) 8%, white);
    padding: 28px 24px 20px;
    text-align: center;
}

.booking-page[data-template="branded"] .biz-header h1 {
    font-size: 1.25rem;
    margin-bottom: 3px;
}
.booking-page[data-template="branded"] .biz-header .biz-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.125rem;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, white);
    margin-bottom: 12px;
}
.booking-page[data-template="branded"] .biz-header .biz-sub,
.booking-page[data-template="branded"] .biz-header .biz-trade-sub {
    color: var(--gray-500);
}
.booking-page[data-template="branded"] .biz-header .biz-phone {
    color: var(--blue);
    font-weight: 500;
}
.booking-page[data-template="branded"] .biz-header .biz-credentials {
    border-color: color-mix(in srgb, var(--blue) 15%, white);
    color: var(--gray-600);
}
.booking-page[data-template="branded"] .biz-header .biz-credentials svg {
    color: var(--blue);
    opacity: 0.6;
}
.booking-page[data-template="branded"] .biz-welcome {
    background: color-mix(in srgb, var(--blue) 8%, white);
    color: var(--gray-700);
    padding: 0 24px;
    margin-top: 0;
    padding-bottom: 4px;
    font-size: 0.875rem;
    text-align: center;
}
.booking-page[data-template="branded"] .biz-description {
    background: color-mix(in srgb, var(--blue) 8%, white);
    color: var(--gray-500);
    padding: 0 24px 4px;
    text-align: center;
    font-size: 0.8125rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust strip: tinted background continues */
.booking-page[data-template="branded"] .trust-strip {
    background: color-mix(in srgb, var(--blue) 8%, white);
    padding: 0 20px 16px;
}
.booking-page[data-template="branded"] .trust-pill {
    background: #fff;
    border-color: color-mix(in srgb, var(--blue) 18%, white);
    color: var(--gray-600);
}
.booking-page[data-template="branded"] .trust-pill svg {
    color: var(--blue);
}
.booking-page[data-template="branded"] .trust-pill-link:hover {
    border-color: var(--blue);
    color: var(--gray-800);
}

/* Wider on desktop */
@media (min-width: 520px) {
    .booking-page[data-template="branded"] {
        max-width: 520px;
    }
}

/* Branded with header background image — wraps biz-header + trust-strip */
.header-image-wrap {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: -4px -20px 0;  /* break out of .screen padding, cover top-accent */
}
.header-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    z-index: 0;
}
.header-image-wrap > * {
    position: relative;
    z-index: 1;
}
.booking-page[data-header-image="true"] .biz-header {
    background: transparent;
    padding: 36px 24px 24px;
}
.booking-page[data-header-image="true"] .biz-header h1 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.booking-page[data-header-image="true"] .biz-header .biz-avatar {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}
.booking-page[data-header-image="true"] .biz-header .biz-sub,
.booking-page[data-header-image="true"] .biz-header .biz-trade-sub {
    color: rgba(255,255,255,0.85);
}
.booking-page[data-header-image="true"] .biz-header .biz-phone {
    color: #fff;
}
.booking-page[data-header-image="true"] .biz-header .biz-credentials {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
}
.booking-page[data-header-image="true"] .biz-header .biz-credentials svg {
    color: rgba(255,255,255,0.8);
}
.booking-page[data-header-image="true"] .biz-welcome {
    background: transparent;
    color: rgba(255,255,255,0.9);
}
.booking-page[data-header-image="true"] .biz-description {
    background: transparent;
    color: rgba(255,255,255,0.8);
}
.booking-page[data-header-image="true"] .trust-strip {
    background: transparent;
    padding-top: 0;
}
.booking-page[data-header-image="true"] .trust-pill {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.booking-page[data-header-image="true"] .trust-pill svg {
    color: rgba(255,255,255,0.5);
}
.booking-page[data-header-image="true"] .trust-pill-link:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
}
.booking-page[data-header-image="true"] .trust-pill-link:hover svg {
    color: rgba(255,255,255,0.6);
}


/* ══════════════════════════════════════════════════════════════════
   TEMPLATE: HERO — bold accent header band, form below
   ══════════════════════════════════════════════════════════════════ */
.booking-page[data-template="hero"] .top-accent { display: none; }
.booking-page[data-template="hero"] .top-bar { display: none; }

.booking-page[data-template="hero"] .biz-header {
    background: var(--blue, var(--gray-900));
    color: #fff;
    padding: 40px 44px 32px;
    margin: -4px -20px 0;  /* edge-to-edge, cover top-accent */
    text-align: center;
}
.booking-page[data-template="hero"] .biz-header h1 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.booking-page[data-template="hero"] .biz-header .biz-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.375rem;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
    margin-bottom: 14px;
}
.booking-page[data-template="hero"] .biz-header .biz-sub,
.booking-page[data-template="hero"] .biz-header .biz-trade-sub {
    color: rgba(255,255,255,0.65);
}
.booking-page[data-template="hero"] .biz-header .biz-phone {
    color: rgba(255,255,255,0.85);
}
.booking-page[data-template="hero"] .biz-header .biz-credentials {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.booking-page[data-template="hero"] .biz-header .biz-credentials svg {
    color: rgba(255,255,255,0.5);
}
.booking-page[data-template="hero"] .biz-welcome {
    color: #fff;
    font-size: 1rem;
    margin-top: 14px;
}
.booking-page[data-template="hero"] .biz-description {
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust strip on hero — sits at bottom of hero band */
.booking-page[data-template="hero"] .trust-strip {
    background: var(--gray-900);
    margin: 0 -20px;  /* edge-to-edge */
    padding: 0 40px 20px;
}
.booking-page[data-template="hero"] .trust-pill {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
}
.booking-page[data-template="hero"] .trust-pill svg {
    color: rgba(255,255,255,0.4);
}
.booking-page[data-template="hero"] .trust-pill-link:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}
.booking-page[data-template="hero"] .trust-pill-link:hover svg {
    color: rgba(255,255,255,0.6);
}

/* Hero on desktop — wider card for visual impact */
@media (min-width: 520px) {
    .booking-page[data-template="hero"] {
        max-width: 560px;
    }
}


/* ══════════════════════════════════════════════════════════════════
   TEMPLATE: CLEAN  (minimal — just the booking form, no extras)
   ══════════════════════════════════════════════════════════════════ */
.booking-page[data-template="clean"] .top-accent,
.booking-page[data-template="clean"] .biz-header,
.booking-page[data-template="clean"] .trust-strip {
    display: none !important;
}
.booking-page[data-template="clean"] .top-bar {
    text-align: center;
    padding: 20px 20px 8px;
    border-bottom: none;
}
.booking-page[data-template="clean"] .top-bar-title {
    font-size: 1.125rem;
    font-weight: 600;
}
.booking-page[data-template="clean"] .top-bar-verified {
    display: none;
}
