:root {
  --navy: #0B2E3F;
  --navy-2: #12435a;
  --red: #B20808;
  --red-dark: #8f0606;
  --blue: #5193D0;
  --blue-soft: #e6f0fa;
  --ink: #142630;
  --muted: #5d6f78;
  --line: #dde4e8;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell {
  max-width: 1080px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(11, 46, 63, .25);
}

/* ---------- left: profile ---------- */
.profile {
  background: var(--navy);
  color: #fff;
  padding: 36px 30px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  font-weight: 800; font-size: 22px; letter-spacing: .5px;
}
.host { margin: 18px 0 2px; color: #b9cdd8; font-weight: 500; }
.profile h1 { margin: 0 0 18px; font-size: 30px; font-weight: 800; line-height: 1.15; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: center; color: #dbe7ee; }
.ico { width: 20px; text-align: center; color: var(--blue); }
.intro p { margin: 0 0 10px; color: #c9d9e2; font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links a {
  color: #fff; text-decoration: none; font-size: 14px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px;
}
.links a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- right: panel ---------- */
.panel { padding: 36px 38px; position: relative; min-width: 0; }
.panel h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: var(--navy); }

.lengths { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.len {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 20px; cursor: pointer; font-weight: 500; transition: .15s;
}
.len:hover { border-color: var(--blue); }
.len[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.picker { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#monthLabel { font-weight: 700; color: var(--navy); }
.nav {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg);
  cursor: pointer; font-size: 22px; line-height: 1; color: var(--navy);
}
.nav:disabled { opacity: .3; cursor: default; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow span { font-size: 12px; color: var(--muted); font-weight: 500; padding: 4px 0; }
.day {
  aspect-ratio: 1; max-width: 46px; width: 100%; justify-self: center;
  border-radius: 50%; border: 0; background: transparent; color: #a9b6bd; font-weight: 500;
}
.day.open { background: var(--blue-soft); color: var(--navy); cursor: pointer; font-weight: 700; }
.day.open:hover { background: #cfe2f4; }
.day.sel { background: var(--navy); color: #fff; }
.day.today { outline: 2px solid var(--red); outline-offset: -2px; }

.tz { display: grid; gap: 4px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.tz select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; }

.times h3 { margin: 6px 0 12px; font-size: 15px; color: var(--navy); }
.time-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.slot {
  border: 1.5px solid var(--blue); color: var(--navy); background: #fff; border-radius: 10px;
  padding: 10px; font-weight: 700; cursor: pointer; transition: .12s;
}
.slot:hover { background: var(--blue); color: #fff; }
.muted, .empty { color: var(--muted); font-size: 14px; }

/* ---------- form ---------- */
.back { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 0; margin-bottom: 12px; font-weight: 500; }
.summary { background: var(--blue-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 20px; color: var(--navy); font-weight: 500; }
form { display: grid; gap: 14px; max-width: 560px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 500; color: var(--navy); }
label .opt { color: var(--muted); font-weight: 400; }
input, textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.error { color: var(--red); margin: 0; min-height: 1em; font-size: 14px; }
.cta {
  background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 12px 28px;
  font-weight: 700; cursor: pointer; justify-self: start;
}
.cta:hover { background: var(--red-dark); }
.cta:disabled { opacity: .6; cursor: wait; }
.ghost { background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 10px 22px; cursor: pointer; font-weight: 500; }

/* ---------- done ---------- */
.done-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 28px; margin-bottom: 14px;
}
#doneMeet a { color: var(--blue); font-weight: 700; }

.demo { position: absolute; bottom: 10px; right: 38px; margin: 0; font-size: 12px; color: var(--red); }
.loading { opacity: .5; pointer-events: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; margin: 0; border-radius: 0; }
  .profile { padding: 24px 16px; }
  .profile h1 { font-size: 24px; margin-bottom: 12px; }
  .intro { display: none; }
  .panel { padding: 24px 16px 40px; }
  .picker { grid-template-columns: 1fr; gap: 20px; }
  .time-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; }
  .row { grid-template-columns: 1fr; }
  .demo { position: static; margin-top: 20px; }
}

/* ---------- special-time requests ---------- */
.special { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 14px; }
.tzline { margin: 0; font-size: 14px; color: var(--navy); }
.tzline strong { color: var(--red); }

/* ---------- logo, notices, guest page ---------- */
.topbar { max-width: 1080px; margin: 24px auto 0; padding: 0 4px; }
.logo { height: 56px; width: auto; display: block; }
.topbar + .shell { margin-top: 16px; }
.notice { margin: 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--red); background: #fbf1f1; color: var(--navy); font-size: 14px; border-radius: 0 10px 10px 0; }
#formNote { margin: 4px 0 0; }
.status { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; margin-bottom: 10px; background: var(--blue-soft); color: var(--navy); }
.st-booked { background: var(--navy); color: #fff; }
.st-declined, .st-cancelled { background: #f0e1e1; color: var(--red); }
.flash { background: var(--blue-soft); border-radius: 10px; padding: 10px 14px; color: var(--navy); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.danger { background: none; border: 1.5px solid var(--red); color: var(--red); border-radius: 999px; padding: 10px 22px; cursor: pointer; font-weight: 500; }
.danger:hover { background: var(--red); color: #fff; }
#mJoin a { color: var(--blue); font-weight: 700; word-break: break-all; }
input[readonly] { background: var(--bg); color: var(--muted); }
@media (max-width: 860px) {
  .topbar { margin: 0; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .logo { height: 40px; }
  .topbar + .shell { margin-top: 0; }
}
