@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@600;700&display=swap");

:root {
  --primary: #B91C1C;
  --gold: #D4AF37;
  --base: #0A0A0A;
  --surface: #141414;
  --surface2: #1A1A1A;
  --text: #F5F5F5;
  --muted: #9CA3AF;
  --border: #2A2A2A;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

.tbw-wrap {
  padding: 1rem;
}

.tbw-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tbw-header {
  padding: 1.25rem 1.25rem 0.25rem;
}

.tbw-kicker {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.tbw-title {
  margin: 0.35rem 0 0.25rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
}

.tbw-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tbw-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tbw-stephead .tbw-step-title,
.tbw-stephead h3.tbw-step-title {
  margin: 0 0 0.35rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tbw-stephead .tbw-step-sub,
.tbw-stephead p.tbw-step-sub {
  margin: 0 0 1rem;
  color: var(--muted);
}

.tbw-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.tbw-dot.tbw-dot--active,
.tbw-dot.active {
  background: rgba(212, 175, 55, 0.85);
}

.tbw-dot.tbw-dot--done,
.tbw-dot.done {
  background: rgba(185, 28, 28, 0.65);
  border-color: rgba(185, 28, 28, 0.75);
}

.tbw-steps {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem 0.25rem;
}

.tbw-stepdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.tbw-stepdot.active {
  background: rgba(212, 175, 55, 0.85);
}

.tbw-stepdot.done {
  background: rgba(185, 28, 28, 0.65);
  border-color: rgba(185, 28, 28, 0.75);
}

.tbw-toast {
  margin: 0.5rem 1.25rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(20, 20, 20, 0.8);
  color: var(--text);
}

.tbw-step {
  padding: 1.25rem;
}

.tbw-stephead h4 {
  margin: 0 0 0.35rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tbw-stephead p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.tbw-actions {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tbw-btn {
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--text);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.78rem;
}

.tbw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tbw-btn-ghost {
  background: transparent;
  border-color: var(--gold);
}

.tbw-muted {
  color: var(--muted);
  margin: 0;
}

/* Step 1 — services */
.tbw-services {
  display: grid;
  gap: 1rem;
}

.tbw-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.tbw-cat-head {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--border);
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.tbw-cat-body {
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.tbw-svc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  padding: 0.85rem;
  display: grid;
  gap: 0.25rem;
}

.tbw-svc.selected {
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.tbw-svc-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.tbw-svc-name {
  font-weight: 600;
}

.tbw-svc-meta {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tbw-svc-price {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  letter-spacing: 0.06em;
}

.tbw-svc-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.tbw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Step 2 — calendar + slots */
.tbw-grid2 {
  display: grid;
  gap: 1rem;
}

.tbw-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tbw-cal-month {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tbw-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
}

.tbw-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.tbw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.tbw-day {
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.tbw-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tbw-day.selected {
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.tbw-banner {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(185, 28, 28, 0.5);
  background: rgba(185, 28, 28, 0.12);
  color: var(--text);
}

.tbw-slots-head {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.tbw-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.tbw-slot {
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.tbw-slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tbw-slot.selected {
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Step 3 — form */
.tbw-form {
  display: grid;
  gap: 0.85rem;
}

.tbw-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.tbw-field input,
.tbw-field textarea {
  width: 100%;
  padding: 0.75rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.tbw-acks {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tbw-ack {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.tbw-ack-text { color: var(--text); }

.tbw-ack-opts {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Step 4 — summary */
.tbw-summary {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.tbw-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.9);
}

.tbw-sum-row:last-child { border-bottom: none; }

.tbw-sum-k { color: var(--muted); }
.tbw-sum-v { color: var(--text); font-weight: 600; }

/* Add-ons step */
.tbw-addons-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}

.tbw-addon-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--brand-border, #e5e7eb);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tbw-addon-card:has(input:checked) {
  border-color: var(--brand-primary, var(--primary));
  background: var(--brand-primary-light, rgba(185, 28, 28, 0.12));
}

.tbw-addon-card input {
  flex-shrink: 0;
  accent-color: var(--primary);
}

.tbw-addon-name {
  flex: 1;
  font-weight: 500;
  color: var(--text);
}

.tbw-addon-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.tbw-addon-duration {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tbw-addons-actions {
  justify-content: space-between;
  align-items: center;
}

.tbw-addons-skip {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
}

.tbw-addons-skip:hover {
  color: var(--gold);
}

@media (min-width: 860px) {
  .tbw-wrap { padding: 1.25rem; }
  .tbw-grid2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .tbw-slots { grid-template-columns: repeat(3, 1fr); }
}

/* ── Availability pill (avii-style) ─────────────────────────── */
.tbw-avail-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 9999px;
  padding: 7px 20px;
  font-size: 12px;
  color: #D4A853;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 auto 20px;
  width: fit-content;
  max-width: 100%;
}

/* ── Service cards ───────────────────────────────────────────── */
.tbw-cat-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4A853;
  padding: 16px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.tbw-cat-services { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tbw-svc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tbw-svc-card:hover { border-color: rgba(212,168,83,0.5); background: rgba(212,168,83,0.06); }
.tbw-svc-card--selected { border-color: #D4A853 !important; background: rgba(212,168,83,0.1) !important; }
.tbw-svc-info { flex: 1; min-width: 0; }
.tbw-svc-name { font-size: 15px; font-weight: 600; color: #fff; }
.tbw-svc-meta { font-size: 13px; color: #999; margin-top: 2px; display: flex; gap: 10px; }
.tbw-svc-desc { font-size: 12px; color: #777; margin-top: 4px; }
.tbw-svc-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(212,168,83,0.6);
  color: #D4A853;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tbw-svc-btn:hover,
.tbw-svc-card--selected .tbw-svc-btn { background: #D4A853; color: #0a0a0a; }

.tbw-more-btn {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(212,168,83,0.4);
  color: #D4A853;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin: 4px 0 8px;
  transition: border-color 0.2s, background 0.2s;
}
.tbw-more-btn:hover {
  border-color: #D4A853;
  background: rgba(212,168,83,0.06);
}

.tbw-btn-primary {
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--text);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.78rem;
}
.tbw-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.tbw-btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ── Calendar ────────────────────────────────────────────────── */
.tbw-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tbw-cal-title { font-size: 15px; font-weight: 600; color: #fff; }
.tbw-icon-btn { background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; color: #fff; width: 32px; height: 32px; cursor: pointer; font-size: 14px; }
.tbw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tbw-cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: #666; padding: 4px 0; }
.tbw-cal-empty { min-height: 36px; }
.tbw-cal-day {
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; border-radius: 6px; font-size: 14px;
  cursor: default;
}
.tbw-cal-day--avail { color: #fff; cursor: pointer; background: rgba(255,255,255,0.06); }
.tbw-cal-day--avail:hover { background: rgba(212,168,83,0.2); color: #D4A853; }
.tbw-cal-day--selected { background: #D4A853 !important; color: #0a0a0a !important; font-weight: 700; }
.tbw-cal-day--unavail { color: #444; }
.tbw-cal-day--past { color: #333; }

/* ── Time slots ──────────────────────────────────────────────── */
.tbw-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tbw-slot-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tbw-slot-btn:hover { border-color: rgba(212,168,83,0.5); background: rgba(212,168,83,0.08); }
.tbw-slot-btn--selected { background: #D4A853; border-color: #D4A853; color: #0a0a0a; font-weight: 700; }

/* ── Step 4: summary + form ──────────────────────────────────── */
.tbw-summary-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.tbw-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 14px; color: #aaa; }
.tbw-summary-row strong { color: #fff; }
.tbw-summary-total { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.tbw-summary-total strong { color: #D4A853; font-size: 18px; }
.tbw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tbw-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.tbw-input:focus { border-color: #D4A853; }
.tbw-input::placeholder { color: #555; }
.tbw-agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #888; margin: 12px 0 16px; cursor: pointer; }
.tbw-agree-row input { margin-top: 2px; accent-color: #D4A853; flex-shrink: 0; }
.tbw-btn-pay {
  background: #D4A853;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}
.tbw-btn-pay:hover { background: #c49840; }
.tbw-btn-pay:disabled { background: #555; color: #888; cursor: not-allowed; }

.tbw-stepdot.tbw-dot--active,
.tbw-stepdot.active { background: rgba(212, 175, 55, 0.85); }
.tbw-stepdot.tbw-dot--done,
.tbw-stepdot.done { background: rgba(185, 28, 28, 0.65); border-color: rgba(185, 28, 28, 0.75); }

/* ── Utility ─────────────────────────────────────────────────── */
.tbw-loading { color: #888; font-size: 14px; padding: 20px 0; text-align: center; }
.tbw-error { color: #e05; font-size: 13px; padding: 12px 0; }
.tbw-empty { color: #888; font-size: 13px; padding: 12px 0; }
.tbw-toast { display: none; }
.tbw-toast--visible {
  display: block;
  background: #1a0a0a;
  border: 1px solid #e05;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f88;
  margin: 0 1.25rem 12px;
}
.tbw-toast--success { border-color: #0a3; color: #4f4; background: #0a1a0a; }

.tbw-addon-item { margin-bottom: 8px; }
.tbw-addon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
}
.tbw-addon-name { flex: 1; color: #fff; font-size: 14px; }
.tbw-addon-price { color: #D4A853; font-size: 13px; font-weight: 600; }

@media (max-width: 480px) {
  .tbw-form-row { grid-template-columns: 1fr; }
  .tbw-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

