/* Klartil – salongens bookingside. Salongens farge kommer fra --brand. */
:root {
  --bg: #f5f3ef; --card: #fff; --ink: #17171a; --ink-2: #3a3936; --muted: #6d6a65; --line: #e8e4dd; --line-2: #f1eee9;
  --ok: #2c8f55; --danger: #c43d34; --radius: 16px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.closure { background: #fbf1dc; color: #6b4e14; text-align: center; padding: 10px 16px; font-size: .92rem; }

.hero { background: var(--brand); color: var(--on-brand); padding: 34px 0 72px; }
.hero h1 { margin: 6px 0 6px; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
.hero__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; opacity: .85; font-size: .95rem; }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { text-decoration: underline; }
.hero__status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(127,127,127,.18); }
.hero__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9a958c; }
.hero__status.is-open::before { background: #3fbf6f; }
.hero__status.is-closed::before { background: #e0584f; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; margin-top: -48px; align-items: start; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06); padding: 20px; }
.card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.side { display: grid; gap: 14px; }
.side p { margin: 0; font-size: .9rem; }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--muted); } .hours dd { margin: 0; font-weight: 600; }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 700; }

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.team li { display: flex; align-items: center; gap: 12px; }
.team strong { display: block; font-size: .92rem; }
.team small { display: block; color: var(--muted); font-size: .8rem; }

.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center 25%; flex-shrink: 0; background: var(--line-2); }
.avatar--letter, .avatar--any { display: grid; place-items: center; font-weight: 700; background: var(--brand); color: var(--on-brand); }

/* Bestilling */
.booking { padding: 0; overflow: hidden; min-height: 420px; }
.booking__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.booking__head h2 { margin: 0 0 10px; font-size: 1.25rem; }
.booking__head > div { flex: 1; }
.booking__body { padding: 20px; }
.back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #b3afa7; }
.steps li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps li.is-current, .steps li.is-done { color: var(--ink); }
.steps li.is-current::before, .steps li.is-done::before { background: var(--brand); }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; transition: border-color .15s; }
.choice:hover:not(:disabled) { border-color: var(--brand); }
.choice.is-on { border-color: var(--brand); }
.choice:disabled { opacity: .55; cursor: not-allowed; background: var(--line-2); }
.choice__main { flex: 1; min-width: 0; }
.choice__main strong { display: block; }
.choice__main small { display: block; color: var(--muted); font-size: .85rem; }
.choice__main small.note { color: #9a6b12; font-weight: 600; }
.price { font-weight: 700; white-space: nowrap; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 -20px 14px; padding-left: 20px; padding-right: 20px; scroll-padding-inline: 20px; }
.day { flex: 0 0 62px; padding: 9px 0; border-radius: 12px; border: 2px solid var(--line); background: #fff; line-height: 1.2; }
.day span { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.day strong { display: block; font-size: 1.25rem; }
.day small { display: block; font-size: .7rem; color: var(--muted); }
.day.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.day.is-on span, .day.is-on small { color: inherit; opacity: .8; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots p { grid-column: 1 / -1; }
.slot { padding: 11px 0; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--brand); }

.summary { margin: 0 0 18px; background: var(--line-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: .92rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; font-weight: 600; text-align: right; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); font: inherit; font-size: 16px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field.has-error input { border-color: var(--danger); }
.error { background: #fcebe9; color: #9d362e; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 0 0 14px; }
.btn { display: block; width: 100%; padding: 14px; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 700; text-align: center; text-decoration: none; }
.btn:disabled { opacity: .6; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); margin-top: 8px; }
.fine { text-align: center; color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.link { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: .9rem; }

.done { text-align: center; padding: 10px 0; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; }
.done h2 { margin: 0 0 8px; font-size: 1.4rem; }
.done p { margin: 0 0 14px; }
.code { display: inline-grid; gap: 2px; border: 2px dashed var(--brand); border-radius: 12px; padding: 10px 22px; margin-bottom: 12px; }
.code span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.code strong { font-size: 1.5rem; letter-spacing: .06em; }

.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 26px 18px 40px; }
.footer a { color: var(--ink-2); }

.book-unavailable { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.book-unavailable .card { max-width: 420px; text-align: center; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; margin-top: -40px; }
  .hero { padding: 26px 0 60px; }
  .booking__body, .booking__head { padding-left: 16px; padding-right: 16px; }
  .days { margin: 0 -16px 14px; padding-left: 16px; padding-right: 16px; }
}

/* Gruppetimer: plasser igjen */
.slot--group { display: grid; gap: 2px; padding: 9px 4px; }
.slot small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); }
.slot.is-on small { color: inherit; opacity: .85; }

/* Klippekort på bookingsiden */
.cards-offer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cards-offer h3 { margin: 0 0 4px; font-size: 1rem; }
.cards-offer > p { margin: 0 0 12px; font-size: .88rem; }
.choice--card { border-style: dashed; }

/* Forespørsler og egne spørsmål */
.field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); font: inherit; font-size: 16px; background: #fff; }
.field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.yesno { display: flex; gap: 18px; padding: 6px 0; }
.yesno label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.field.has-error .yesno { color: var(--danger); }
.pending-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fbf0d9; color: #6b4708; font-size: .88rem; }

/* Venteliste */
.waitlist-cta { grid-column: 1 / -1; margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--muted, #6b6b6b); }
.waitlist-cta .link { display: inline; margin: 0; font-weight: 600; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

/* Legg i kalender */
.cal-add { margin: 4px 0 14px; }
.cal-add p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.cal-add__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-btn { margin: 0; font-size: .9rem; padding-left: 8px; padding-right: 8px; }
@media (max-width: 380px) { .cal-add__btns { grid-template-columns: 1fr; } }
