:root {
  --navy: #10316c;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --ink: #172033;
  --muted: #64748b;
  --surface: #ffffff;
  --background: #f3f6fb;
  --border: #dce3ef;
  --success: #087a55;
  --success-bg: #e8f8f1;
  --danger: #b42332;
  --danger-bg: #fff0f1;
  --pending: #dc8b05;
  --lottery: #7047ba;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--background); }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.site-header {
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  color: white;
}
.brand { color: white; text-decoration: none; font-size: 21px; font-weight: 800; }
.brand span { font-weight: 500; opacity: .78; }
.admin-link { color: white; text-decoration: none; font-size: 14px; opacity: .9; }
.public-shell { width: min(1160px, calc(100% - 32px)); margin: 28px auto 64px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.hero h1 { margin: 3px 0 8px; color: var(--navy); font-size: clamp(29px, 4vw, 46px); line-height: 1.08; }
.hero p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; }
.property-picker { min-width: 240px; font-weight: 700; }
.property-picker select { margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(16, 49, 108, .07); padding: clamp(18px, 3vw, 30px); margin-bottom: 24px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.panel-heading h2 { margin: 4px 0 0; font-size: clamp(21px, 3vw, 28px); color: var(--navy); }
.calendar-nav { display: grid; grid-template-columns: 42px minmax(145px, auto) 42px; align-items: center; text-align: center; text-transform: capitalize; }
.icon-button { border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--navy); width: 38px; height: 38px; font-size: 27px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-dot.reserved { background: var(--danger); }
.legend-dot.pending { background: var(--pending); }
.legend-dot.lottery { background: var(--lottery); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-height: 420px; }
.calendar.loading { opacity: .55; }
.calendar-weekday { background: #f8faff; padding: 10px 5px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--border); }
.calendar-day { min-height: 72px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px; background: white; color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 6px; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #f5f8ff; }
.calendar-day.outside { color: #a6afbf; background: #fafbfc; }
.calendar-day.today .day-number { background: var(--navy); color: white; border-radius: 999px; width: 27px; height: 27px; display: grid; place-items: center; }
.calendar-day.reserved { background: #fff2f3; box-shadow: inset 4px 0 var(--danger); }
.calendar-day.pending { background: #fff8e9; box-shadow: inset 4px 0 var(--pending); }
.calendar-day.lottery { background: #f6f0ff; box-shadow: inset 4px 0 var(--lottery); }
.day-number { font-weight: 800; }
.day-state { font-size: 11px; line-height: 1.15; color: var(--muted); }
.step-badge { background: var(--blue-soft); color: var(--navy); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 750; }
fieldset { border: 0; padding: 22px 0; margin: 0; border-top: 1px solid var(--border); }
fieldset:first-of-type { border-top: 0; padding-top: 0; }
fieldset:disabled { opacity: .48; }
legend { color: var(--navy); font-size: 18px; font-weight: 800; padding: 0 0 16px; }
.form-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: block; font-size: 14px; font-weight: 700; color: #334155; }
input, select, textarea { width: 100%; min-height: 44px; margin-top: 7px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 11px; color: var(--ink); background: white; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(37, 99, 235, .16); border-color: var(--blue); }
small, .optional { color: var(--muted); font-weight: 500; }
.button { border: 0; border-radius: 11px; padding: 12px 18px; font-weight: 800; }
.button.primary { background: var(--navy); color: white; }
.button.secondary { color: var(--navy); background: var(--blue-soft); }
.button.danger { color: var(--danger); background: var(--danger-bg); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-weight: 550; }
.checkbox-row input { width: 19px; min-height: 19px; margin: 2px 0 0; flex: 0 0 auto; }
.privacy-note { color: var(--muted); font-size: 13px; }
.status-message { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 650; }
.status-message.visible { display: block; }
.status-message.success { background: var(--success-bg); color: var(--success); }
.status-message.error { background: var(--danger-bg); color: var(--danger); }
.status-message.info { background: var(--blue-soft); color: var(--navy); }
.success-dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 0; color: var(--ink); box-shadow: 0 24px 70px rgba(15, 35, 75, .28); }
.success-dialog::backdrop { background: rgba(15, 31, 58, .62); }
.success-dialog-content { padding: 30px; text-align: center; }
.success-dialog-icon { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 30px; font-weight: 900; }
.success-dialog h2 { margin: 0 0 10px; color: var(--navy); font-size: 28px; }
.success-dialog p { margin: 9px 0; line-height: 1.5; color: #475569; }
.success-dialog-reference { padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--navy) !important; }
.success-dialog .button { width: 100%; margin-top: 14px; }
.hidden, .honeypot { display: none !important; }

@media (max-width: 760px) {
  .public-shell { width: min(100% - 20px, 680px); margin-top: 18px; }
  .hero, .panel-heading { align-items: stretch; flex-direction: column; }
  .property-picker { min-width: 0; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .calendar { min-height: 350px; }
  .calendar-day { min-height: 56px; padding: 6px; }
  .day-state { display: none; }
  .calendar-nav { align-self: stretch; }
}
