/* ============================================================
   booking-modern.css
   Dark theme for Revyfy.Booking — matches Revyfy.App branding.
   Drop-in replacement for booking.css — same selectors, dark colors.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #e60e89;
    --primary-600: #c70b76;
    --chip: #e60e89;
    --bg: #1f2232;
    --muted: #a0a3b8;
    --line: rgba(255, 255, 255, 0.07);
    --shadow: 0 12px 28px rgba(0,0,0,.4);
    --radius: 16px;

    /* Revyfy extended tokens */
    --rev-surface-0: #181a28;
    --rev-surface-1: #1f2232;
    --rev-surface-2: #212332;
    --rev-surface-3: #2a2d3f;
    --rev-border-strong: rgba(255, 255, 255, 0.12);
    --rev-text: #ebedf0;
    --rev-text-muted: #a0a3b8;
    --rev-accent: #e60e89;
    --rev-green: #10b981;
    --rev-red: #ef4444;
    --rev-glow-pink: 0 0 0 3px rgba(230, 14, 137, 0.18);
    --rev-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--rev-surface-0);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--rev-text);
}

/* ============================================================
   Modal shell
   ============================================================ */
.modal {
    max-width: 600px;
    max-height: 90vh;
    min-height: 400px;
    margin: 40px auto;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--rev-surface-3) transparent;
}

.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-thumb { background-color: var(--rev-surface-3); border-radius: 3px; }
.modal::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   Header / Body / Footer
   ============================================================ */
.header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--rev-text);
}

.body {
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
    padding: 20px 24px 8px;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 16px 24px 20px;
    background: var(--rev-surface-2);
}

/* ============================================================
   Business Bar
   ============================================================ */
.business-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--rev-surface-2);
    border-bottom: 1px solid var(--line);
    min-height: 140px;
}

.biz-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    padding: 6px;
    border: 3px solid var(--rev-border-strong);
}

.biz-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biz-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--rev-text);
}

.biz-address {
    font-size: 14px;
    color: var(--rev-text-muted);
}

.biz-phone {
    font-size: 14px;
    color: var(--rev-text-muted);
}

.biz-rating {
    margin-top: 4px;
    font-size: 13px;
    color: #f39c12;
}

/* ============================================================
   Date Scroller
   ============================================================ */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scroller-wrap {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 18px;
}

.scroller-wrap.disabled { opacity: 0.4; pointer-events: none; }

.scroller {
    display: flex;
    gap: 10px;
    overflow: auto;
    scrollbar-width: none;
    padding: 4px;
}

.scroller::-webkit-scrollbar { display: none; }

.day {
    width: 64px;
    height: 84px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--rev-text);
    box-shadow: none;
    background: var(--rev-surface-2);
    cursor: pointer;
    transition: all var(--rev-transition);
}

.day:hover { border-color: var(--rev-accent); }

.day strong {
    font-size: 18px;
    margin-top: 2px;
}

.day .tick {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: var(--rev-green);
    margin-top: 10px;
}

.day.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(230, 14, 137, 0.2);
}

.day.active .tick {
    background: #ffd84d;
    width: 22px;
}

.day.unavailable {
    background: rgba(239, 68, 68, 0.08);
    color: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.15);
    cursor: not-allowed;
}

.day.unavailable strong {
    color: rgba(239, 68, 68, 0.6);
}

.day.unavailable .tick {
    background: rgba(239, 68, 68, 0.25);
}

.day.unavailable:hover { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.2); }

/* Arrow buttons */
.ghost {
    position: static;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rev-surface-3);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    box-shadow: none;
    cursor: pointer;
    transition: all var(--rev-transition);
}

.ghost:hover { background: var(--rev-surface-2); }
.ghost.left { justify-self: start; }
.ghost.right { justify-self: end; }
.ghost svg { width: 18px; height: 18px; color: var(--rev-text-muted); }

/* ============================================================
   Segmented filter (Morning / Afternoon / Evening)
   ============================================================ */
.segment {
    margin: 6px 40px 14px;
    background: var(--rev-surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.seg-btn {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    font-weight: 600;
    color: var(--rev-text-muted);
    cursor: pointer;
    transition: all var(--rev-transition);
    font-family: inherit;
}

.seg-btn:hover:not(.active):not(.empty) { color: var(--rev-text); }

.seg-btn.active {
    background: var(--rev-surface-3);
    color: var(--rev-text);
    box-shadow: none;
    border: 1px solid var(--rev-border-strong);
}

.seg-btn.empty {
    color: rgba(239, 68, 68, 0.45);
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(239, 68, 68, 0.06);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.3);
}

.seg-btn.empty .seg-count {
    color: rgba(239, 68, 68, 0.5);
    text-decoration: none;
    display: inline-block;
}

.seg-count {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================================
   Time Chips
   ============================================================ */
.times-wrap {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin: 8px 0 18px;
}

.times-wrap.disabled { opacity: 0.4; pointer-events: none; }

.times {
    column-count: 3;
    column-gap: 10px;
    padding: 4px;
}

.times::-webkit-scrollbar { display: none; }

.time-row.disabled {
    text-align: center;
    padding: 16px;
    color: var(--rev-text-muted);
}

.time-row.disabled h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--rev-text-muted);
}

.chip {
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 600;
    color: var(--rev-text);
    background: var(--rev-surface-3);
    cursor: pointer;
    transition: all var(--rev-transition);
    break-inside: avoid;
}

.chip:hover { border-color: var(--rev-accent); }

.chip.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(230, 14, 137, 0.15);
}

/* ============================================================
   Service Card (selected)
   ============================================================ */
.card {
    background: var(--rev-surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 18px 16px;
    margin-top: 12px;
    position: relative;
    transition: border-color var(--rev-transition);
}

.card:hover { border-color: var(--rev-border-strong); }

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-info { flex: 1; }

.card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--rev-text);
}

.card-desc {
    font-size: 13px;
    color: var(--rev-text-muted);
}

.card-right {
    text-align: right;
    min-width: 80px;
}

.card-price {
    font-weight: 700;
    color: var(--rev-accent);
}

.card-time {
    font-size: 13px;
    color: var(--rev-text-muted);
    margin-top: 2px;
}

.card-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--rev-surface-3);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: var(--rev-text-muted);
    cursor: pointer;
    transition: all var(--rev-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-remove:hover { color: var(--rev-red); background: rgba(239,68,68,0.15); }

.divider {
    height: 1px;
    background: var(--line);
    margin: 12px 0;
}

.line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.muted {
    color: var(--rev-text-muted);
    font-size: 13px;
}

.btn-change {
    border: 1px solid var(--rev-accent);
    background: transparent;
    color: var(--rev-accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all var(--rev-transition);
}

.btn-change:hover { background: rgba(230, 14, 137, 0.1); }

.add-link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rev-accent);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--rev-transition);
}

.add-link:hover { opacity: 0.8; }

/* ============================================================
   Footer Totals + Primary Button
   ============================================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.total-wrap { text-align: right; }
.total-wrap small { color: var(--rev-text-muted); }

.total-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--rev-accent);
}

.total-min {
    font-size: 13px;
    color: var(--rev-text-muted);
    margin-top: 2px;
}

.btn-primary {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 800;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(230, 14, 137, 0.25);
    transition: all var(--rev-transition);
}

.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   Step Visibility
   ============================================================ */
.step { display: none; }
.step.active { display: block; animation: rev-fade-in 0.25s ease; }

/* ============================================================
   Step 2 — Select Service
   ============================================================ */
.s2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.s2-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
    margin: -6px;
    color: var(--rev-text-muted);
}

.back-btn svg { width: 22px; height: 22px; }

.brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--rev-text);
}

.rating { font-weight: 700; }

.search { margin: 8px 0 16px; }

.search input {
    width: 100%;
    border: 1px solid var(--rev-border-strong);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: 0;
    background: var(--rev-surface-2);
    color: var(--rev-text);
    font-family: inherit;
    transition: border-color var(--rev-transition);
}

.search input::placeholder { color: var(--rev-text-muted); }
.search input:focus { border-color: var(--rev-accent); box-shadow: var(--rev-glow-pink); }

/* Category sections */
.section {
    margin: 12px 0;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 12px 16px;
    background: var(--rev-surface-2);
    transition: background var(--rev-transition);
}

.sec-head:hover { background: var(--rev-surface-3); }

.sec-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--rev-text);
}

.badge {
    background: var(--rev-surface-3);
    color: var(--rev-text-muted);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.chev {
    transition: transform .18s ease;
    color: var(--rev-text-muted);
}

.collapsed .chev { transform: rotate(-90deg); }

.list {
    border-top: 1px solid var(--line);
    padding: 0 16px;
}

.item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.item:last-child { border-bottom: none; }

.i-title {
    font-weight: 600;
    color: var(--rev-text);
}

.i-sub {
    font-size: 13px;
    color: var(--rev-text-muted);
}

.i-right {
    min-width: 120px;
    text-align: right;
    color: var(--rev-accent);
    font-weight: 600;
}

.old {
    color: var(--rev-text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

.dur {
    display: block;
    font-size: 13px;
    color: var(--rev-text-muted);
    margin-top: 4px;
}

.btn-book {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--rev-transition);
}

.btn-book:hover { filter: brightness(1.1); }

/* Child category */
.child-category {
    margin-top: 16px;
    padding: 10px 12px;
    background: var(--rev-surface-3);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.child-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rev-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   Step 3 — Staff
   ============================================================ */
.staff {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--rev-surface-2);
    cursor: pointer;
    position: relative;
    transition: all var(--rev-transition);
}

.st-item:hover { border-color: var(--rev-accent); }

.st-item.is-selected {
    border-color: var(--rev-accent);
    background: rgba(230, 14, 137, 0.08);
}

.pfp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rev-surface-3);
    object-fit: cover;
    border: 2px solid var(--rev-border-strong);
}

.pfp.no-pref {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rev-surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rev-text-muted);
    font-size: 20px;
}

.st-name {
    font-weight: 600;
    color: var(--rev-text);
}

.st-sub {
    font-size: 13px;
    color: var(--rev-text-muted);
}

.blue { color: var(--rev-accent); }
.green { color: var(--rev-green); }
.red { color: var(--rev-red); }

.st-check {
    margin-left: auto;
    font-size: 18px;
    color: var(--rev-accent);
    opacity: 0;
    transition: opacity .15s ease;
}

.st-item.is-selected .st-check { opacity: 1; }

/* ============================================================
   Form Inputs
   ============================================================ */
.form-input {
    padding: 12px;
    border: 1px solid var(--rev-border-strong);
    border-radius: 8px;
    font-size: 14px;
    background: var(--rev-surface-2);
    color: var(--rev-text);
    font-family: inherit;
    outline: none;
    transition: border-color var(--rev-transition);
    width: 100%;
    box-sizing: border-box;
}

.form-input::placeholder { color: var(--rev-text-muted); }
.form-input:focus { border-color: var(--rev-accent); box-shadow: var(--rev-glow-pink); }
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }

.selected-client-box {
    border: 2px solid var(--rev-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    color: var(--rev-green);
}

/* ============================================================
   Booking Date Display (Step 4)
   ============================================================ */
.booking-date {
    background: var(--rev-surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    color: var(--rev-text);
}

/* ============================================================
   Validation
   ============================================================ */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--rev-green); }
.invalid { outline: 1px solid var(--rev-red); }
.validation-message { color: var(--rev-red); }

.validation-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--rev-red);
    border-radius: 8px;
    color: var(--rev-red);
    font-size: 14px;
}

/* ============================================================
   Loading Spinner
   ============================================================ */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--rev-text-muted);
    padding: 20px;
}

.loading-spinner i { margin-bottom: 8px; color: var(--rev-accent); }

/* ============================================================
   Success Container (Step 5)
   ============================================================ */
.success-container {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.success-container .icon {
    font-size: 80px;
    color: var(--rev-green);
    margin-bottom: 16px;
}

.success-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--rev-text);
    margin-bottom: 12px;
}

.success-container .lead {
    color: var(--rev-text-muted);
}

.success-container .summary {
    background: var(--rev-surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 30px;
    display: inline-block;
    text-align: left;
    margin-top: 20px;
    color: var(--rev-text);
}

.success-container .summary h5 {
    margin-bottom: 15px;
    color: var(--rev-accent);
    font-family: 'Montserrat', sans-serif;
}

.success-container .total {
    font-size: 18px;
    margin-top: 10px;
}

/* ============================================================
   Error Page
   ============================================================ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--rev-surface-0);
    padding: 20px;
}

.error-card {
    background: var(--rev-surface-1);
    max-width: 600px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.error-icon {
    font-size: 48px;
    color: var(--rev-red);
    margin-bottom: 16px;
}

.error-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--rev-text);
}

.error-card p {
    font-size: 16px;
    color: var(--rev-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--rev-transition);
}

.error-btn:hover { background: var(--primary-600); }

/* ============================================================
   Blazor Error UI
   ============================================================ */
#blazor-error-ui {
    background: var(--rev-surface-1);
    color: var(--rev-text);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 2px solid var(--rev-red);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred."; }

/* ============================================================
   Mobile Tweaks
   ============================================================ */
@media (max-width: 640px) {
    .modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .header { font-size: 16px; padding: 14px 16px; }
    .body { padding: 16px; }
    .footer { padding: 14px 16px; }

    .scroller { gap: 8px; padding: 4px; }
    .times { column-gap: 8px; padding: 4px; }

    .segment { margin: 6px 36px 10px; }
    .seg-btn { min-width: unset; padding: 8px 6px; font-size: 13px; }
    .seg-count { font-size: 11px; }

    .day { width: 60px; height: 80px; cursor: pointer; }
    .day strong { font-size: 16px; }

    .chip { font-size: 13px; padding: 10px 12px; }

    .footer-grid {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .total-wrap { text-align: right; }

    .business-bar { padding: 16px; gap: 14px; min-height: auto; }
    .biz-logo { width: 60px; height: 60px; }
    .biz-name { font-size: 18px; }

    .item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
    }

    .item > div:first-child {
        grid-column: 1 / -1;
    }

    .i-right {
        min-width: unset;
    }

    .btn-book {
        padding: 8px 14px;
    }
}

/* ============================================================
   Booking Stepper
   ============================================================ */
.booking-stepper {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--line);
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.stepper-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--rev-surface-3);
    color: var(--rev-text-muted);
    border: 2px solid var(--rev-border-strong);
    transition: all var(--rev-transition);
}

.stepper-item.active .stepper-circle {
    background: var(--rev-accent);
    color: #fff;
    border-color: var(--rev-accent);
    box-shadow: 0 0 0 4px rgba(230, 14, 137, 0.15);
}

.stepper-item.complete .stepper-circle {
    background: var(--rev-green);
    color: #fff;
    border-color: var(--rev-green);
}

.stepper-label {
    font-size: 11px;
    color: var(--rev-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.stepper-item.active .stepper-label { color: var(--rev-text); }

.stepper-line {
    flex: 1;
    height: 2px;
    background: var(--rev-border-strong);
    margin: 0 6px;
    margin-bottom: 18px;
    transition: background var(--rev-transition);
}

.stepper-line.complete { background: var(--rev-green); }

@media (max-width: 640px) {
    .booking-stepper { padding: 12px 16px; }
    .stepper-label { font-size: 10px; }
    .stepper-circle { width: 26px; height: 26px; font-size: 11px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes rev-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
