/* ==========================================================
   Booking, thank-you and content pages
   (uses the design tokens from style.css)
   ========================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 48px 0 40px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(230, 80, 40, .5), transparent 60%),
    linear-gradient(135deg, var(--maroon-900), var(--red-600) 55%, var(--maroon-900));
  border-bottom: 3px solid var(--gold-500);
}
.page-hero--small { padding: 40px 0 34px; }
.page-hero__wheel {
  position: absolute; right: -140px; top: 50%; width: 380px; opacity: .18;
  animation: cta-spin 90s linear infinite; pointer-events: none;
}
.page-hero .container { position: relative; }
.crumbs { font-size: 13px; opacity: .85; margin-bottom: 10px; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs i { font-size: 9px; margin: 0 6px; opacity: .7; }
.page-hero__title {
  font: 700 38px/1.2 var(--font-serif);
  background: linear-gradient(180deg, #fff, #ffe2a0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero__sub { margin: 10px auto 0; max-width: 620px; font-size: 15.5px; opacity: .92; }

.progress {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 26px;
  font-size: 13px; font-weight: 500;
}
.progress li { display: flex; align-items: center; gap: 8px; opacity: .6; transition: opacity .3s; }
.progress li span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .6); font-weight: 700; font-size: 12px;
  transition: background .3s, color .3s, border-color .3s;
}
.progress li.is-active, .progress li.is-done { opacity: 1; }
.progress li.is-active span { background: var(--gold-400); border-color: var(--gold-400); color: var(--maroon-800); box-shadow: 0 0 0 5px rgba(247, 200, 90, .25); }
.progress li.is-done span { background: #2f9e44; border-color: #2f9e44; color: transparent; position: relative; }
.progress li.is-done span::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #fff; position: absolute; }

/* ---------- Booking layout ---------- */
.book {
  padding: 40px 0 70px;
  background: url("../images/mandala.svg") left -140px top 80px / 340px no-repeat, var(--cream-100);
}
.book__grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.book__form { display: grid; gap: 20px; min-width: 0; }

.book-step {
  margin: 0; min-width: 0; padding: 24px 26px 26px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.book-step.has-error { border-color: var(--red-500); }
/* float the legend so it sits inside the card instead of on its border */
.book-step__title {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px;
  font: 700 20px var(--font-serif); color: var(--maroon-700);
}
.book-step__num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 700 15px var(--font-sans); color: var(--gold-300);
  background: linear-gradient(145deg, var(--red-500), var(--maroon-800));
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-400);
}
.book-step__title + * { clear: both; }
.book-label { margin: 22px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-900); }
.book-empty { padding: 18px; border-radius: 12px; background: var(--cream-100); color: var(--ink-600); text-align: center; }

/* service picker */
.svc-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-pick__item, .mode-pick__item, .date-chip { position: relative; }
.date-strip { position: relative; }
.svc-pick__item input, .mode-pick__item input, .date-chip input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.svc-pick__card {
  position: relative; display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 40px 14px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--cream-50);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.svc-pick__card:hover { border-color: var(--gold-400); transform: translateY(-2px); }
.svc-pick__icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1c9, var(--gold-400)); color: var(--red-600);
}
.svc-pick__text { display: flex; flex-direction: column; line-height: 1.3; }
.svc-pick__text strong { font-size: 14px; }
.svc-pick__text small { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.svc-pick__check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(0); color: var(--red-600); font-size: 18px; transition: transform .25s; }
.svc-pick__item input:checked + .svc-pick__card {
  border-color: var(--red-500); background: #fff6ec; box-shadow: 0 8px 20px rgba(196, 22, 31, .12);
}
.svc-pick__item input:checked + .svc-pick__card .svc-pick__check { transform: translateY(-50%) scale(1); }
.svc-pick__item input:focus-visible + .svc-pick__card { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* date strip */
.date-strip-wrap { display: flex; align-items: center; gap: 8px; }
.date-strip {
  flex: 1; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 8px; scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-strip__nav {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--red-600);
}
.date-strip__nav:hover { background: var(--red-600); color: #fff; }
.date-chip { scroll-snap-align: start; }
.date-chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 68px; padding: 10px 0; border-radius: 14px; cursor: pointer; line-height: 1.2;
  border: 1.5px solid var(--line); background: var(--cream-50);
  transition: all .2s;
}
.date-chip small { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-500); }
.date-chip strong { font: 700 22px var(--font-serif); color: var(--ink-900); }
.date-chip span:hover { border-color: var(--gold-400); }
.date-chip input:checked + span {
  background: linear-gradient(160deg, var(--red-500), var(--maroon-800)); border-color: transparent;
  box-shadow: 0 8px 18px rgba(122, 12, 12, .3);
}
.date-chip input:checked + span small { color: rgba(255, 255, 255, .8); }
.date-chip input:checked + span strong { color: var(--gold-300); }
.date-chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* slots */
.slots { margin-top: 16px; min-height: 60px; }
.slots__hint, .slots__loading { padding: 16px; border-radius: 12px; background: var(--cream-100); color: var(--ink-600); font-size: 13.5px; text-align: center; }
.slots__head { font-size: 13px; color: var(--ink-600); margin-bottom: 10px; }
.slots__head strong { color: var(--ink-900); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  padding: 10px 6px; border-radius: 10px; cursor: pointer; font: 500 13.5px var(--font-sans);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-900);
  transition: all .15s;
}
.slot:hover:not(:disabled) { border-color: var(--red-500); color: var(--red-600); }
.slot.is-selected { background: var(--red-600); border-color: var(--red-600); color: #fff; box-shadow: 0 6px 14px rgba(168, 18, 26, .3); }
.slot:disabled { cursor: not-allowed; color: #bfb3ab; background: #f7f1ec; text-decoration: line-through; }

/* consultation mode */
.mode-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.mode-pick__item span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--cream-50); font-size: 13.5px; font-weight: 500;
  transition: all .2s;
}
.mode-pick__item span i { color: var(--red-600); }
.mode-pick__item input:checked + span { border-color: var(--red-500); background: #fff6ec; color: var(--maroon-700); box-shadow: 0 4px 12px rgba(196, 22, 31, .12); }

/* details form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-size: 13px; font-weight: 500; color: var(--ink-900); }
.form-row label b { color: var(--red-500); }
.book .field { height: 46px; }
.book .field input, .book .field select { font-size: 14px; }
.field select { flex: 1; min-width: 0; align-self: stretch; cursor: pointer; border: 0; outline: 0; background: transparent; font: 400 14px var(--font-sans); color: var(--ink-900); }
.field__prefix { font-size: 14px; font-weight: 700; color: var(--ink-600); padding-right: 10px; border-right: 1px solid var(--line); }
.form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; resize: vertical;
  border: 1px solid var(--line); font: 400 14px var(--font-sans); color: var(--ink-900);
}
.form-row textarea:focus { outline: 0; border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(196, 22, 31, .12); }
.field-help { font-size: 12px; color: var(--ink-500); min-height: 1em; }
.field-help b { color: var(--red-600); }
.field-help i { color: var(--gold-500); }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--ink-600); cursor: pointer; }
.agree input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--red-600); }
.agree a { color: var(--red-600); font-weight: 500; text-decoration: underline; }
.agree.has-error { color: var(--red-500); }

.form-alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.form-alert--error { background: #fde8e8; border: 1px solid #f5b5b5; color: #8a1010; }
.form-alert--info { background: #fff4dc; border: 1px solid var(--gold-400); color: #7a4a05; }

/* summary */
.summary { position: sticky; top: 90px; }
.summary__card { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.summary__head {
  padding: 16px 22px; color: #fff; font: 700 18px var(--font-serif);
  background: linear-gradient(135deg, var(--red-500), var(--maroon-800));
}
.summary__head i { color: var(--gold-300); margin-right: 6px; }
.summary__list { margin: 0; padding: 14px 22px; display: grid; gap: 10px; }
.summary__list div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.summary__list dt { color: var(--ink-500); }
.summary__list dt i { width: 16px; color: var(--gold-500); margin-right: 4px; }
.summary__list dd { margin: 0; font-weight: 700; text-align: right; color: var(--ink-900); }
.summary__price { margin: 0 22px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: grid; gap: 8px; }
.summary__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-600); }
.summary__row--save { color: #237a34; font-weight: 500; }
.summary__row--total { font-size: 15px; color: var(--ink-900); font-weight: 700; align-items: baseline; }
.summary__row--total strong { font: 700 28px var(--font-serif); color: var(--red-600); }
.summary__benefits { padding: 14px 22px 4px; display: grid; gap: 7px; }
.summary__benefits li { font-size: 13px; color: var(--ink-600); }
.summary__benefits i { color: #2f9e44; margin-right: 6px; }
.summary__pay { margin: 14px 22px 0; width: calc(100% - 44px); padding: 16px; font-size: 16px; }
.summary__pay:disabled { background: #d9cfc8; color: #6f625c; box-shadow: none; cursor: not-allowed; transform: none; }
.summary__pay.is-loading { opacity: .85; cursor: progress; }
.summary__pay.is-loading i { animation: spin-free 1s linear infinite; }
.summary__pay.is-loading i::before { content: "\f110"; }
.summary__demo a { display: inline-block; padding: 6px 2px; font-weight: 700; color: var(--red-600); }
.summary__demo { margin: 10px 22px 0; padding: 8px 12px; border-radius: 8px; background: #fff4dc; color: #7a4a05; font-size: 12.5px; text-align: center; }
.summary__note { margin: 12px 22px 0; font-size: 12px; color: var(--ink-500); text-align: center; }
.summary__secure { display: flex; justify-content: space-around; padding: 14px 16px; margin-top: 14px; background: var(--cream-100); font-size: 11.5px; color: var(--ink-600); }
.summary__secure i { color: #2f9e44; margin-right: 4px; }

.spinner {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px;
  border: 2.5px solid rgba(168, 18, 26, .2); border-top-color: var(--red-600);
  animation: spin-free .8s linear infinite;
}
.spinner--lg { width: 46px; height: 46px; border-width: 4px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }

/* ---------- Thank you ---------- */
.thanks {
  padding: 56px 0 72px;
  background:
    url("../images/mandala.svg") right -150px top -100px / 380px no-repeat,
    url("../images/mandala.svg") left -150px bottom -100px / 340px no-repeat,
    var(--cream-100);
}
.thanks__inner { max-width: 820px; }
.thanks__card {
  position: relative; text-align: center; padding: 44px 36px 34px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.thanks__check {
  position: relative; z-index: 1; width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 42px; color: #fff;
  background: linear-gradient(145deg, #3bb35b, #237a34);
  box-shadow: 0 0 0 8px #e6f6ea, 0 14px 30px rgba(35, 122, 52, .35);
  animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both;
}
.thanks__check--failed { background: linear-gradient(145deg, var(--red-500), var(--maroon-800)); box-shadow: 0 0 0 8px #fde8e8, 0 14px 30px rgba(168, 18, 26, .3); }
.thanks__check--pending { background: linear-gradient(145deg, var(--gold-400), #c98a1e); box-shadow: 0 0 0 8px #fff4dc; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.thanks__burst { position: absolute; left: 50%; top: 90px; width: 0; height: 0; }
.thanks__burst span {
  position: absolute; width: 10px; height: 10px; border-radius: 2px; background: var(--gold-400);
  animation: burst 1s ease-out .3s both;
}
.thanks__burst span:nth-child(2n) { background: var(--red-500); border-radius: 50%; }
.thanks__burst span:nth-child(1) { --x: -120px; --y: -60px; }
.thanks__burst span:nth-child(2) { --x: 120px; --y: -50px; }
.thanks__burst span:nth-child(3) { --x: -90px; --y: 40px; }
.thanks__burst span:nth-child(4) { --x: 100px; --y: 50px; }
.thanks__burst span:nth-child(5) { --x: -20px; --y: -110px; }
.thanks__burst span:nth-child(6) { --x: 30px; --y: -100px; }
@keyframes burst { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(200deg); opacity: 0; } }
.thanks__title { font: 700 32px/1.25 var(--font-serif); color: var(--maroon-700); }
.thanks__msg { max-width: 560px; margin: 12px auto 26px; color: var(--ink-600); font-size: 15px; line-height: 1.7; }

.ticket {
  text-align: left; border-radius: 16px; overflow: hidden;
  border: 1.5px dashed var(--gold-400); background: #fffaf0;
}
.ticket__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900)); color: #fff;
}
.ticket__head span { font-size: 12px; opacity: .8; display: block; }
.ticket__head strong { font: 700 22px var(--font-serif); color: var(--gold-300); letter-spacing: 1px; }
.ticket__badge { padding: 6px 12px; border-radius: 999px; background: #2f9e44; font-size: 12.5px !important; font-weight: 700; opacity: 1 !important; }
.ticket__grid { margin: 0; padding: 18px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.ticket__grid dt { font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .5px; }
.ticket__grid dd { margin: 2px 0 0; font-weight: 700; color: var(--ink-900); font-size: 14.5px; }
.ticket__mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px !important; word-break: break-all; }

.thanks__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 8px 18px rgba(37, 211, 102, .3); }

.next { margin-top: 30px; padding: 28px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.next__title { font: 700 22px var(--font-serif); color: var(--maroon-700); margin-bottom: 18px; }
.next__list { display: grid; gap: 16px; }
.next__list li { display: flex; gap: 16px; align-items: flex-start; }
.next__icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1c9, var(--gold-400)); color: var(--red-600); font-size: 18px;
}
.next__list strong { display: block; font-size: 15px; }
.next__list p { font-size: 13.5px; color: var(--ink-600); }
.next__home { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 0; min-height: 44px; color: var(--red-600); font-weight: 700; font-size: 14px; }

/* ---------- Content pages ---------- */
.prose-wrap { padding: 48px 0 64px; background: var(--cream-100); }
.prose {
  max-width: 820px; margin: 0 auto; padding: 36px 40px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 15px; line-height: 1.8; color: var(--ink-600);
}
.prose h2 { font: 700 22px var(--font-serif); color: var(--maroon-700); margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--ink-900); margin: 18px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 4px; }
.prose a { color: var(--red-600); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .book__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .page-hero { padding: 36px 0 30px; }
  .page-hero__title { font-size: 28px; }
  .progress { gap: 6px 14px; font-size: 12px; }
  .progress li span { width: 24px; height: 24px; }
  .book { padding: 24px 0 48px; }
  .book-step { padding: 20px 16px; }
  .book-step__title { font-size: 18px; }
  .svc-pick, .form-grid { grid-template-columns: 1fr; }
  .date-strip__nav { display: none; }
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
  .thanks { padding: 32px 0 48px; }
  .thanks__card { padding: 34px 18px 26px; }
  .thanks__title { font-size: 25px; }
  .ticket__grid { grid-template-columns: 1fr; }
  .thanks__actions .btn { width: 100%; }
  .next { padding: 22px 18px; }
  .prose { padding: 24px 18px; font-size: 14.5px; }
}

/* ---------- Print (receipt) ---------- */
@media print {
  .header, .footer, .to-top, .wa-float, .thanks__actions, .next, .thanks__burst { display: none !important; }
  .thanks { background: #fff; padding: 0; }
  .thanks__card { box-shadow: none; border: 0; }
}
