/* Booklane public UI */
:root {
  --bg: #f6f4f1; --surface: #ffffff; --surface-2: #faf9f7; --ink: #1c1a22; --ink-2: #4a4655; --muted: #8b8795; --line: #e8e4de; --line-2: #d9d4cc;
  --ok: #1f8a5b; --warn: #b7791f; --err: #c53d3d; --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(20,15,30,.04), 0 12px 40px -12px rgba(20,15,30,.12);
  --brand-soft: rgba(var(--brand-rgb), .09); --brand-line: rgba(var(--brand-rgb), .35);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.is-embed { background: transparent; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; background: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(var(--brand-rgb), .8); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-link { color: var(--ink-2); padding: 8px 6px; }
.btn-link:hover { color: var(--ink); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field .req { color: var(--brand); }
.input, .select, .textarea { width: 100%; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex: none; }

/* Option cards (URBN-style pills) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.options.list { grid-template-columns: 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 13px 14px; cursor: pointer; font-weight: 600; font-size: 14px; text-align: left; transition: border-color .15s, background .15s; min-height: 52px; }
.opt:hover { border-color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; transition: all .15s; }
.opt.radio .tick { border-radius: 50%; }
.opt.is-on { border-color: var(--brand); background: var(--brand-soft); }
.opt.is-on .tick { background: var(--brand); border-color: var(--brand); }
.opt.is-on .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt:focus-within { box-shadow: 0 0 0 4px var(--brand-soft); }

/* Booking shell */
.shell { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.is-embed .shell { min-height: 0; padding: 8px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.booker { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }
.booker-side { padding: 28px; border-right: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 18px; }
.booker-main { padding: 28px 32px 24px; min-height: 560px; display: flex; flex-direction: column; }
.biz { display: flex; align-items: center; gap: 12px; }
.biz-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; overflow: hidden; flex: none; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-name { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.event-title { font-size: 24px; font-weight: 800; }
.meta-list { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.meta-list div { display: flex; gap: 10px; align-items: center; }
.meta-list svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.trust { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.urgency { display: inline-flex; gap: 8px; align-items: center; background: #fff4e5; color: #8a4b00; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; align-self: flex-start; }
.urgency::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f08c00; box-shadow: 0 0 0 0 rgba(240,140,0,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(240,140,0,0); } 100% { box-shadow: 0 0 0 0 rgba(240,140,0,0); } }
.selected-time { border: 1.5px solid var(--brand-line); background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; }

.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.progress-bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .35s ease; }
.progress-count { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-head { margin-bottom: 20px; }
.step-head h2 { font-size: 26px; font-weight: 800; }
.step-head p { margin: 6px 0 0; color: var(--muted); }
.step-body { flex: 1; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.save-state { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.save-state.saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.form-error { background: #fdecec; color: var(--err); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

/* Calendar */
.sched { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-size: 16px; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.cal-day { aspect-ratio: 1; max-height: 52px; border-radius: 50%; border: 0; background: none; font-weight: 600; font-size: 14px; color: var(--line-2); cursor: default; position: relative; font-variant-numeric: tabular-nums; }
.cal-day.avail { color: var(--brand); background: var(--brand-soft); cursor: pointer; font-weight: 700; }
.cal-day.avail:hover { background: rgba(var(--brand-rgb), .18); }
.cal-day.sel { background: var(--brand); color: #fff; }
.cal-day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.slots { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.slots-title { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.slot { border: 1.5px solid var(--brand-line); color: var(--brand); background: var(--surface); border-radius: 10px; padding: 11px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: all .12s; }
.slot:hover { border-color: var(--brand); }
.slot.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.tz-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.tz-row select { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; background: var(--surface); max-width: 260px; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 14px; }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, #f3f0eb 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Done / confirmation */
.done { text-align: center; padding: 20px 0; max-width: 520px; margin: 0 auto; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.done h2 { font-size: 28px; font-weight: 800; }
.summary { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; margin: 22px 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary div:last-child { border-bottom: 0; }
.summary dt, .summary .k { color: var(--muted); }
.summary .v { font-weight: 600; text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Profile page */
.profile { width: 100%; max-width: 760px; }
.profile-hero { text-align: center; padding: 36px 28px 26px; }
.profile-hero .biz-logo { width: 64px; height: 64px; font-size: 26px; margin: 0 auto 14px; border-radius: 18px; }
.profile-hero h1 { font-size: 30px; font-weight: 800; }
.profile-hero p { color: var(--ink-2); margin: 8px auto 0; max-width: 520px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 28px 28px; }
.path { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; background: var(--surface); }
.path:hover { border-color: var(--brand); transform: translateY(-2px); }
.path .dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.path h3 { font-size: 18px; font-weight: 800; }
.path p { margin: 0; color: var(--muted); font-size: 14px; }
.path .go { margin-top: auto; font-weight: 700; color: var(--brand); font-size: 14px; }
.et-list { display: flex; flex-direction: column; gap: 10px; padding: 0 28px 28px; }
.et-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.et-row:hover { border-color: var(--brand); }
.et-row .bar { width: 5px; align-self: stretch; border-radius: 4px; }
.et-row h4 { margin: 0; font-size: 16px; }
.section-label { padding: 0 28px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.powered { text-align: center; font-size: 12px; color: var(--muted); padding: 18px; }
.powered a { color: inherit; }

/* Home */
.home { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.home-card { max-width: 560px; text-align: center; }
.home-card h1 { font-size: 48px; font-weight: 800; margin: 14px 0 10px; }
.home-card p { color: var(--ink-2); font-size: 18px; }
.home-actions { display: flex; gap: 12px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.logo-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); margin: 0 auto; }

/* Quote builder */
.quoter { width: 100%; max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.quoter-main { padding: 28px 32px 24px; min-height: 560px; display: flex; flex-direction: column; }
.quote-side { position: sticky; top: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.quote-side h3 { font-size: 16px; font-weight: 800; }
.q-lines { display: flex; flex-direction: column; gap: 10px; }
.q-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.q-line .n { font-weight: 600; }
.q-line .d { color: var(--muted); font-size: 12px; }
.q-line .a { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-totals { border-top: 1px dashed var(--line-2); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.q-totals div { display: flex; justify-content: space-between; }
.q-totals .disc { color: var(--ok); font-weight: 600; }
.q-total { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.q-hint { background: var(--brand-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc { border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .15s; }
.svc.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.svc-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; }
.svc-head .tick { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-2); flex: none; margin-top: 2px; display: grid; place-items: center; }
.svc.is-on .svc-head .tick { background: var(--brand); border-color: var(--brand); }
.svc.is-on .svc-head .tick::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.svc-title { font-weight: 800; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.svc-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.svc-price { margin-left: auto; text-align: right; font-weight: 700; white-space: nowrap; font-size: 14px; }
.svc-price small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.svc-body { padding: 0 18px 18px 56px; display: flex; flex-direction: column; gap: 16px; }
.svc-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choice { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 12px; cursor: pointer; background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 3px; }
.choice:hover { border-color: var(--ink-2); }
.choice.is-on { border-color: var(--brand); background: var(--brand-soft); }
.choice .cn { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.choice .cd { font-size: 12px; color: var(--muted); }
.addon { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.addon:last-child { border-bottom: 0; }
.addon .an { flex: 1; font-weight: 600; }
.addon .ap { color: var(--muted); font-size: 13px; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--surface); cursor: pointer; font-size: 18px; font-weight: 600; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 46px; text-align: center; border: 0; font-weight: 700; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-row { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ns { border: 1.5px solid var(--line-2); border-radius: 16px; padding: 18px; text-align: left; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: all .15s; }
.ns:hover { border-color: var(--brand); transform: translateY(-2px); }
.ns.primary { border-color: var(--brand); background: var(--brand-soft); }
.ns .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.ns h4 { margin: 0; font-size: 16px; }
.ns p { margin: 0; font-size: 13px; color: var(--muted); }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.review-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.review-table .sub { color: var(--muted); font-size: 13px; }
.nav-total { display: none; }
.q-mobile-head { display: none; }
.modal-back.no-anim { animation: none; }
.terms { font-size: 12px; color: var(--muted); }
.modal-back { position: fixed; inset: 0; background: rgba(20, 16, 30, .5); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 26px; box-shadow: var(--shadow); }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }

@media (max-width: 860px) {
  .shell { padding: 0; }
  .card.booker, .card.profile { border-radius: 0; border: 0; min-height: 100vh; }
  .is-embed .card.booker { min-height: 0; border-radius: var(--radius); border: 1px solid var(--line); }
  .booker { grid-template-columns: 1fr; }
  .booker-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; gap: 10px; }
  .booker-side .trust, .booker-side .desc { display: none; }
  .booker-side .event-title { font-size: 20px; }
  .meta-list { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
  .booker-main, .quoter-main { padding: 20px 16px; min-height: 0; }
  .sched { grid-template-columns: 1fr; }
  .slots { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .step-head h2 { font-size: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .quoter { grid-template-columns: 1fr; gap: 0; }
  .quoter .card.quoter-main { border-radius: 0; border: 0; }
  .quote-side { display: none; }
  .q-mobile-head { display: flex; margin-bottom: 16px; }
  .nav-total { display: flex; flex-direction: column; line-height: 1.15; font-size: 12px; color: var(--muted); } .nav-total b { font-size: 18px; color: var(--ink); }
  .svc-body { padding: 0 14px 16px; }
  .next-steps { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; padding: 0 16px 20px; }
  .et-list, .section-label { padding-left: 16px; padding-right: 16px; }
  .step-nav { position: sticky; bottom: 0; background: var(--surface); margin: 16px -16px -20px; padding: 12px 16px; }
  .step-nav .btn-primary { flex: 1; }
}
