/* Reboost booking page. Colours from the live reboost.lu: orange hsl(24 99% 51%) = #FE6906,
   navy hsl(210 45% 11%); type Outfit. Orange fills buttons and the chosen time only; small text
   is never orange on white. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/outfit.woff2) format("woff2");
}

:root {
  --orange: #fe6906;
  --orange-hover: #e65c00;
  --on-orange: #ffffff;
  --navy: #0f1c29;
  --bg: #f2f5f8;
  --card: #ffffff;
  --text: #0f1c29;
  --muted: #566778;
  --line: #dde3ea;
  --chip: #f2f5f8;
  --chip-hover: #ffeadb;
  --tint: #fff1e7;
  --danger: #b42318;
  --ok: #0f7a4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 28, 41, 0.06), 0 8px 28px rgba(15, 28, 41, 0.07);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1622;
    --card: #152432;
    --text: #eef3f8;
    --muted: #93a6b9;
    --line: #2a3d50;
    --chip: #1c2e3f;
    --chip-hover: #33281f;
    --tint: #2b2218;
    --danger: #ff8a7a;
    --ok: #4fd39a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* Top bar: always navy, like reboost.lu */
.bar {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.logo img { display: block; height: 30px; width: auto; }
.langs { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.72);
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  min-width: 44px; min-height: 36px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: #fff; color: var(--navy); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  flex: 1;
}

/* Who you meet */
.who {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.photo { display: block; position: relative; }
.photo img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: 50% 62%; }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 28, 41, 0) 45%, rgba(15, 28, 41, 0.55) 100%);
}
.who-body { padding: 0 24px 24px; position: relative; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.team { background: var(--orange); }
.avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--orange); color: var(--on-orange);
  display: grid; place-items: center;
  font-weight: 700; font-size: 28px; letter-spacing: 0.02em;
  border: 4px solid var(--card);
  margin-top: -38px; position: relative; z-index: 1;
}
.kicker { margin: 14px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.who h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.role { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.intro { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* Scheduler card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-height: 420px;
}
.card h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; justify-content: center; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

.days-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.month { font-weight: 600; font-size: 15px; }
.arrows { display: flex; gap: 6px; }
.arrows button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.arrows button:disabled { opacity: 0.35; cursor: default; }
.days {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 2px 6px; margin: 0 -2px; scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; width: 76px; scroll-snap-align: start;
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 10px 4px; cursor: pointer; text-align: center; display: grid; gap: 1px;
}
.day .wd { font-size: 13px; color: var(--muted); text-transform: capitalize; font-weight: 500; }
.day .dn { font-size: 22px; font-weight: 700; line-height: 1.2; }
.day .n { font-size: 11px; color: var(--muted); white-space: nowrap; }
.day:hover { border-color: var(--orange); }
.day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.day[aria-pressed="true"] .wd, .day[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.75); }
@media (prefers-color-scheme: dark) {
  .day[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--navy); }
  .day[aria-pressed="true"] .wd, .day[aria-pressed="true"] .n { color: #4a5b6c; }
}

.period { margin: 20px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time {
  min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--chip);
  font-weight: 600; font-size: 16px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.time:hover { background: var(--chip-hover); border-color: var(--orange); }
.time[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }

.note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.empty { text-align: center; padding: 40px 8px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* Form */
.picked {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--tint); border-radius: 12px; padding: 14px 16px; margin-top: 18px;
}
.picked strong { display: block; font-size: 17px; }
.picked span { color: var(--muted); font-size: 14px; }
.link-btn { border: 0; background: none; text-decoration: underline; cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 4px; min-height: 44px; }
form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label .opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; min-height: 48px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254, 105, 6, 0.22); }
.primary {
  background: var(--orange); color: var(--on-orange); border: 0; border-radius: 12px;
  min-height: 54px; padding: 0 22px; font-size: 19px; font-weight: 700; cursor: pointer;
}
.primary:hover { background: var(--orange-hover); }
.primary:disabled { opacity: 0.6; cursor: progress; }
.secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  min-height: 48px; padding: 0 18px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.err { color: var(--danger); font-weight: 600; font-size: 15px; margin: 0; }

/* Done */
.done { text-align: center; padding: 16px 0 8px; }
.check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; margin: 0 auto 14px; font-size: 30px; font-weight: 700;
}
.done h2 { font-size: 24px; }
.when { margin: 16px auto 0; max-width: 420px; background: var(--tint); border-radius: 12px; padding: 16px; }
.when strong { display: block; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 28px; }
.foot p { margin: 4px 0; }

/* Not found */
body.plain { background: var(--navy); color: #fff; }
.gone { max-width: 420px; margin: 18vh auto 0; padding: 0 16px; text-align: center; }
.gone img { height: 40px; width: auto; }
.gone h1 { font-size: 26px; margin: 28px 0 4px; }
.gone p { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .who { position: static; }
  .photo img { height: 150px; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 420px) {
  .card { padding: 18px 16px; }
  .who-body { padding: 0 18px 18px; }
  .who h1 { font-size: 26px; }
  .day { width: 68px; }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phone with country code */
.phone { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; }
select {
  width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px;
  padding: 0 10px; font: inherit; font-size: 16px; min-height: 48px;
}
select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254, 105, 6, 0.22); }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
