/* Dutch with Geert: booking, portal and admin (on top of site.css) */

.app-main { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; min-height: 60vh; }
.app-main h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.app-head p { margin: .6rem 0 0; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.small { font-size: .92rem; }
.hidden { display: none !important; }

.panel { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--white); margin-bottom: 1.5rem; }
.panel > h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel > h2 .count { font-family: var(--body); font-weight: 400; font-size: .95rem; color: var(--ink-faint); margin-left: .4rem; }
.panel.wash { background: var(--wash); border-color: var(--wash); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-2 > .panel { margin-bottom: 0; }

/* forms */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-faint); font-size: .88rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  font: inherit; color: var(--ink); width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,107,102,.15); }
textarea { min-height: 5.5rem; resize: vertical; }
.inline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline .field { margin-bottom: 0; flex: 1 1 140px; }
.check { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--teal); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); border-width: 1.5px; }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-btn.danger { color: var(--error); }
.form-msg { margin-top: .8rem; font-size: .95rem; }
.form-msg.error { color: var(--error); }
.form-msg.ok { color: var(--teal-deep); }

/* steps on the booking page */
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-faint); font-size: .95rem; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.done { color: var(--teal); }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.type-card { text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.type-card:hover { border-color: var(--ink); }
.type-card[aria-pressed=true] { border-color: var(--ink); background: #fff8dc; box-shadow: 3px 3px 0 var(--ink); }
.type-card h3 { margin-bottom: .3rem; }
.type-card .price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--teal); }
.type-card p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .95rem; }

.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.day { border: 1.5px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.day h3 { font-size: 1.02rem; font-family: var(--body); margin-bottom: .6rem; }
.slots { display: flex; flex-wrap: wrap; gap: .45rem; }
.slot { font: inherit; font-size: .95rem; cursor: pointer; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 6px; padding: .3rem .6rem; }
.slot:hover { background: var(--wash); }
.slot[aria-pressed=true] { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.tz-note { font-size: .92rem; color: var(--ink-faint); margin: -.5rem 0 1.2rem; }

.summary { border-left: 4px solid var(--teal); background: var(--wash); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.4rem; }
.summary strong { font-family: var(--display); font-size: 1.15rem; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .main { flex: 1 1 260px; min-width: 0; }
.list .when { font-weight: 700; }
.list .sub { display: block; color: var(--ink-faint); font-size: .92rem; }
.list .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.empty { color: var(--ink-faint); margin: 0; }
.note-body { white-space: pre-wrap; margin: .3rem 0 0; color: var(--ink-soft); }

.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--wash); color: var(--ink-soft); vertical-align: middle; }
.badge.booked { background: #e3f1ee; color: var(--teal-deep); }
.badge.completed { background: #e6e9f5; color: #2c3a78; }
.badge.cancelled { background: #f6e3e1; color: var(--error); }
.badge.no_show { background: #fff3c4; color: #5c4600; }
.badge.unpaid { background: #fff3c4; color: #5c4600; }
.badge.paid { background: #e3f1ee; color: var(--teal-deep); }

.meter { height: 12px; background: var(--wash); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); margin: .5rem 0 .4rem; }
.meter > span { display: block; height: 100%; background: var(--teal); }
.big-num { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }

/* admin */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.6rem; }
.tabs button { font: inherit; font-weight: 700; background: none; border: 0; padding: .6rem 1rem; cursor: pointer; color: var(--ink-soft); border-radius: 8px 8px 0 0; }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.data th { text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); padding: .5rem .5rem; border-bottom: 2px solid var(--ink); }
table.data td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--wash); }
.table-wrap { overflow-x: auto; }
.day-head { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin: 1.4rem 0 .2rem; }
.day-head:first-child { margin-top: 0; }
.back { margin-bottom: 1rem; }

#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--ink); color: var(--white);
  padding: .8rem 1.2rem; border-radius: 10px; max-width: min(90vw, 520px); z-index: 200; transition: transform .2s ease; font-size: .98rem; }
#toast.show { transform: translate(-50%, 0); }
#toast.error { background: var(--error); }

.loading { color: var(--ink-faint); }
.gate { max-width: 460px; }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  table.data .hide-sm { display: none; }
}

/* admin week calendar */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.cal-nav { display: flex; align-items: center; gap: .7rem; }
.cal-nav h2 { font-size: 1.25rem; margin: 0; white-space: nowrap; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.wday { border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem; min-height: 150px; display: flex; flex-direction: column; background: var(--white); }
.wday.today { border: 2px solid var(--teal); }
.wday.past { background: #fafbfb; }
.wday-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.wday-d { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; margin-bottom: .3rem; }
.wday.today .wday-h, .wday.today .wday-d { color: var(--teal); }
.wday-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wday-av { font-size: .72rem; color: var(--ink-faint); margin-bottom: .45rem; line-height: 1.35; }
.cal-lesson { display: block; width: 100%; text-align: left; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.3;
  border: 0; border-left: 3px solid; border-radius: 6px; padding: .3rem .45rem; margin-bottom: .3rem; cursor: pointer; overflow: hidden; }
.cal-lesson span { display: block; font-weight: 400; font-size: .72rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-lesson.booked { background: #e3f1ee; border-color: var(--teal); color: var(--teal-deep); }
.cal-lesson.completed { background: #e6e9f5; border-color: #2c3a78; color: #2c3a78; }
.cal-lesson.no_show { background: #fff3c4; border-color: #c79a00; color: #5c4600; }
.cal-lesson.blocked { cursor: default; color: var(--ink-soft); border-color: #9aa8a5;
  background: repeating-linear-gradient(135deg, #eef1f0 0 6px, #f7f8f8 6px 12px); }
.cal-lesson:not(.blocked):hover { filter: brightness(.96); }
.wday-add { margin-top: auto; background: none; border: 1.5px dashed var(--line); border-radius: 6px; font: inherit; font-size: .76rem; color: var(--ink-faint); padding: .25rem; cursor: pointer; }
.wday-add:hover { border-color: var(--teal); color: var(--teal); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1rem 0 0; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.booked { background: var(--teal); } .dot.completed { background: #2c3a78; } .dot.no_show { background: #c79a00; } .dot.blocked { background: #9aa8a5; }
dialog#lessonDlg { border: 2px solid var(--ink); border-radius: 12px; padding: 1.4rem 1.5rem; width: min(92vw, 600px); box-shadow: 4px 4px 0 var(--ink); }
dialog#lessonDlg::backdrop { background: rgba(22, 48, 44, .35); }
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; }
  .wday { flex-direction: row; min-height: 0; gap: .9rem; padding: .7rem .9rem; }
  .wday-top { flex: 0 0 44px; text-align: center; }
  .wday-add { margin-top: .3rem; padding: .4rem; }
}
.cal-lesson.pending { background: #fff3c4; border-color: var(--yellow-deep); color: #5c4600; border-left-style: dashed; }
.dot.pending { background: var(--yellow-deep); }
.badge.pending { background: #fff3c4; color: #5c4600; }

/* ───── booking page (MC-style layout) ───── */
.bk-hero { background: var(--wash); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.bk-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.bk-hero .lead { max-width: 560px; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 1.1rem; }
.bk-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; margin: 0 0 1rem; }
.bk-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 1.4rem 0 .8rem; }
.bk-chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .92rem; color: var(--ink-soft); }
.bk-hero #whoami { color: var(--ink-faint); margin: .6rem 0 0; }
.bk-body { padding-top: 2.2rem; padding-bottom: 4rem; }

.bk-trial { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  max-width: 820px; margin: 0 auto 3rem; padding: 1.3rem 1.6rem; border: 2px solid var(--ink); border-radius: 14px;
  background: #fff8dc; box-shadow: 4px 4px 0 var(--ink); }
.bk-trial h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.bk-trial .hl { color: var(--teal); }
.bk-trial s { color: var(--ink-faint); font-weight: 400; font-size: 1rem; }
.bk-trial p { margin: 0; color: var(--ink-soft); max-width: 520px; }
.bk-trial-text { flex: 1 1 380px; }

.bk-head { text-align: center; margin: 0 auto 1.6rem; }
.bk-head .gloss { margin-top: .3rem; }
.bk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.bk-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.4rem 1.4rem 1.3rem; }
.bk-card h3 { font-size: 1.35rem; margin: .7rem 0 .4rem; }
.bk-card p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 .8rem; }
.bk-card .price { margin-top: auto; padding-top: .3rem; }
.bk-card .price b { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.bk-card .price s { color: var(--ink-faint); margin-left: .3rem; }
.bk-card .price span { display: block; font-size: .9rem; color: var(--ink-faint); margin-top: .3rem; }
.bk-card .btn { width: 100%; text-align: center; margin-top: .4rem; }
.bk-card .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.bk-card .tag.plain { background: var(--wash); color: var(--teal-deep); }
.bk-card.offer { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bk-card.offer .price b { color: var(--teal); }
.bk-card.mine { border: 2px solid var(--teal); }
.bk-card.mine .tag { background: var(--teal); color: var(--white); }

.bk-policy { margin: 0 auto 3rem; max-width: 720px; }
.bk-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bk-steps li { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.3rem; }
.bk-steps .n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700; margin-bottom: .7rem; }
.bk-steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.bk-steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

dialog#bkDlg { border: 2px solid var(--ink); border-radius: 14px; padding: 1.6rem 1.6rem 1.4rem; width: min(94vw, 560px); max-height: 92vh;
  box-shadow: 5px 5px 0 var(--ink); }
dialog#bkDlg::backdrop { background: rgba(22, 48, 44, .45); }
dialog#bkDlg h2 { font-size: 1.45rem; margin: 0 2rem .9rem 0; }
.bk-close { position: absolute; top: .7rem; right: .9rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-faint); }
.bk-close:hover { color: var(--ink); }

@media (max-width: 760px) {
  .bk-steps { grid-template-columns: 1fr; }
  .bk-trial { padding: 1.1rem 1.2rem; }
  .bk-trial .btn { width: 100%; text-align: center; }
  dialog#bkDlg { margin: auto 0 0; width: 100%; max-width: 100%; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.2);
    padding: 1.3rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); }
}
