/* =========================================================
   booking.css — The House of Vanessia
   All selectors are prefixed .bk- and scoped under .bk
   so nothing here can collide with main.css / infos.css.
   Colour tokens fall back to the values in definedstuff.css.
   ========================================================= */

.bk {
  --bk-cream:      var(--cream, #f8f2e9);
  --bk-linen:      var(--linen, #fffaf3);
  --bk-smoke:      var(--smoke, #f4e9db);
  --bk-ink:        var(--ink, #2c2118);
  --bk-body:       var(--body-text, #5c4737);
  --bk-gold:       var(--gold, #c47a3f);
  --bk-gold-soft:  var(--gold-soft, #d9a56a);
  --bk-copper:     var(--copper, #906749);
  --bk-dust:       var(--dust, #d8c4ac);
  --bk-hair:       var(--hair, rgba(61, 47, 33, 0.12));
  --bk-shadow:     var(--shadow, rgba(44, 33, 24, 0.08));
  --bk-sage: #6b7a52;
  --paper:#f7efe6;   --paper-2:#fdf8f2; --card:#ffffff;
  --ink:#2b1d12;     --muted:#8c7b6b;
  --tan:#b08d6a;     --accent:#c98a3f; --hair:rgba(43,29,18,.1);

  --bk-radius: 4px;
  --bk-gap: 28px;



  background: var(--bk-linen);
  color: var(--bk-body);
  font-family: 'Jost', sans-serif;
  display: block;
}

*{margin:0;padding:0;box-sizing:border-box}
body{background:var(--paper);font-family:'Jost',system-ui,sans-serif;color:var(--ink);padding:60px 20px}

.staff-deck-wrap{max-width:460px;margin:0 auto}

/* ===== deck ===== */
.staff-deck{
  position:relative;
  height:452px;
  perspective:1400px;
  touch-action:pan-y;
  user-select:none;
}

.staff-card{
  position:absolute;
  top:0; left:50%;
  width:300px;
  margin-left:-150px;
  background:var(--card);
  padding:16px 16px 22px;
  border-radius:3px;
  box-shadow:0 1px 2px rgba(43,29,18,.08), 0 18px 38px rgba(43,29,18,.14);
  transform-origin:50% 100%;
  transition:transform .5s cubic-bezier(.22,.8,.26,1), opacity .4s ease, box-shadow .4s ease;
  cursor:pointer;
}
.staff-card.is-front{cursor:default}

.staff-card img{
  display:block; width:100%; height:300px;
  object-fit:cover; border-radius:1px;
  background:#e4d6c7;
}
.staff-card h3{
  font-family:'Playfair Display',Georgia,serif;
  font-size:26px; font-weight:400; text-align:center; margin-top:16px;
}
.staff-card .role{
  display:block; text-align:center; font-size:13.5px; color:var(--muted); margin-top:4px;
  min-height:38px; line-height:1.5;
}
/* guldstreg under navnet på det forreste kort */
.staff-card h3::after{
  content:""; display:block; width:0; height:1px; margin:8px auto 0;
  background:var(--accent); transition:width .45s ease .1s;
}
.staff-card.is-front h3::after{width:52px}

/* ===== kontroller ===== */
.deck-controls{
  display:flex; align-items:center; justify-content:center; gap:20px; margin-top:26px;
}
.deck-btn{
  width:42px; height:42px; display:grid; place-items:center;
  border:1px solid var(--hair); border-radius:50%;
  background:transparent; color:var(--ink); cursor:pointer;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.deck-btn:hover{border-color:var(--accent); color:var(--accent); background:rgba(201,138,63,.07)}
.deck-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}

.deck-dots{display:flex; gap:9px}
.deck-dot{
  width:7px; height:7px; padding:0; border:0; border-radius:50%;
  background:rgba(43,29,18,.2); cursor:pointer;
  transition:background .25s ease, transform .25s ease;
}
.deck-dot:hover{background:rgba(43,29,18,.4)}
.deck-dot[aria-current="true"]{background:var(--accent); transform:scale(1.45)}

.deck-hint{text-align:center;font-size:12.5px;color:var(--muted);margin-top:14px;letter-spacing:.02em}

@media (prefers-reduced-motion:reduce){
  .staff-card{transition:none}
  .staff-card h3::after{transition:none}
}




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

.bk h1, .bk h2, .bk h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--bk-ink);
  margin: 0;
}

.bk button { font-family: inherit; }

.bk :focus-visible,
.bk-modal :focus-visible {
  outline: 2px solid var(--bk-gold);
  outline-offset: 2px;
}

/* ---------------- Hero ---------------- */

.bk-hero {
  background: var(--bk-cream);
  text-align: center;
  padding: 104px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.bk-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.bk-hero p {
  max-width: 48ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
}

.bk-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--bk-gold);
}
.bk-rule span { height: 1px; width: 92px; background: currentColor; }
.bk-rule i { font-style: normal; font-size: 13px; }

/* ---------------- Layout ---------------- */

.bk-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--bk-gap);
  align-items: start;
}

.bk-card {
  background: #fff;
  border: 1px solid var(--bk-hair);
  border-radius: var(--bk-radius);
  box-shadow: 0 2px 18px var(--bk-shadow);
}

.bk-flow-col { position: sticky; top: 24px; }

@media (max-width: 900px) {
  .bk-layout { grid-template-columns: 1fr; padding-top: 36px; }
  .bk-flow-col { position: static; }
}

/* ---------------- Calendar ---------------- */r

.bk-calendar {
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 35rem;
}

.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.bk-cal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--bk-ink);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}
.bk-cal-nav {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--bk-dust);
  border-radius: 50%;
  background: transparent;
  color: var(--bk-copper);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.bk-cal-nav svg { width: 17px; height: 17px; }
.bk-cal-nav:hover:not(:disabled) { background: var(--bk-cream); border-color: var(--bk-gold); color: var(--bk-gold); }
.bk-cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.bk-weekdays,
.bk-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.bk-weekdays {
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  color: var(--bk-copper);
  text-align: center;
}

.bk-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: var(--bk-radius);
  background: var(--bk-cream);
  color: var(--bk-ink);
  font-size: 15px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.bk-day:hover:not(:disabled) { border-color: var(--bk-gold-soft); background: var(--bk-smoke); }
.bk-day.is-blank { background: transparent; cursor: default; pointer-events: none; }
.bk-day:disabled { background: transparent; color: var(--bk-dust); cursor: not-allowed; }
.bk-day.is-today { font-weight: 600; box-shadow: inset 0 0 0 1px var(--bk-dust); }
.bk-day.is-selected {
  background: var(--bk-gold);
  border-color: var(--bk-gold);
  color: #fff;
  font-weight: 500;
}
.bk-day.is-selected .dot { background: #fff; }

.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  display: block;
}
.dot.free   { background: var(--bk-gold); }
.dot.busy   { background: var(--bk-dust); }
.dot.closed { background: transparent; box-shadow: inset 0 0 0 1px var(--bk-dust); }
.bk-day:disabled .dot { opacity: .45; }

.bk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bk-hair);
  font-size: 12.5px;
  color: var(--bk-copper);
}
.bk-legend-item { display: inline-flex; align-items: center; gap: 7px; }

/* ---------------- Flow panel ---------------- */

.bk-flow { padding: 26px 24px 24px; min-height: 420px; }

.bk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 360px;
  text-align: center;
  color: var(--bk-copper);
}
.bk-empty svg { width: 42px; height: 42px; opacity: .55; }
.bk-empty p { max-width: 26ch; font-size: 14.5px; line-height: 1.7; margin: 0; }

.bk-flow-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--bk-hair);
}
.bk-flow-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.3px;
  color: var(--bk-copper);
  margin-bottom: 4px;
}
.bk-flow-head strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--bk-ink);
}

.bk-textbtn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--bk-gold);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.bk-textbtn:hover { color: var(--bk-copper); }

/* Steps */

.bk-step { border-bottom: 1px solid var(--bk-hair); }
.bk-step:last-of-type { border-bottom: none; }

.bk-step-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--bk-ink);
}
.bk-step.is-locked .bk-step-head { cursor: not-allowed; color: var(--bk-dust); }

.bk-step-no {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--bk-dust);
  border-radius: 50%;
  font-size: 12.5px;
  color: var(--bk-copper);
}
.bk-step.is-done .bk-step-no {
  background: var(--bk-gold);
  border-color: var(--bk-gold);
  color: #fff;
}
.bk-step.is-locked .bk-step-no { border-color: var(--bk-hair); color: var(--bk-dust); }

.bk-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  flex: 0 0 auto;
}
.bk-step-value {
  flex: 1 1 auto;
  text-align: right;
  font-size: 13.5px;
  color: var(--bk-gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-chev {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  color: var(--bk-copper);
  transition: transform .2s ease;
}
.bk-step.is-open .bk-chev { transform: rotate(180deg); }

.bk-step-body { display: none; padding-bottom: 20px; }
.bk-step.is-open .bk-step-body { display: block; }

/* Treatments */

.bk-treatments { display: flex; flex-direction: column; gap: 8px; }

.bk-cat-label {
  font-size: 11.5px;
  letter-spacing: 1.3px;
  color: var(--bk-copper);
  margin: 12px 0 2px;
}
.bk-cat-label:first-child { margin-top: 0; }

.bk-option {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 15px;
  background: var(--bk-linen);
  border: 1px solid var(--bk-hair);
  border-radius: var(--bk-radius);
  text-align: left;
  cursor: pointer;
  color: var(--bk-body);
  transition: border-color .16s ease, background .16s ease;
}
.bk-option:hover { border-color: var(--bk-gold-soft); background: var(--bk-cream); }
.bk-option.is-active { border-color: var(--bk-gold); background: var(--bk-cream); }
.bk-option:disabled { opacity: .45; cursor: not-allowed; }

.bk-option-name {
  flex: 1 1 auto;
  font-size: 14.5px;
  color: var(--bk-ink);
}
.bk-option-meta {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--bk-copper);
  white-space: nowrap;
}
.bk-option-price {
  flex: 0 0 auto;
  font-size: 13.5px;
  color: var(--bk-gold);
  min-width: 68px;
  text-align: right;
}

/* Staff */

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

.bk-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  background: var(--bk-linen);
  border: 1px solid var(--bk-hair);
  border-radius: 999px;
  cursor: pointer;
  color: var(--bk-body);
  font-size: 14px;
  transition: border-color .16s ease, background .16s ease;
}
.bk-person:hover { border-color: var(--bk-gold-soft); background: var(--bk-cream); }
.bk-person.is-active { border-color: var(--bk-gold); background: var(--bk-cream); }
.bk-person:disabled { opacity: .4; cursor: not-allowed; }

.bk-avatar {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bk-gold-soft);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .5px;
}
.bk-person.is-any .bk-avatar { background: var(--bk-dust); color: var(--bk-ink); }

/* Time slots */

.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.bk-slot {
  padding: 11px 6px;
  background: var(--bk-linen);
  border: 1px solid var(--bk-hair);
  border-radius: var(--bk-radius);
  cursor: pointer;
  color: var(--bk-ink);
  font-size: 14px;
  text-align: center;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.bk-slot:hover { border-color: var(--bk-gold-soft); background: var(--bk-cream); }
.bk-slot.is-active { background: var(--bk-gold); border-color: var(--bk-gold); color: #fff; }
.bk-slot small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }

.bk-note {
  grid-column: 1 / -1;
  padding: 18px 16px;
  background: var(--bk-cream);
  border-radius: var(--bk-radius);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--bk-copper);
  text-align: center;
  margin: 0;
}

/* Summary */

.bk-summary {
  margin-top: 22px;
  padding: 20px;
  background: var(--bk-cream);
  border-radius: var(--bk-radius);
}
.bk-summary dl { margin: 0 0 18px; }
.bk-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
}
.bk-summary dt { color: var(--bk-copper); }
.bk-summary dd { margin: 0; color: var(--bk-ink); text-align: right; }
.bk-sum-total {
  margin-top: 6px;
  padding-top: 12px !important;
  border-top: 1px solid var(--bk-dust);
}
.bk-sum-total dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  color: var(--bk-gold);
}

.bk-fineprint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bk-copper);
  text-align: center;
}
.bk-fineprint a { color: var(--bk-gold); text-decoration: underline; }

/* Buttons */

.bk-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--bk-radius);
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: .6px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.bk-btn--primary { background: var(--bk-gold); color: #fff; }
.bk-btn--primary:hover:not(:disabled) { background: var(--bk-copper); }
.bk-btn--primary:disabled { background: var(--bk-dust); color: #fff; cursor: not-allowed; }

.bk-btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border-color: var(--bk-dust);
  color: var(--bk-ink);
  margin-top: 10px;
}
.bk-btn--google:hover { border-color: var(--bk-copper); }
.bk-btn--google svg { width: 17px; height: 17px; }

.bk-btn--primary[data-state] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bk-btn--primary[data-state="loading"]:disabled {
  background: var(--bk-gold);
  cursor: progress;
}
.bk-btn--primary[data-state="done"]:disabled {
  background: var(--bk-sage);
  cursor: default;
}
.bk-btn--primary[data-state="error"] { background: #b9584c; }
.bk-btn--primary[data-state="error"]:hover { background: #a14a3f; }

.bk-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bk-spin .7s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-btn-check { width: 17px; height: 17px; }

/* ---------------- Modals ---------------- */

.bk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: 'Jost', sans-serif;
  color: var(--body-text, #5c4737);
}
.bk-modal[hidden] { display: none; }

.bk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 33, 24, .5);
  backdrop-filter: blur(2px);
}

.bk-modal-box {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  padding: 34px 30px 30px;
  box-shadow: 0 20px 60px rgba(44, 33, 24, .28);
}
.bk-modal-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 27px;
  color: var(--ink, #2c2118);
  margin: 0 0 6px;
}
.bk-modal-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--copper, #906749);
}

.bk-modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: none;
  background: none;
  color: var(--copper, #906749);
  cursor: pointer;
  border-radius: 50%;
}
.bk-modal-x:hover { background: var(--cream, #f8f2e9); }
.bk-modal-x svg { width: 17px; height: 17px; }

/* Contact fields (inside the flow, not a modal) */

.bk-fields { display: flex; flex-direction: column; gap: 14px; }

.bk-field { display: block; }
.bk-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: .4px;
  color: var(--bk-copper);
}
.bk-field > span i { font-style: normal; opacity: .7; }

.bk-field input,
.bk-field textarea {
  width: 100%;
  padding: 12px 13px;
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  color: var(--bk-ink);
  background: var(--bk-linen);
  border: 1px solid var(--bk-dust);
  border-radius: var(--bk-radius);
  resize: vertical;
}
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--bk-gold);
  background: #fff;
}
.bk-field.is-invalid input,
.bk-field.is-invalid textarea { border-color: #b9584c; background: #fdf6f5; }

.bk-field-err {
  display: none;
  margin-top: 5px;
  font-size: 12px;
  font-style: normal;
  color: #8c3a30;
}
.bk-field.is-invalid .bk-field-err { display: block; }

/* Honeypot — must be reachable by bots, invisible to people. */
.bk-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bk-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  background: var(--bk-cream);
  border-radius: var(--bk-radius);
  font-size: 13px;
  line-height: 1.6;
  color: var(--bk-body);
  cursor: pointer;
}
.bk-check input { margin-top: 3px; accent-color: var(--bk-gold); flex: 0 0 auto; }

.bk-consent-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--bk-copper);
}
.bk-consent-note a { color: var(--bk-gold); text-decoration: underline; }

.bk-formerr, .bk-modal-err {
  margin: 14px 0 0;
  padding: 11px 13px;
  background: #fbeceb;
  border-radius: 4px;
  font-size: 13px;
  color: #8c3a30;
}
.bk-modal-err[hidden] { display: none; }

/* Confirmation */

.bk-modal-box--done { text-align: center; }
.bk-done-mark {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream, #f8f2e9);
  color: var(--gold, #c47a3f);
}
.bk-done-mark svg { width: 26px; height: 26px; }
.bk-done-line {
  margin: 0 0 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink, #2c2118);
}
.bk-modal-box--done .bk-btn { margin-top: 20px; }

  .pfp {
  width: 350px;
  }
  .imgframe {
  width: 300px;
  height: 300px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: inherit;
  border-radius: 9px;
  border: 3px solid var(--bk-gold);
  }
  .pfptext {
  font-family: var(--font-primary);
  font-size: 2rem;
  text-decoration: underline;
  }
  .ican {
  font-size: larger;
  }

/* ---------------- Mobile ---------------- */

@media (max-width: 560px) {
  .bk-hero { padding-top: 86px; height: 38rem; display: flex; justify-content: space-evenly;}
  .bk-calendar, .bk-flow { padding: 20px 16px; }
  .bk-day { min-height: 40px; font-size: 14px; }
  .bk-slots { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .bk-modal-box { padding: 30px 20px 24px; }
  .bk-option { flex-wrap: wrap; }
  .bk-option-price { min-width: 0; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bk *, .bk-modal * { transition: none !important; }
}
