/* =====================================================================
   Salon Suite - public booking page (spec sections 50, 72, 73)

   Mobile-first. A customer on a phone, on hotel wifi, with one thumb free
   is the design target; the desktop layout is the same thing with more
   room. No web fonts, so the page paints on the first request.
   ===================================================================== */

:root {
  /* Brand greens. #00A84F is the leaf; it is a fine border and tint colour
     but only ~3:1 against white, so anything carrying white text uses the
     deeper --brand-fill instead. Lime is an accent for dark surfaces only -
     it is unreadable on paper. */
  --brand:      #00A84F;   /* primary brand green - leaf base           */
  --brand-fill: #027A39;   /* same hue, safe under white text           */
  --brand-dark: #0B421B;   /* dark forest - headings, footer, links     */
  --brand-soft: #E8F5EC;   /* palest tint - selected cards, chips       */
  --leaf:       #7BC143;   /* PaperCut green - highlights, success      */
  --leaf-soft:  #EDF7E4;
  --lime:       #53F300;   /* neon accent - dark backgrounds only       */
  --forest:     #0B421B;
  --forest-deep:#03170A;

  --ink:        #1A1D1E;
  --ink-soft:   #4E5A54;
  --ink-faint:  #8A948F;
  --canvas:     #F2F4F3;
  --surface:    #FFFFFF;
  --line:       #DCE4DE;
  --line-soft:  #EBF0EC;

  /* Kept so existing rules keep working; they now read green. */
  --bronze:      var(--brand);
  --bronze-dark: var(--brand-dark);
  --bronze-soft: var(--brand-soft);
  --blush:       var(--leaf-soft);

  --success:    #027A39;
  --danger:     #B3402F;
  --warn:       #9A6B14;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-pill:999px;

  --shadow-sm:  0 1px 2px rgba(3, 23, 10, .06);
  --shadow:     0 4px 20px rgba(3, 23, 10, .09);
  --shadow-lg:  0 12px 40px rgba(3, 23, 10, .14);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bar-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Any class that sets `display` would outrank the browser's [hidden] rule,
   and every step of the wizard is shown and hidden through that attribute. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Visible focus everywhere - keyboard users are not second-class. */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-call {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--bronze-dark); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 8px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.header-call:hover { background: var(--bronze-soft); }

/* ---------- Loading / notices ---------- */

.boot { text-align: center; padding: 80px 0; color: var(--ink-soft); }
.boot-spinner {
  width: 30px; height: 30px; margin: 0 auto 18px;
  border: 2px solid var(--line); border-top-color: var(--bronze);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.notice {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--bronze);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0;
}
.notice h2 { margin: 0 0 6px; font-size: 17px; font-family: var(--serif); }
.notice p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.notice-error { border-left-color: var(--danger); }
.notice-warn  { border-left-color: var(--warn); }

/* ---------- Step indicator ---------- */

.steps { padding: 22px 0 6px; }
.steps ol {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.steps li {
  display: flex; align-items: center; gap: 7px;
  flex: 1; min-width: 0;
  color: var(--ink-faint); font-size: 12px;
}
.steps li:not(:last-child)::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.step-dot {
  flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step-label { display: none; }
.steps li.is-current { color: var(--ink); }
.steps li.is-current .step-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.is-current .step-label { display: inline; font-weight: 600; }
.steps li.is-done .step-dot {
  background: var(--bronze-soft); border-color: var(--bronze); color: var(--bronze-dark);
}

@media (min-width: 620px) {
  .step-label { display: inline; }
  .steps li { font-size: 13px; }
}

/* ---------- Step content ---------- */

.wizard { padding-bottom: calc(var(--bar-height) + 28px); }

.display {
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 400; line-height: 1.2;
  margin: 18px 0 6px; letter-spacing: -.01em;
}
.lede { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }

.step { animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  .boot-spinner { animation-duration: 2s; }
}

/* ---------- Category tabs ---------- */

/* Categories as a wrapped grid of boxes rather than a scrolling pill row.
   With nine of them, a horizontal strip hides most of the menu behind a
   swipe most customers never make. */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 2px 0 18px;
}
.cat-tab {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  min-height: 58px;
  display: grid; place-items: center;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cat-tab:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

@media (max-width: 380px) {
  .category-tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-tab { padding: 12px 8px; font-size: 13.5px; min-height: 52px; }
}
.cat-tab[aria-selected="true"] {
  background: var(--brand-fill); border-color: var(--brand-fill);
  color: #fff; font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- Service cards ---------- */

.service-list { display: grid; gap: 10px; }

.service-card {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.service-card:hover { border-color: var(--bronze); box-shadow: var(--shadow-sm); }
.service-card[aria-pressed="true"] {
  border-color: var(--bronze); background: var(--bronze-soft);
  box-shadow: inset 0 0 0 1px var(--bronze);
}

.service-check {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border: 1.5px solid var(--line); border-radius: 6px;
  display: grid; place-items: center; background: var(--surface);
}
.service-card[aria-pressed="true"] .service-check {
  background: var(--brand-fill); border-color: var(--brand-fill); color: #fff;
}
.service-check svg { opacity: 0; }
.service-card[aria-pressed="true"] .service-check svg { opacity: 1; }

/* These cards are built from spans, so each line has to be told to be one. */
.service-body { flex: 1; min-width: 0; }
.service-name { display: block; font-weight: 600; font-size: 15.5px; }
.service-desc {
  color: var(--ink-soft); font-size: 13.5px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.service-meta {
  display: flex; align-items: baseline; gap: 10px; margin-top: 8px;
  font-size: 13px; color: var(--ink-faint);
}
.service-price {
  font-weight: 600; color: var(--ink); font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.service-was { text-decoration: line-through; color: var(--ink-faint); font-size: 13px; }
.tag-offer {
  background: var(--blush); color: var(--bronze-dark);
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}

/* ---------- Beautician cards ---------- */

.staff-list { display: grid; gap: 10px; }

.staff-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.staff-card:hover { border-color: var(--bronze); }
.staff-card[aria-pressed="true"] {
  border-color: var(--bronze); background: var(--bronze-soft);
  box-shadow: inset 0 0 0 1px var(--bronze);
}
.staff-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; background: var(--blush);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; color: var(--bronze-dark);
}
.staff-name { display: block; font-weight: 600; font-size: 15.5px; }
.staff-role { display: block; color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }

/* ---------- Date strip ---------- */

.date-strip-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.date-nav {
  flex: none; width: 34px; height: 62px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 20px; color: var(--ink-soft); cursor: pointer; line-height: 1;
}
.date-nav:disabled { opacity: .35; cursor: default; }

.date-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px;
  scrollbar-width: none; scroll-snap-type: x mandatory;
}
.date-strip::-webkit-scrollbar { display: none; }

.date-chip {
  flex: none; width: 62px; padding: 9px 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font: inherit;
  text-align: center; scroll-snap-align: start;
}
/* Day, date and month stack: they are spans, so each needs to be a block. */
.date-chip .dow,
.date-chip .dom,
.date-chip .mon,
.date-chip .full { display: block; }
.date-chip .dow { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.date-chip .dom { font-size: 19px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.date-chip .mon { font-size: 11px; color: var(--ink-faint); }
.date-chip[aria-checked="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.date-chip[aria-checked="true"] .dow,
.date-chip[aria-checked="true"] .mon { color: rgba(255,255,255,.65); }
.date-chip:disabled { opacity: .38; cursor: not-allowed; }
.date-chip .full { font-size: 10px; color: var(--danger); }

/* ---------- Time slots ---------- */

.slot-area { min-height: 120px; }
.slot-group + .slot-group { margin-top: 22px; }
.slot-group h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); margin: 0 0 10px; font-weight: 600;
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }

.slot {
  padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; font-size: 14.5px; font-weight: 500;
  cursor: pointer; font-variant-numeric: tabular-nums;
}
.slot:hover:not(:disabled) { border-color: var(--bronze); background: var(--bronze-soft); }
.slot[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot:disabled {
  opacity: .4; cursor: not-allowed;
  background: var(--line-soft); text-decoration: line-through;
}

.empty-slots { text-align: center; padding: 36px 20px; color: var(--ink-soft); }
.empty-slots strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--ink-faint); font-size: 12.5px; }

input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; font-size: 16px; /* 16px stops iOS zooming */
  color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--bronze); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 84px; }

.hint  { margin: 0; font-size: 13px; color: var(--ink-faint); }
.error { margin: 0; font-size: 13px; color: var(--danger); min-height: 0; }
.error:empty { display: none; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bronze); flex: none; }

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

.summary-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.summary-row:last-child { border-bottom: 0; }
.summary-label { color: var(--ink-soft); font-size: 14px; }
.summary-value { font-weight: 600; text-align: right; font-size: 14.5px; }
.summary-total {
  margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.summary-total .summary-label { font-size: 16px; color: var(--ink); font-weight: 600; }
.summary-total .summary-value { font-family: var(--serif); font-size: 26px; }
.terms { color: var(--ink-faint); font-size: 13px; margin-top: 16px; }

/* ---------- Action bar ---------- */

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.action-summary { font-size: 13px; color: var(--ink-soft); min-width: 0; }
.action-summary strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.action-buttons { display: flex; gap: 8px; flex: none; }

.btn {
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  min-height: 48px;   /* comfortable thumb target */
  transition: background .15s, opacity .15s;
}
.btn-primary { background: var(--brand-fill); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-block { width: 100%; }
.btn.is-busy { opacity: .7; pointer-events: none; }

@media (min-width: 720px) {
  .action-bar {
    left: 50%; right: auto; transform: translateX(-50%);
    width: 720px; border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--line); border-bottom: 0;
    box-shadow: var(--shadow-lg);
  }
}

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

.success { text-align: center; padding: 40px 0 60px; }
.success-mark {
  width: 66px; height: 66px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--bronze-soft); color: var(--bronze-dark);
  display: grid; place-items: center;
}
.success h1 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 0 0 6px; }
.booking-id {
  display: inline-block; margin: 10px 0 26px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px; letter-spacing: .06em;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius-pill); padding: 8px 18px;
}
.success .summary-card { text-align: left; }
.success-actions { display: grid; gap: 10px; margin-top: 22px; }
.btn-whatsapp { background: #25D366; color: #06341A; }
.btn-whatsapp:hover { background: #1EBE5B; }

/* ---------- Manage screen ---------- */

.manage { padding: 24px 0 60px; }
.manage h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 4px; }
.status-pill {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.status-confirmed { background: #E4F0E9; color: var(--success); }
.status-cancelled { background: #F7E4E1; color: var(--danger); }
.status-completed { background: var(--bronze-soft); color: var(--bronze-dark); }
.status-new       { background: var(--line-soft); color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--forest-deep);
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  padding: 26px 0 34px; margin-top: 40px;
  text-align: center; font-size: 13.5px; color: #C9D8CD;
}
.footer-name { font-family: var(--serif); font-size: 16px; color: #FFFFFF; margin: 0 0 4px; }
.footer-address { margin: 0 0 8px; }
.footer-links { margin: 0; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--leaf); }
.site-footer a:hover { color: var(--lime); }

/* The action bar overlaps the footer on mobile; give it room. */
body:has(.wizard:not([hidden])) .site-footer { padding-bottom: calc(var(--bar-height) + 30px); }


/* ---------------------------------------------------------------------
   Payment panel (UPI + cash)

   Sits below the confirmation and on the manage screen. The app tiles are
   plain links to upi:// intents, so on a phone they open PhonePe, Google
   Pay, Paytm or Amazon Pay directly; on a desktop the QR does the same job.
   --------------------------------------------------------------------- */

.pay {
  max-width: 560px; margin: 24px auto 0; padding: 0 18px 40px;
}
.pay-head {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.pay-head h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.pay-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pay-amount-value { font-family: var(--serif); font-size: 34px; color: var(--brand-dark); }
.pay-amount-note { font-size: 13.5px; color: var(--ink-soft); }
.pay-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }
.pay-lede { text-align: center; font-size: 14.5px; color: var(--ink-soft); margin: 20px 0 12px; }

.pay-apps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.pay-app {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.pay-app:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pay-app-icon {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; flex: none;
}
.pay-app-icon svg,
.pay-app-icon .pay-app-art { width: 40px; height: 40px; display: block; }
.pay-app-icon.has-art { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pay-app-label { font-size: 12.5px; color: var(--ink); text-align: center; line-height: 1.25; }

.pay-qr { margin-bottom: 18px; }
.pay-qr > summary {
  cursor: pointer; font-size: 14px; color: var(--brand-dark);
  padding: 10px 0; text-align: center;
}
.pay-qr-box {
  display: grid; place-items: center; padding: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.pay-qr-box svg { width: 190px; height: 190px; }

.pay-claim {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.pay-claim h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 4px; }

.pay-claims { margin: 16px 0; display: grid; gap: 8px; }
.pay-claim-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.pay-claim-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pay-claim-label { font-weight: 600; font-size: 14.5px; }
.pay-claim-note { font-size: 12.5px; color: var(--ink-soft); }
.pay-claim-badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 9px; border-radius: var(--radius-pill); flex: none;
  background: var(--line-soft); color: var(--ink-soft);
}
.pay-claim-confirmed { border-color: var(--brand); background: var(--brand-soft); }
.pay-claim-confirmed .pay-claim-badge { background: var(--brand-fill); color: #fff; }
.pay-claim-rejected { border-color: #E4BDB6; background: #FBE9E6; }
.pay-claim-rejected .pay-claim-badge { background: var(--danger); color: #fff; }


/* ---------------------------------------------------------------------
   Brand backdrop

   The salon mark, very quiet, behind the page. Painted with a CSS mask so
   the one SVG picks up whatever colour it sits on - pale sage on the linen
   ground, leaf green on the forest footer.

   It is decorative, so it is a pseudo-element with no markup, it never sits
   under body text at a contrast that matters, and it disappears entirely
   for anyone who has asked for reduced motion or is printing.
   --------------------------------------------------------------------- */

body { position: relative; }

body::before {
  content: '';
  position: fixed;
  top: -6vh; right: -14vw;
  width: min(78vw, 620px);
  aspect-ratio: 420 / 520;
  background: var(--brand);
  opacity: .05;
  -webkit-mask: url('/assets/img/salon-mark.svg') no-repeat center / contain;
          mask: url('/assets/img/salon-mark.svg') no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

/* Everything real sits above it. */
.site-header, #main, .wizard, .success, .manage, .pay, .action-bar, .site-footer {
  position: relative;
  z-index: 1;
}

/* A second, brighter copy anchored in the footer, where the dark ground can
   carry it at a proper weight. */
.site-footer { overflow: hidden; }
.site-footer::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -70px;
  width: 230px; height: 285px;
  background: var(--leaf);
  opacity: .17;
  -webkit-mask: url('/assets/img/salon-mark.svg') no-repeat center / contain;
          mask: url('/assets/img/salon-mark.svg') no-repeat center / contain;
  pointer-events: none;
}

@media (max-width: 520px) {
  body::before { opacity: .04; width: 88vw; }
  .site-footer::after { width: 160px; height: 198px; right: -30px; bottom: -50px; }
}

@media print {
  body::before, .site-footer::after { display: none; }
}

/* Build credit, quiet against the forest footer. */
.footer-credit { margin: 14px 0 0; font-size: 12px; color: #8FAE99; }
.footer-credit a {
  color: var(--leaf); text-decoration: none;
  border-bottom: 1px solid rgba(123, 193, 67, .35);
}
.footer-credit a:hover { color: var(--lime); border-bottom-color: var(--lime); }

/* Said out loud when a whole strip of dates is unbookable, rather than
   leaving the customer to interpret a row of greyed-out squares. */
.date-notice {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

/* ====================================================================
   Get the app
   --------------------------------------------------------------------
   Our own badge, not Google's. The Play badge means "this is on the Play
   Store"; using it for a direct download would be a small lie told at
   the exact moment the customer's phone is asking whether to trust us.
   Once the app is published, this becomes the official badge pointing at
   the listing.
   ==================================================================== */

.getapp {
  background: var(--brand-soft);
  border-top: 1px solid rgba(11, 66, 27, .08);
  padding: 40px 0;
}

.getapp-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.getapp-words { flex: 1 1 320px; min-width: 0; }

.getapp h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--brand-dark);
  letter-spacing: -.01em;
}

.getapp p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.appbadge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 24px 11px 18px;
  border-radius: 14px;
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 2px 10px rgba(11, 66, 27, .18);
}
.appbadge:hover  { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 66, 27, .24); }
.appbadge:active { transform: translateY(1px); }
.appbadge:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.appbadge-mark { display: flex; color: var(--lime); }

.appbadge-words { display: flex; flex-direction: column; line-height: 1.15; }
.appbadge-small {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .82;
}
.appbadge-big { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

.getapp-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 44ch;
}

.getapp-qr {
  margin: 0;
  text-align: center;
  background: #fff;
  padding: 14px 14px 10px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(11, 66, 27, .1);
}
.getapp-qr svg { width: 132px; height: 132px; display: block; }
.getapp-qr figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* On a phone the QR is pointless - you are already holding the phone. */
@media (max-width: 620px) {
  .getapp { padding: 30px 0; }
  .getapp-qr { display: none; }
  .appbadge { width: 100%; justify-content: center; }
}
