/* SR Scheduler. Layout follows Calendly's booking page; colors and type are the SR website's. */
:root {
  --navy: #0A1F42; --navy-700: #14335E; --navy-900: #061530;
  --gold: #C4A25C; --gold-light: #D4B97A; --gold-deep: #A8863F;
  --cream: #F5F2ED; --cream-dark: #EDE8E0;
  --text: #1A1A1A; --mute: #6B6459; --line: #E2DCD1; --white: #fff; --error: #A8321F;
  --tint: rgba(196, 162, 92, .17);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: Inter, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding: 56px 16px 24px; display: flex; justify-content: center; align-items: flex-start; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }
.foot { text-align: center; padding: 8px 16px 28px; font-size: 13px; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--navy); text-decoration: underline; }

.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; box-shadow: 0 1px 8px rgba(10, 31, 66, .06); width: 100%; }
.card.msg { max-width: 560px; padding: 48px 32px; text-align: center; }
.card.split { display: flex; max-width: 800px; min-height: 560px; transition: max-width .2s ease; }
.card.split.has-date { max-width: 1060px; }
.card.split.form { max-width: 1000px; }

/* Left panel */
.info { flex: 0 0 34%; max-width: 340px; padding: 28px 28px 32px; border-right: 1px solid var(--line); }
.back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.back:hover { background: var(--cream); }
.photo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--line); }
.host { margin: 14px 0 2px; color: var(--mute); font-weight: 600; font-size: 16px; }
.title { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 30px; line-height: 1.15; margin: 0 0 20px; }
.meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.meta li { display: flex; gap: 10px; align-items: flex-start; color: var(--mute); font-weight: 600; font-size: 15px; }
.meta svg { flex: 0 0 22px; margin-top: 1px; color: var(--navy-700); }
.meta .was { text-decoration: line-through; font-weight: 500; }
.durations { display: flex; gap: 8px; margin: 0 0 18px; }
.durations button { border: 1px solid var(--navy-700); background: var(--white); color: var(--navy); border-radius: 6px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.durations button[aria-pressed=true] { background: var(--navy); color: var(--white); }

/* Right panel */
.pane { flex: 1; padding: 28px 32px 32px; min-width: 0; }
.pane h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 24px; }
.cal-wrap { display: flex; gap: 28px; }
.month { flex: 1; min-width: 0; max-width: 400px; }
.month-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.month-nav span { font-weight: 600; min-width: 150px; text-align: center; }
.month-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.month-nav button:hover:not(:disabled) { background: var(--gold-light); }
.month-nav button:disabled { background: none; color: #C9C2B5; cursor: default; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.dow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: 6px; }
.grid { row-gap: 6px; }
.day { position: relative; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 0; background: none; font-size: 15px; color: #A39C90; cursor: default; }
.day.open { background: var(--tint); color: var(--navy); font-weight: 700; cursor: pointer; }
.day.open:hover { background: var(--gold-light); }
.day.sel, .day.sel:hover { background: var(--navy); color: var(--white); }
.day.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tz { margin-top: 22px; }
.tz label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.tz select { width: 100%; max-width: 340px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--white); font-size: 14px; }
.times { flex: 0 0 230px; }
.times h3 { font-size: 16px; font-weight: 500; margin: 6px 0 20px; }
.time-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px 6px 2px 2px; }
.time { height: 52px; border: 1px solid var(--navy-700); border-radius: 6px; background: var(--white); color: var(--navy); font-weight: 700; }
.time:hover { box-shadow: inset 0 0 0 1px var(--navy-700); }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.time-row .chosen { height: 52px; border-radius: 6px; background: var(--mute); color: var(--white); font-weight: 700; border: 0; cursor: default; }
.time-row .next { height: 52px; border-radius: 6px; background: var(--navy); color: var(--white); font-weight: 700; border: 0; }
.time-row .next:hover, .btn:hover:not(:disabled) { background: var(--navy-700); }
.empty { color: var(--mute); font-size: 15px; }
.skeleton { height: 300px; display: grid; place-items: center; color: var(--mute); }

/* Form */
form { max-width: 420px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea { width: 100%; border: 1px solid #C9C2B5; border-radius: 6px; padding: 11px 12px; background: var(--white); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .tz select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.field .hint { font-size: 13px; color: var(--mute); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.field .radio { display: flex; align-items: center; gap: 10px; padding: 7px 0; margin: 0; font-weight: 500; font-size: 16px; color: var(--text); cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.radio svg { color: var(--navy-700); }
.link-btn { border: 1px solid var(--navy-700); background: var(--white); color: var(--navy); border-radius: 40px; padding: 7px 14px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.link-btn:hover { background: var(--cream); }
.btn { border: 0; border-radius: 40px; background: var(--navy); color: var(--white); font-weight: 700; padding: 12px 22px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.danger { background: var(--error); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--navy-700); }
.err { color: var(--error); font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation, cancel */
.done { max-width: 620px; padding: 44px 36px; text-align: center; }
.done .photo { margin: 0 auto 14px; }
.done h1 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 30px; margin: 0 0 6px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.done h1 svg { color: var(--gold-deep); }
.summary { text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin: 26px auto 22px; max-width: 460px; }
.summary h2 { font-size: 18px; color: var(--navy); margin: 0 0 14px; }
.actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.actions a { color: var(--navy); font-weight: 600; }
.cancel-form { text-align: left; max-width: 460px; margin: 0 auto; }
.events { list-style: none; margin: 26px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.events a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 6px; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 700; }
.events a:hover { background: var(--cream); }
.events small { display: block; color: var(--mute); font-weight: 500; }

@media (max-width: 900px) {
  main { padding: 20px 12px 16px; }
  .card.split, .card.split.has-date, .card.split.form { flex-direction: column; max-width: 560px; min-height: 0; }
  .info { flex: none; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; text-align: center; }
  .info .photo { margin: 0 auto; }
  .info .back { position: absolute; }
  .card.split { position: relative; }
  .meta { justify-items: center; }
  .meta li { text-align: left; }
  .durations { justify-content: center; }
  .title { font-size: 26px; margin-bottom: 14px; }
  .pane { padding: 22px 16px 26px; }
  .pane h2 { text-align: center; margin-bottom: 18px; }
  .cal-wrap { flex-direction: column; gap: 22px; }
  .month { max-width: none; }
  .times { flex: none; }
  .times h3 { text-align: center; margin: 0 0 14px; }
  .time-list { max-height: none; overflow: visible; }
  .tz select { max-width: none; }
  form { max-width: none; }
  .done { padding: 32px 18px; }
}
@media (max-width: 380px) { .day { width: 38px; height: 38px; } }
