/* ============================================================
   REVERT — Booking page (Cal.com-style), adapted from the
   provided calendar-programare.html design.
   ============================================================ */
@font-face {
  font-family: "Zimula";
  src: url("../assets/fonts/Zimula-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
:root {
  --display: "Zimula","Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --body: "Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;

  --bk-ink:#121412; --bk-ink2:#3a403c; --bk-muted:#7a817d; --bk-faint:#b3b8b5;
  --bk-line:#e7e8e4; --bk-soft:#f3f4f1; --bk-day:#eceeea; --bk-day-h:#e1e4df;
  --bk-card:#ffffff; --bk-green:#28ce68; --bk-green-ink:#0d7a38;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--bk-ink);
  background:
    linear-gradient(180deg, rgba(221,236,250,0) 60%, #eaf3fc 100%),
    url("../assets/img/background.png") center top / cover no-repeat,
    #dcebfb;
}

/* ---- page chrome ---- */
.book-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 26px 20px 70px; }
.book-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 14px var(--body); color: #2a3b4d;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(30,60,90,.08); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.book-back:hover { background: rgba(255,255,255,.8); transform: translateX(-2px); }
.book-back svg { width: 15px; height: 15px; }

.book-hero { text-align: center; margin: 40px 0 34px; max-width: 760px; }
.book-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 17px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #141414;
  background-image: linear-gradient(198deg, #ffff7a, #fefe46 45%, #e6e62a);
  outline: 1px solid rgba(255, 255, 255, .6);
  outline-offset: -1px;
  box-shadow:
    -3px 3px 5px rgba(70, 62, 0, .18),
    -1px 1px 2px rgba(70, 62, 0, .25),
    inset 0 -2px 0 rgba(120, 110, 0, .18);
}
.book-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -1.8px;
  color: #10243a;
}
.book-hero p {
  margin: 16px auto 0; max-width: 540px; font-size: 16px; line-height: 1.55; color: #3f566c;
}

/* ---- booking card ---- */
.bk {
  width: 100%; max-width: 1040px; background: var(--bk-card); color: var(--bk-ink);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(20,50,80,.18), 0 0 0 1px rgba(255,255,255,.5);
  font-family: var(--body);
}
.bk-body { display: grid; grid-template-columns: 280px minmax(0,1fr) 236px; }
.bk-body.noslots { grid-template-columns: 280px minmax(0,1fr); }

.bk-who { padding: 26px 24px 28px; border-right: 1px solid var(--bk-line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bk-person { display: flex; align-items: center; gap: 11px; color: var(--bk-ink); font-size: 14.5px; font-weight: 700; }
.bk-person .ph { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.bk-who h3 { margin: 2px 0 0; font-family: var(--display); font-weight: 500; font-size: 23px; letter-spacing: -.5px; }
.bk-who .desc { margin: 0; color: var(--bk-ink2); font-size: 14.5px; line-height: 1.5; }
.bk-meta { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--bk-ink2); font-weight: 600; }
.bk-meta li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-meta svg { width: 18px; height: 18px; flex: none; color: var(--bk-muted); }
.bk-meta select { font: inherit; color: inherit; border: 0; background: transparent; padding: 0; cursor: pointer; min-width: 0; max-width: 100%; }
.bk-picked { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bk-soft); font-size: 14px; color: var(--bk-ink); font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.bk-picked svg { width: 18px; height: 18px; flex: none; color: var(--bk-green-ink); margin-top: 1px; }

.bk-cal { padding: 24px 24px 26px; min-width: 0; }
.bk-mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-mhead b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.4px; }
.bk-mhead b span { color: var(--bk-muted); }
.bk-nav { display: flex; gap: 4px; }
.bk-nav button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--bk-ink); }
.bk-nav button:hover:not(:disabled) { background: var(--bk-soft); }
.bk-nav button:disabled { color: var(--bk-faint); cursor: default; }
.bk-nav svg { width: 16px; height: 16px; }
.bk-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.bk-dow { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bk-ink2); padding: 6px 0 8px; }
.bk-dow.we { color: var(--bk-ink2); }
.bk-d { aspect-ratio: 1/1; max-width: 100%; border: 0; border-radius: 10px; background: transparent; font: 600 15px/1 var(--body); color: var(--bk-faint); display: grid; place-items: center; position: relative; cursor: default; font-variant-numeric: tabular-nums; }
.bk-d.av { background: var(--bk-day); color: var(--bk-ink); cursor: pointer; transition: background .15s; }
.bk-d.av:hover { background: var(--bk-day-h); }
.bk-d.today::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bk-d.sel { color: #fff; background-image: linear-gradient(198deg,#323232,#141414); outline: 1px solid rgba(255,255,255,.2); outline-offset: -1px; box-shadow: -12px 9px 9px rgba(0,0,0,.10), -5px 4px 6px rgba(0,0,0,.18), -1px 1px 4px rgba(0,0,0,.24); }
.bk-d:focus-visible, .bk-slot:focus-visible, .bk-nav button:focus-visible { outline: 2px solid var(--bk-green); outline-offset: 2px; }

.bk-slots { padding: 24px 20px 26px; border-left: 1px solid var(--bk-line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bk-slots .t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; }
.bk-slots .t small { color: var(--bk-muted); font-weight: 600; font-size: 13px; }
.bk-list { display: flex; flex-direction: column; gap: 8px; max-height: 408px; overflow: auto; padding: 2px; }
.bk-slot { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; border: 1px solid var(--bk-line); background: #fff; font: 600 15px/1 var(--body); color: var(--bk-ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.bk-slot i { width: 7px; height: 7px; border-radius: 50%; background: var(--bk-green); }
.bk-slot:hover { border-color: var(--bk-ink); }
.bk-empty { color: var(--bk-muted); font-size: 14px; padding: 8px 2px; }

/* form */
.bk-form { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bk-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-f label { font-size: 13.5px; font-weight: 700; color: var(--bk-ink2); }
.bk-f label em { font-style: normal; color: var(--bk-muted); font-weight: 600; }
.bk-f input, .bk-f textarea { font: 500 15px/1.4 var(--body); color: var(--bk-ink); border: 1px solid var(--bk-line); border-radius: 10px; padding: 11px 12px; background: #fff; width: 100%; }
.bk-f textarea { min-height: 84px; resize: vertical; }
.bk-f input:focus, .bk-f textarea:focus { outline: 2px solid var(--bk-green); outline-offset: 0; border-color: transparent; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chips label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--bk-line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; color: var(--bk-ink); cursor: pointer; white-space: nowrap; }
.bk-chips input { accent-color: #141414; margin: 0; width: auto; padding: 0; }
.bk-chips label:has(input:checked) { border-color: var(--bk-ink); background: var(--bk-soft); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 4px; }
.bk-back2 { border: 0; background: transparent; font: 700 14.5px var(--body); color: var(--bk-ink2); cursor: pointer; padding: 10px 4px; }
.bk-back2:hover { color: var(--bk-ink); }
.bk-err { color: #b42318; font-size: 13px; font-weight: 600; min-height: 1em; }

/* realistic black button */
.btn-real { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 8px 18px; border-radius: 12px; border: none; cursor: pointer; font-family: var(--body); font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; background-image: linear-gradient(198deg,#323232,#141414); outline: 1px solid rgba(255,255,255,.2); outline-offset: -1px; box-shadow: -21px 16px 10px rgba(0,0,0,.04), -12px 9px 9px rgba(0,0,0,.13), -5px 4px 6px rgba(0,0,0,.23), -1px 1px 4px rgba(0,0,0,.26); transition: transform .2s; }
.btn-real:hover { transform: translateY(-1px); }
.btn-real .tx { background: linear-gradient(to bottom,#fff,#e5e7eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-real:focus-visible { outline: 2px solid var(--bk-green); outline-offset: 3px; }

/* entrance animation targets */
.book-hero, .bk { opacity: 0; }

@media (max-width: 900px) {
  .bk-body, .bk-body.noslots { grid-template-columns: 1fr; }
  .bk-who { border-right: 0; border-bottom: 1px solid var(--bk-line); padding-bottom: 20px; }
  .bk-slots { border-left: 0; border-top: 1px solid var(--bk-line); }
  .bk-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(96px,1fr)); max-height: none; }
}
@media (max-width: 560px) {
  .book-page { padding: 18px 14px 50px; }
  .bk-who, .bk-cal, .bk-slots, .bk-form { padding-left: 16px; padding-right: 16px; }
  .bk-grid { gap: 4px; }
  .bk-form .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .book-hero, .bk { opacity: 1; } }
