/* Lush Beauty by Tuno — booking UI
   Design tokens and component patterns lifted from the approved
   "Booking Flow" mockups (design-canvas artifact), adapted into one
   responsive stylesheet instead of separate mobile/tablet/desktop pages. */

:root {
  --ground: #f7dde2;
  --surface: #fffbfa;
  --surface-2: #fdeef1;
  --ink: #241d1c;
  --muted: #8a6b6f;
  --rose: #b5677a;
  --rose-deep: #7d4457;
  --line: #eccdd3;
  --line-strong: #dba9b3;
  --danger: #b3413a;
  --danger-bg: #fbe7e5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Jost', 'Work Sans', ui-sans-serif, sans-serif;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
.display { font-family: 'Playfair Display', Georgia, serif; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- App shell ---------- */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ground);
  position: relative;
}
.navbar {
  flex: 0 0 auto;
  height: 56px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.navbar .back {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; border: none; background: transparent; color: var(--ink);
  padding: 0;
}
.navbar .back:hover { background: var(--surface-2); }
.navbar .mark { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.navbar .title { font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.navbar .spacer { flex: 1; }
.navbar .ig { font-size: 11.5px; font-weight: 600; color: var(--rose-deep); }

.content {
  flex: 1; min-height: 0;
  padding: 20px 18px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.bottombar {
  flex: 0 0 auto;
  padding: 14px 18px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; bottom: 0;
}
.bottombar.transparent { border-top: none; background: var(--ground); }

/* ---------- Buttons ---------- */
.btn-primary {
  height: 52px; border-radius: 12px; border: none;
  background: var(--rose-deep); color: var(--surface);
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary:not(:disabled):hover { background: var(--rose); }
.btn-secondary {
  height: 48px; border-radius: 12px;
  background: var(--surface); color: var(--rose-deep);
  border: 1px solid var(--line-strong);
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
}
.btn-secondary:hover { background: var(--surface-2); }
.helper-text { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- Pay-amount toggle (deposit vs. pay in full) ---------- */
.pay-toggle {
  display: flex; gap: 8px; padding: 5px;
  background: var(--surface-2); border-radius: 14px;
}
.pay-toggle-btn {
  flex: 1; height: 40px; border-radius: 10px; border: none; background: transparent;
  color: var(--muted); font-family: 'Jost', sans-serif; font-weight: 600; font-size: 13.5px;
  cursor: pointer;
}
.pay-toggle-btn.is-active { background: var(--surface); color: var(--rose-deep); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pay-toggle-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards / typography ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(36, 29, 28, .05), 0 6px 18px rgba(36, 29, 28, .05);
}
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); }
.section-title { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; font-size: 13px; line-height: 1.4; }
.row .k { color: var(--muted); font-weight: 500; }
.row .v { font-weight: 600; text-align: right; }
.row.total .v { font-weight: 700; color: var(--rose-deep); font-size: 14.5px; }
.divider { height: 1px; background: var(--line); margin: 8px 0; }

.error-banner {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid var(--danger); border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; line-height: 1.5;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; background: var(--surface);
  font-family: inherit; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--rose-deep); outline-offset: -1px; }
.field textarea { resize: vertical; min-height: 26px; line-height: 1.5; }
.faux-input, .fauxinput { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; background: var(--surface); }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--rose-deep);
  animation: spin .8s linear infinite; margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-note { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0; }

/* ---------- Field / step validation ----------
   Continue buttons stay enabled at every step; clicking one with
   something missing highlights + scrolls to the first missing part of
   the form instead of just refusing the click. */
.field.field-error input, .field.field-error textarea,
input.field-error, textarea.field-error, .faux-input.field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}
.field-error-ring {
  outline: 2px solid var(--danger);
  outline-offset: 4px;
  border-radius: 14px;
}
.field-error-msg {
  color: var(--danger);
  font-size: 11.5px;
  margin-top: 6px;
  text-align: left;
  line-height: 1.4;
}
@keyframes field-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.field-shake { animation: field-shake .4s ease; }

/* ---------- Home ---------- */
.hero-block { padding: 36px 24px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-block img { width: 200px; height: auto; }
.hero-block .tag { font-size: 16px; font-style: italic; color: var(--rose-deep); margin: 8px 0 0; }
.hero-block .sub { font-size: 13px; color: var(--muted); margin: 6px 0 0; max-width: 320px; line-height: 1.5; }
.tilegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.tile:hover { border-color: var(--line-strong); }
.tile .tname { font-weight: 600; font-size: 13.5px; }
.tile .tprice { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.footer-note { margin-top: auto; padding: 22px 24px 28px; text-align: center; }
.footer-note .ig { font-size: 12.5px; font-weight: 600; color: var(--rose-deep); margin: 4px 0 0; }
.footer-note p { font-size: 11.5px; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 4px; gap: 4px; }
.seg .opt {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); border: none; background: none;
}
.seg .opt.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(36, 29, 28, .12); }
.svc-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.svc-item .body { flex: 1; min-width: 0; }
.svc-item .head { display: flex; align-items: center; gap: 8px; }
.svc-item .head .section-title { margin: 0; }
.svc-item .desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.svc-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.svc-item .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--line-strong); flex: 0 0 auto; }
.svc-item.sel { border-color: var(--rose-deep); background: var(--surface-2); }
.svc-item.sel .radio { border-color: var(--rose-deep); background: var(--rose-deep); box-shadow: inset 0 0 0 3px var(--surface-2); }
.tag { display: inline-block; font-size: 10px; color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: 2px 6px; flex: 0 0 auto; }
.svc-item.sel .tag { background: var(--surface); }
.price { font-family: 'Jost', sans-serif; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Location & time ---------- */
.loc-card { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.loc-card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--rose-deep); }
.loc-card.sel { border-color: var(--rose-deep); background: var(--surface-2); }
.loc-card .lname { font-weight: 600; font-size: 13.5px; }
.loc-card .lsub { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .m { font-weight: 600; font-size: 13.5px; }
.cal-head .nav { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); border: none; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cal-head .nav:hover { color: var(--ink); }
.cal-head .nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: 9.5px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 12px; position: relative; border: none; background: none; color: var(--ink);
}
.cal-cell.pad { visibility: hidden; }
.cal-cell.off { color: var(--muted); opacity: .4; cursor: not-allowed; }
.cal-cell.avail { cursor: pointer; }
.cal-cell.avail:hover { background: var(--surface-2); }
.cal-cell.sel { background: var(--rose-deep); color: var(--surface); font-weight: 600; }
.cal-cell.unavail { color: var(--muted); opacity: .5; cursor: not-allowed; }
.cal-cell.unavail::after { content: ""; position: absolute; bottom: 5px; width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--rose); }

.slotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.slot { padding: 11px 0; text-align: center; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; background: var(--surface); }
.slot.sel { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--surface); font-weight: 600; }
.slot.off { background: var(--surface-2); color: var(--muted); border-style: dashed; cursor: not-allowed; }

/* ---------- Wedding add-ons ---------- */
.addon-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; text-align: left; }
.addon-toggle .an { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.addon-toggle .ap { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.switch { width: 38px; height: 22px; border-radius: 20px; background: var(--line-strong); position: relative; flex: 0 0 auto; border: none; padding: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: left .15s; }
.switch.on { background: var(--rose-deep); }
.switch.on::after { left: 18px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.addon-row .an { font-size: 12.5px; font-weight: 500; }
.addon-row .ap { font-size: 11px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .btn { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--rose-deep); cursor: pointer; }
.stepper .n { font-size: 13px; font-weight: 600; min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.subtotal { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--rose-deep); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; }

/* ---------- Deposit / confirmation ---------- */
.paidtag { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rose-deep); background: var(--surface-2); border-radius: 5px; padding: 2px 7px; }
.confirm-check {
  width: 80px; height: 80px; border-radius: 50%; background: var(--rose-deep);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.confirm-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; display: block; margin: 0 auto 18px; }

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  body { background: var(--surface); }
  .app-shell { max-width: 1080px; box-shadow: 0 0 0 1px var(--line); min-height: 100vh; }
  .navbar { padding: 0 40px; height: 72px; }
  .navbar .title { font-size: 17px; }
  .content { padding: 40px 40px 8px; max-width: 640px; margin: 0 auto; width: 100%; }
  .bottombar { padding: 24px 40px 40px; max-width: 640px; margin: 0 auto; width: 100%; border-top: none; background: transparent; position: static; }
  .bottombar .btn-primary, .bottombar .btn-secondary { width: auto; padding: 0 34px; align-self: flex-start; }
  .bottombar.full .btn-primary { width: 100%; }
  .bottombar .helper-text { text-align: left; }
  .hero-block { padding: 60px 40px 0; }
  .hero-block img { width: 240px; }
  .tilegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slotgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}