/* 24h Braids — single-scroll flow: menu buttons, booking chapters, overlays */

/* booking stays hidden until a style is chosen in the menu (js/book-flow.js) */
.book-flow.is-waiting { display: none; }

/* ---------- menu add buttons ---------- */
.price-row { grid-template-columns: auto 1fr auto auto; cursor: pointer; }
.add-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold-light);
  display: grid; place-items: center; flex-shrink: 0; transition: background .4s, border-color .4s, transform .5s var(--ease-out); align-self: center;
}
.add-btn svg { width: 15px; height: 12px; transition: transform .5s var(--ease-out), opacity .3s; }
.add-btn .ok { position: absolute; opacity: 0; transform: scale(.4); }
.price-row:hover .add-btn { border-color: var(--gold); }
.price-row:hover .add-btn .go { transform: translateX(3px); }
.add-btn.is-added { background: var(--gold-grad); border-color: transparent; color: #120c05; }
.add-btn.is-added .go { opacity: 0; transform: translateX(8px); }
.add-btn.is-added .ok { opacity: 1; transform: none; }
.price-row::before { opacity: var(--flash, 0); }                 /* a gold flash when a style is chosen */
.price-row .pr { min-width: 64px; text-align: right; }
.price-row.is-added .nm { color: var(--gold-light); }
.price-row.on-request { cursor: default; }
.text-us { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 14px; align-self: center; }
@media (max-width: 900px) { .price-row { grid-template-columns: 1fr auto auto; } }

/* ---------- bag line items (drawer + chapter 01) ---------- */
.line-list { display: grid; gap: 12px; }
.line { position: relative; display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.line-art { width: 74px; height: 92px; border-radius: 12px; overflow: hidden; }
.line-art svg { width: 100%; height: 100%; }
.line.no-art { grid-template-columns: 1fr auto; }            /* non-main styles: name + price only */
.line-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.line-top b { font: 400 22px/1.15 var(--serif); }
.line-price { font: 400 22px/1 var(--serif); color: var(--gold-light); white-space: nowrap; }
.line small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.seg button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; color: var(--muted); transition: .3s; }
.seg button:hover { border-color: var(--line-strong); color: var(--text); }
.seg button.on { background: rgba(207,165,102,.16); border-color: var(--gold); color: var(--gold-light); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: 96px; z-index: 230; translate: -50% 0; display: flex; gap: 16px; align-items: center;
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 999px; background: var(--gold-light); color: #120c05; font-size: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); transform: translateY(-30px); opacity: 0; pointer-events: none; transition: transform .6s var(--ease-out), opacity .4s;
}
.toast.is-in { transform: none; opacity: 1; pointer-events: auto; }
.toast b { font-weight: 500; }
.toast a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 560px) { .toast { border-radius: 18px; flex-wrap: wrap; justify-content: center; text-align: center; top: 84px; } }


/* ---------- booking flow ---------- */
.book-flow { position: relative; z-index: 2; padding: clamp(96px, 12vw, 160px) 0; background: var(--bg); border-top: 1px solid var(--line-strong); border-radius: 40px 40px 0 0; box-shadow: 0 -40px 80px rgba(0,0,0,.6); margin-top: -40px; }
.flow-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.flow-rail { position: sticky; top: 100px; }
.rail-head { display: flex; align-items: center; gap: 18px; }
.rail-num { height: 96px; overflow: hidden; font: 300 96px/96px var(--serif); }
.rail-num-track { display: flex; flex-direction: column; }
.rail-num-track i { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; height: 96px; }
.rail-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.rail-title { font: 400 28px/1.1 var(--serif); }
.rail-progress { position: relative; height: 1px; background: var(--line); margin: 22px 0 26px; }
.rail-progress b { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.rail-summary { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: linear-gradient(160deg, rgba(207,165,102,.09), transparent 50%), var(--card); }
.rail-summary h3 { font: 400 22px/1 var(--serif); margin: 0 0 12px; }
.rail-summary dl { margin: 0; }
.rail-summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rail-summary dt { color: var(--muted); flex-shrink: 0; }
.rail-summary dd { margin: 0; text-align: right; }
.totals { margin-top: 16px; display: grid; gap: 10px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); }
.totals small { display: block; font-size: 11px; color: rgba(166,150,128,.7); }
.totals b { font: 400 24px/1 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; }
.totals .dep { padding: 12px 14px; margin: 2px -14px; border-radius: 14px; background: rgba(207,165,102,.1); color: var(--gold-light); }
.totals .dep b { color: var(--gold-light); font-size: 28px; }
.rail-mini { display: none; }

.flow-steps { display: grid; gap: clamp(40px, 6vw, 80px); min-width: 0; }
.chapter { position: relative; min-height: 62vh; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--bg-2); transition: border-color .6s; }
.chapter.is-current:not(.is-locked) { border-color: var(--line-strong); }
.chapter.is-done .ch-num { background: var(--gold-grad); color: #120c05; border-color: transparent; }
.ch-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.ch-num { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: italic 400 20px/1 var(--serif); color: var(--gold-light); transition: background .6s, color .6s; }
.ch-head h3 { margin: 4px 0 4px; font: 400 clamp(30px, 3.4vw, 44px)/1 var(--serif); }
.ch-head p { margin: 0; color: var(--muted); font-size: 15px; }
.ch-body { transition: filter .8s var(--ease-out), opacity .8s var(--ease-out); }
.ch-lock { position: absolute; left: 50%; top: 58%; z-index: 3; translate: -50% -50%; opacity: 0; pointer-events: none; transition: opacity .6s, transform .8s var(--ease-out); transform: scale(.9); }
.ch-lock span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: rgba(9,7,5,.85); border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.ch-lock span::before { content: ''; width: 10px; height: 8px; border: 1px solid currentColor; border-radius: 2px; box-shadow: 0 -5px 0 -2px transparent; }
.chapter.is-locked .ch-body { filter: blur(7px) grayscale(.6); opacity: .28; pointer-events: none; user-select: none; }
.chapter.is-locked .ch-lock { opacity: 1; transform: scale(1); }
@media (max-width: 560px) { .ch-lock { width: calc(100% - 32px); text-align: center; } .ch-lock span { white-space: normal; justify-content: center; } }   /* fits narrow phones */
.chapter.is-locked .ch-head { opacity: .55; }
.ch-more { margin: 18px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ch-more[hidden] { display: none; }
.ch-empty p { color: var(--muted); margin: 0 0 18px; }
.ch-empty a { color: var(--gold); }

/* calendar & slots */
.dt-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.cal { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--card); transition: opacity .3s; min-height: 340px; }
.cal.is-loading { opacity: .5; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head b { font: 400 22px/1 var(--serif); }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-light); }
.cal-head button:disabled { opacity: .25; pointer-events: none; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: 11px; letter-spacing: .14em; color: var(--muted); padding: 6px 0; }
.cal-days button { aspect-ratio: 1; border-radius: 50%; font: 400 18px/1 var(--serif); position: relative; transition: background .3s, color .3s; }
.cal-days button:hover:not(:disabled) { background: rgba(207,165,102,.12); }
.cal-days button:disabled { color: rgba(236,226,209,.18); cursor: default; }
.cal-days button.is-today::after { content: ''; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal-days button.is-selected { background: var(--gold-grad); color: #120c05; }
.slots h4 { margin: 4px 0 14px; font: 400 22px/1.2 var(--serif); }
.slot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line); text-align: left; transition: .3s; }
.slot b { display: block; font: 400 21px/1 var(--serif); }
.slot small { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.slot.low small { color: var(--gold); }
.slot:hover:not(:disabled) { border-color: var(--line-strong); }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slot.is-selected { background: var(--gold-light); color: #120c05; border-color: transparent; }
.slot.is-selected small { color: #3d2b14; }
.empty { color: var(--muted); font-size: 15px; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 760px) { .dt-grid { grid-template-columns: 1fr; } }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 300 17px/1.4 var(--sans); outline: 0; transition: border-color .3s; }
.field textarea { min-height: 100px; resize: vertical; }
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: .3s var(--ease-out); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field.err input { border-color: #d77a6a; }
.field .msg { display: block; margin-top: 6px; font-size: 12px; color: #e39a8b; }
.field .msg:empty { display: none; }
.agree { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 14px; cursor: pointer; }
.agree input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--line-strong); margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; }
.agree input:checked { background: var(--gold-grad); border-color: transparent; }
.agree input:checked::after { content: '✓'; color: #120c05; font-size: 14px; }
.agree a { color: var(--gold); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* review + pay */
.review-card { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--card); display: grid; gap: 12px; }
.review-card div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.review-card .k { color: var(--muted); }
.review-card .v { text-align: right; }
.pay-cta { margin-top: 22px; display: grid; gap: 14px; }
.pay-cta .btn { width: 100%; height: 66px; font-size: 13px; }
.stripe-row { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.stripe-row .cards { display: flex; gap: 6px; }
.stripe-row .cards span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; letter-spacing: .1em; }

@media (max-width: 1000px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-rail { top: 72px; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(9,7,5,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .rail-num { height: 44px; font-size: 44px; line-height: 44px; }
  .rail-num-track i { height: 44px; }
  .rail-title { font-size: 20px; }
  .rail-progress { position: absolute; left: 0; right: 0; bottom: -1px; margin: 0; }
  .rail-summary { display: none; }
  .rail-mini { display: grid; text-align: right; font: 400 24px/1 var(--serif); }
  .rail-mini small { font: 400 11px/1.6 var(--sans); letter-spacing: .1em; color: var(--muted); }
  .rail-mini small b { color: var(--gold-light); font-weight: 400; }
  .chapter { min-height: 0; padding: 22px 18px; border-radius: 22px; }
  .ch-num { width: 42px; height: 42px; font-size: 17px; }
  .book-flow { border-radius: 28px 28px 0 0; }
}

/* ---------- overlays ---------- */
.pay-overlay { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; background: rgba(5,4,3,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.pay-overlay.is-on { opacity: 1; visibility: visible; }
.pay-box { text-align: center; display: grid; justify-items: center; gap: 14px; }
.pay-box p { margin: 0; font: 400 26px/1.2 var(--serif); }
.pay-box small { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.spinner { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--gold-light); animation: spin 1s linear infinite; }

.confirm-overlay { position: fixed; inset: 0; z-index: 270; background: radial-gradient(circle at 50% 30%, #241a0e, var(--bg) 60%); overflow: auto; visibility: hidden; display: grid; place-items: center; padding: 90px 16px 40px; }
.confirm-overlay.is-on { visibility: visible; }
.confirm-inner { width: min(680px, 100%); text-align: center; }
.confirm-inner .tick { width: 110px; height: 110px; margin: 0 auto 26px; }
.confirm-inner .tick circle, .confirm-inner .tick path { fill: none; stroke: var(--gold-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.confirm-inner h2 { font: 300 clamp(44px, 6vw, 78px)/1 var(--serif); margin: 0 0 14px; }
.confirm-inner .ref { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--gold-light); font-size: 12px; letter-spacing: .24em; margin-bottom: 26px; }
.confirm-inner .review-card { text-align: left; margin-bottom: 24px; }
.confirm-inner p { color: var(--muted); }
.confirm-inner p b { color: var(--text); font-weight: 400; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

/* section heading word reveal */
.h-section .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.h-section .wi { display: inline-block; }

/* CTA sits under the booking panel as it slides over */
.cta { z-index: 1; }
@media (max-width: 560px) {
  .line { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px; }
  .line.no-art { grid-template-columns: 1fr auto; }
  .line-art { width: 56px; height: 72px; }
  .line-top { flex-direction: column; gap: 4px; }
  .line-top b, .line-price { font-size: 20px; }
  .seg button { padding: 7px 10px; }
}

/* ---------- 03 send the request by text ---------- */
.sms-preview { margin: 18px 0 22px; padding: 18px 20px; border-radius: 18px 18px 18px 4px; background: rgba(207,165,102,.08); border: 1px solid var(--line); }
.sms-preview small { display: block; margin-bottom: 8px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.sms-preview p { margin: 0; white-space: pre-line; font-size: 15px; line-height: 1.6; color: var(--text); }
.sms-alt { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.sms-alt a, .sms-alt button { color: var(--gold-light); font: inherit; }
.sms-alt a:hover, .sms-alt button:hover { color: var(--gold); }
.sms-next { margin-top: 20px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--gold); background: rgba(207,165,102,.1); font-size: 14px; color: var(--muted); }
.sms-next b { color: var(--gold-light); font-weight: 500; }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* name is required before texting Gigi */
.field.is-invalid input { border-color: #c96a5a; }
.field.is-invalid label { color: #e39a8c; }
.sms-next .sms-open { display: flex; width: fit-content; margin-top: 16px; }
/* the long booking button wraps on phones instead of being clipped */
@media (max-width: 560px) {
  #smsBtn { white-space: normal; text-align: center; line-height: 1.35; letter-spacing: .12em; padding-inline: 22px; justify-content: center; }
}
