/* Calendly-style visitor page layout. Brand-neutral: all colours, fonts and
   logo size come from public/brand/brand.css. The admin page still uses styles.css. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body-font); background: var(--page-bg); color: var(--ink); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); color: var(--ink); line-height: 1.2; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.page { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px 24px; }
.card { background: var(--card); border-radius: 10px; box-shadow: var(--card-shadow, 0 6px 30px rgba(0,0,0,.35)); display: flex; width: 100%; max-width: 1060px; min-height: 620px; overflow: hidden; }
.card[data-step="step-form"], .card[data-step="step-done"] { max-width: 900px; }

/* Left panel */
.info { flex: 0 0 300px; padding: 28px 24px; border-right: 1px solid var(--line); }
.logo-tile { display: inline-block; background: var(--logo-tile); border-radius: 6px; padding: 0; margin-bottom: 22px; }
.logo { display: block; height: var(--logo-height); width: auto; max-width: 100%; }
.company { color: var(--muted); font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.meeting-title { font-size: 1.6rem; margin-bottom: 18px; }
.facts { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.facts li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 600; }
.facts .ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--icon, var(--accent-2)); margin-top: 1px; }
#chosen-fact { color: var(--ink); }
.meeting-line { color: var(--ink); border-top: 3px solid var(--rule, var(--accent-2)); padding-top: 14px; }

/* Steps */
.step { flex: 1; padding: 28px 28px 32px; min-width: 0; }
#step-pick { display: flex; gap: 24px; }
.cal-col { flex: 1 1 auto; min-width: 0; max-width: 460px; }
.step h2 { font-size: 1.3rem; margin-bottom: 20px; }
.sub { color: var(--muted); margin-bottom: 18px; }

.month-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 10px; }
.month-label { min-width: 160px; text-align: center; font-weight: 600; }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--accent-tint); color: var(--accent); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.nav-btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.nav-btn:disabled { background: transparent; color: var(--muted); cursor: default; }

.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 6px 0; text-align: center; letter-spacing: .04em; }
.cal td { text-align: center; padding: 0; height: 48px; }
.day { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; color: var(--muted); }
span.day { opacity: 1; }
.day.today { text-decoration: underline; text-underline-offset: 4px; }
button.day { border: none; cursor: pointer; font-family: inherit; font-weight: 700; background: var(--accent-tint); color: var(--accent); }
button.day:hover { box-shadow: inset 0 0 0 2px var(--accent); }
button.day.selected { background: var(--accent); color: var(--on-accent); }

.tz { margin-top: 18px; }
.tz label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.tz select { width: 100%; max-width: 340px; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--control-border); border-radius: 8px; }
.tz-note { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.status { color: var(--muted); margin-top: 16px; }

.times-col { flex: 0 0 220px; padding-top: 48px; }
.times-col.empty { display: none; }
.times-day { font-family: var(--body-font); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.times { display: flex; flex-direction: column; gap: 10px; max-height: 470px; overflow-y: auto; padding: 4px; }
.time-btn { min-height: 52px; border: 1px solid var(--control-border); background: var(--card); color: var(--accent); font: inherit; font-weight: 700; font-size: 1rem; border-radius: 6px; cursor: pointer; }
.time-btn:hover { border: 2px solid var(--accent); }

/* Form */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; margin: -6px 0 12px -8px; border: none; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px; }
.back:hover { text-decoration: underline; }
#book-form { max-width: 440px; }
#book-form label { display: block; font-weight: 600; font-size: .95rem; margin: 14px 0 6px; }
#book-form input[type="text"], #book-form input[type="email"] { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--control-border); border-radius: 8px; }
.notice { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.error { background: #FDECEC; border: 1px solid #B3261E; color: #8C1D18; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.primary-btn { margin-top: 22px; min-height: 48px; padding: 0 28px; border: none; border-radius: 24px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.primary-btn:hover:not(:disabled) { background: var(--accent-hover); }
.primary-btn:disabled { opacity: .6; cursor: default; }

/* Done */
#step-done { text-align: center; padding-top: 64px; }
#step-done:focus { outline: none; }
.done-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.8rem; line-height: 56px; }
#step-done p { max-width: 480px; margin: 0 auto 10px; }

.site-footer { text-align: center; color: var(--page-text); font-size: .88rem; padding: 20px; }
.site-footer a { color: var(--page-text); }

/* Honeypot: hidden from people, visible to form-filling robots. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Tablet / phone: stack panels */
@media (max-width: 860px) {
  .page { padding: 16px 12px; }
  .card { flex-direction: column; min-height: 0; }
  .info { flex: none; border-right: none; border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .step { padding: 22px 20px 28px; }
  #step-pick { flex-direction: column; gap: 8px; }
  .cal-col { max-width: none; }
  .times-col { flex: none; padding-top: 8px; }
  .times { max-height: none; overflow: visible; }
  .meeting-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .page { padding: 10px 8px; }
  .step { padding: 20px 14px 24px; }
  .info { padding: 20px 16px; }
  .cal { border-spacing: 3px; }
}
