/* ==========================================================================
   Liana Spa — booking / gift card / terms pages
   ========================================================================== */

.page {
  background: var(--ivory-warm);
  min-height: 100vh;
  padding-bottom: clamp(50px, 8vw, 90px);
}

/* Rose top bar with the language switcher ---------------------------------- */

.topbar {
  background: var(--rose-deep);
  padding: 9px var(--gutter);
  display: flex;
  justify-content: flex-end;
}
.topbar .lang { --nav-fg: #fff; }
.topbar .lang__btn { color: #fff; opacity: .8; }
.topbar .lang__btn:hover { opacity: 1; }
.topbar .lang__btn[aria-current="true"] {
  background: rgba(255, 255, 255, .22);
  opacity: 1;
}
.topbar .lang__sep { color: rgba(255, 255, 255, .45); }

/* Page head ---------------------------------------------------------------- */

.page-head {
  position: relative;
  text-align: center;
  padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(24px, 4vw, 36px);
  max-width: var(--container);
  margin-inline: auto;
}

.page-back {
  position: absolute;
  left: var(--gutter);
  top: clamp(20px, 3.6vw, 34px);
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.page-back:hover { background: rgba(11, 10, 10, .06); transform: translateX(-3px); }
.page-back svg { width: 22px; height: 22px; }

.page-logo {
  width: clamp(120px, 26vw, 168px);
  margin: 0 auto 12px;
}

.page-title {
  font-size: clamp(27px, 5.6vw, 44px);
  margin-bottom: 8px;
}

.page-sub {
  font-size: clamp(13.5px, 2vw, 15.5px);
  color: var(--ink-mute);
  margin: 0;
  max-width: 46ch;
  margin-inline: auto;
}

/* Stepper ------------------------------------------------------------------ */

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 640px;
  margin: clamp(24px, 4vw, 36px) auto 0;
  padding-inline: var(--gutter);
}
.stepper--3 { grid-template-columns: repeat(3, 1fr); max-width: 520px; }

.step {
  position: relative;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}
.step::before {
  content: "";
  position: absolute;
  top: 15px; left: -50%;
  width: 100%; height: 1px;
  background: var(--line);
}
.step:first-child::before { display: none; }

.step__dot {
  position: relative;
  z-index: 1;
  width: 30px; height: 30px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ivory-warm);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.step.is-active .step__dot,
.step.is-done .step__dot {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: #fff;
}
.step.is-active, .step.is-done { color: var(--ink); font-weight: 500; }
.step.is-done .step__dot svg { width: 15px; height: 15px; }

/* Numbered blocks ---------------------------------------------------------- */

.block { margin-top: clamp(30px, 5vw, 46px); }

.block__head {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.block__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 1px;
}

.block__title {
  font-family: var(--font-body);
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.block__sub { font-size: 13.5px; color: var(--ink-mute); margin: 2px 0 0; }

/* Cards -------------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2.6vw, 20px);
}
.card--flush { padding: 8px; }

/* Service options ---------------------------------------------------------- */

.opt {
  display: grid;
  grid-template-columns: 26px 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.opt:hover { background: var(--blush-soft); }
.opt.is-selected { background: var(--blush-soft); }

.opt__radio {
  width: 22px; height: 22px;
  border: 1.5px solid rgba(11, 10, 10, .22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .25s var(--ease);
}
.opt.is-selected .opt__radio { border-color: var(--rose-deep); border-width: 2px; }
.opt__radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rose-deep);
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.opt.is-selected .opt__radio::after { transform: scale(1); }

.opt__icon { color: var(--rose-deep); }
.opt__icon svg { width: 30px; height: 30px; stroke-width: 1.5; }

.opt__body {
  display: grid;
  gap: 8px;
}

.opt__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.opt__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  flex: 1 1 128px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line-rose);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip b { font-weight: 600; }
.chip:hover { border-color: var(--rose-deep); }
.chip.is-active {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: #fff;
}

/* Calendar & slots --------------------------------------------------------- */

.picker {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

.cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal__month {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
}
.cal__nav {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background .25s var(--ease);
}
.cal__nav:hover { background: var(--blush-soft); }
.cal__nav svg { width: 18px; height: 18px; }
.cal__nav[disabled] { opacity: .3; pointer-events: none; }

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal__dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  padding-block: 6px;
}

.cal__day {
  position: relative;
  aspect-ratio: 1;
  min-height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cal__day:hover:not([disabled]) { background: var(--blush-soft); }
.cal__day[disabled] { color: rgba(11, 10, 10, .22); pointer-events: none; }
.cal__day.is-out { visibility: hidden; }
.cal__day.is-free::after {
  content: "";
  position: absolute;
  bottom: 5px; left: 50%;
  translate: -50% 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rose-deep);
}
.cal__day.is-selected {
  background: var(--rose-deep);
  color: #fff;
  font-weight: 600;
}
.cal__day.is-selected::after { background: #fff; }

.slots__title {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  line-height: 1.5;
}
.slots__title b { color: var(--ink); font-weight: 600; }

.slots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.slot {
  min-height: 42px;
  border: 1px solid var(--line-rose);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.slot:hover { border-color: var(--rose-deep); }
.slot.is-active { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

.slots__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 22px 6px;
}

/* Form fields -------------------------------------------------------------- */

.fields { display: grid; gap: 14px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field__wrap > svg,
.field__icon {
  position: absolute;
  left: 13px;
  width: 18px; height: 18px;
  color: var(--rose);
  pointer-events: none;
}
.field__icon svg { width: 18px; height: 18px; }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  background: var(--ivory-warm);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea {
  min-height: 96px;
  padding-top: 13px;
  resize: vertical;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(11, 10, 10, .34); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--rose-deep);
}
.field.has-error input,
.field.has-error textarea { border-color: #C0392B; }

.field__count {
  position: absolute;
  right: 12px; bottom: 8px;
  font-size: 11px;
  color: var(--ink-mute);
}

/* Notices ------------------------------------------------------------------ */

.notice {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blush-soft);
  border: 1px solid rgba(190, 95, 112, .16);
  font-size: 13.5px;
  margin-top: 16px;
}
.notice__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(190, 95, 112, .12);
  color: var(--rose-deep);
}
.notice__icon svg { width: 22px; height: 22px; }
.notice strong { color: var(--ink); font-weight: 600; display: block; }
.notice span { color: var(--ink-mute); }

.notice--ok {
  background: #EFF4EC;
  border-color: rgba(106, 106, 89, .22);
}
.notice--ok .notice__icon { background: rgba(106, 106, 89, .14); color: #5B7A4B; }

.notice--error {
  background: #FCEEEC;
  border-color: rgba(192, 57, 43, .28);
  grid-template-columns: 1fr;
  color: #9A3226;
}

/* Summary ------------------------------------------------------------------ */

.summary { display: grid; gap: 0; }

.summary__row {
  display: grid;
  grid-template-columns: 22px 96px 1fr;
  gap: 12px;
  align-items: center;
  padding-block: 9px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.summary__row:first-child { border-top: 0; }
.summary__row svg { width: 17px; height: 17px; color: var(--rose); }
.summary__row dt { color: var(--ink-mute); margin: 0; }
.summary__row dd { color: var(--ink); font-weight: 500; margin: 0; }

.confirm {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  align-items: center;
}

.confirm__badge {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-lg);
  background: var(--blush-soft);
  border: 1px solid rgba(190, 95, 112, .16);
}
.confirm__ring {
  width: 74px; height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: #fff;
  display: grid;
  place-items: center;
}
.confirm__ring svg { width: 34px; height: 34px; stroke-width: 2.2; }
.confirm__badge h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 0 0 6px;
}
.confirm__badge p { font-size: 13.5px; color: var(--ink-mute); margin: 0; }

/* Submit region ------------------------------------------------------------ */

.submit-row { margin-top: clamp(20px, 3.5vw, 30px); }
.submit-row .btn { width: 100%; }

/* Success screen ----------------------------------------------------------- */

.done {
  text-align: center;
  max-width: 560px;
  margin: clamp(24px, 5vw, 50px) auto 0;
}
.done__ring {
  width: 88px; height: 88px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(190, 95, 112, .3);
}
.done__ring svg { width: 42px; height: 42px; stroke-width: 2.2; }
.done h2 { font-size: clamp(24px, 4.4vw, 34px); margin-bottom: 12px; }
.done p { color: var(--ink-mute); }
.done .notice { text-align: left; max-width: 420px; margin-inline: auto; }
.done .btn { margin-top: 26px; }

/* Terms -------------------------------------------------------------------- */

.terms { max-width: 800px; margin-inline: auto; padding-inline: var(--gutter); }

.terms__meta {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--blush-soft);
  border: 1px solid rgba(190, 95, 112, .16);
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.terms__meta b { color: var(--ink); font-weight: 600; }

.terms h2 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 34px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.terms p { font-size: 14.5px; line-height: 1.8; margin-bottom: 12px; }
.terms p b { color: var(--ink); font-weight: 600; }

.terms .callout {
  background: var(--blush);
  border-left: 3px solid var(--rose-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
}

.terms__foot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* Responsive --------------------------------------------------------------- */

@media (min-width: 620px) {
  .opt { grid-template-columns: 26px 38px 1fr; gap: 14px; padding: 12px 14px; }
  .opt__body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  .opt__chips { flex: none; }
  .chip { flex: 0 0 auto; min-width: 132px; }
  .summary__row { grid-template-columns: 22px 120px 1fr; }
}

/* Large phones / small tablets: calendar still full width, so slots go wide. */
@media (min-width: 620px) and (max-width: 719px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets up: calendar and time slots sit side by side. */
@media (min-width: 720px) {
  .picker { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; }
  .slots__grid { grid-template-columns: repeat(2, 1fr); }
  .cal__day { min-height: 42px; }
}

@media (min-width: 880px) {
  .confirm { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Compact option rows on phones -------------------------------------------- */

@media (max-width: 619px) {
  .opt { grid-template-columns: 24px 30px 1fr; gap: 8px; padding: 12px 8px; }
  .opt__icon svg { width: 26px; height: 26px; }
  .opt__radio { width: 20px; height: 20px; }
  .opt__radio::after { width: 9px; height: 9px; }
  .opt__name { font-size: 13.5px; }
  .opt__chips { flex-wrap: nowrap; gap: 7px; }
  .chip {
    flex: 1 1 0;
    min-width: 0;
    font-size: 11px;
    padding: 7px 6px;
    gap: 5px;
    min-height: 40px;
  }
  .card--flush { padding: 4px; }
}

/* Keep the back button clear of the title on phones ------------------------ */

@media (max-width: 619px) {
  .page-head { padding-top: 62px; }
  .page-back { top: 10px; left: 8px; }
  .page-title { font-size: clamp(24px, 6.4vw, 30px); }
  .stepper { padding-inline: 6px; }
  .step { font-size: 10.5px; }
}
