[hidden] { display: none !important; }
:root {
  --navy: #14213d;
  --slate: #4a5b7a;
  --muted: #6b7890;
  --line: #e3e7ee;
  --accent: #c8372d;
  --accent-dark: #a92c23;
  --cream: #f7f3ec;
  --avail: #f2ebdf;
  --avail-hover: #e9dfcd;
  --white: #fff;
  --radius: 10px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--navy); background: var(--cream); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body.embed { background: var(--white); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.card { position: relative; max-width: 1000px; margin: 32px auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(20, 33, 61, .08); overflow: hidden; }
body.embed .card { margin: 0; border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; max-width: none; }
.close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--slate); border-radius: 50%; z-index: 2; }
.close:hover { background: var(--cream); }

.head { text-align: center; padding: 28px 24px 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; background: var(--cream); }
.host { margin: 0; color: var(--slate); font-weight: 600; font-size: 18px; }
.title { margin: 4px 0 10px; font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; color: var(--slate); font-weight: 600; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.durations { display: inline-flex; gap: 6px; margin-top: 16px; padding: 4px; background: var(--cream); border-radius: 999px; }
.durations button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--slate); }
.durations button[aria-checked="true"] { background: var(--navy); color: var(--white); }
.durations button:not([aria-checked="true"]):hover { color: var(--navy); background: var(--avail-hover); }
.summary { margin: 14px auto 0; max-width: 560px; color: var(--slate); line-height: 1.55; font-size: 15px; }
.summary strong { color: var(--navy); }

.body { padding: 28px 32px 34px; }
.step-title { font-size: 24px; font-weight: 700; margin: 0 0 22px; }
.layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.layout.with-slots { grid-template-columns: minmax(0, 1fr) 260px; }
@media (max-width: 760px) { .layout.with-slots { grid-template-columns: 1fr; } .body { padding: 22px 16px 28px; } .title { font-size: 28px; } }

.cal { max-width: 560px; margin: 0 auto; width: 100%; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 48px; margin-bottom: 18px; }
.cal-nav h3 { margin: 0; font-size: 17px; font-weight: 600; min-width: 150px; text-align: center; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--navy); }
.cal-nav button:hover:not(:disabled) { background: var(--cream); }
.cal-nav button:disabled { color: #b8c0cc; cursor: default; }
.cal-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 8px; text-align: center; }
.dow { font-size: 13px; font-weight: 600; color: var(--slate); padding-bottom: 10px; }
.day { position: relative; justify-self: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: transparent; font-size: 17px; color: var(--navy); cursor: default; }
.day.avail { background: var(--avail); font-weight: 700; cursor: pointer; }
.day.avail:hover { background: var(--avail-hover); }
.day.sel { background: var(--accent); color: var(--white); }
.day.sel:hover { background: var(--accent-dark); }
.day.today::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
@media (max-width: 420px) { .day { width: 42px; height: 42px; font-size: 15px; } }

.tz { display: flex; align-items: center; gap: 8px; margin: 22px auto 0; max-width: 560px; font-size: 14px; color: var(--slate); }
.tz svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.tz select { border: 0; background: transparent; font-weight: 600; color: var(--navy); max-width: 100%; padding: 4px 0; }

.slots h4 { margin: 4px 0 14px; font-size: 16px; font-weight: 600; }
.slot-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.slot-row { display: flex; gap: 8px; }
.slot { flex: 1; border: 1.5px solid rgba(20, 33, 61, .28); background: var(--white); border-radius: var(--radius); height: 50px; font-weight: 700; font-size: 16px; color: var(--navy); transition: border-color .12s; }
.slot:hover { border-color: var(--navy); }
.slot.sel { background: var(--slate); border-color: var(--slate); color: var(--white); }
.next { flex: 1; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--white); font-weight: 700; font-size: 16px; }
.next:hover { background: var(--accent-dark); }
.empty { color: var(--muted); font-size: 15px; }

.back { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px 6px 10px; color: var(--navy); font-weight: 600; margin-bottom: 18px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

form { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.req { color: var(--accent); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; border: 1.5px solid #cdd3dc; border-radius: 8px; padding: 11px 12px; font-size: 16px; background: var(--white); }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 33, 61, .12); }
textarea { min-height: 96px; resize: vertical; }
.counter { float: right; font-weight: 400; color: var(--muted); font-size: 13px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }
.type { border: 1.5px solid #cdd3dc; border-radius: var(--radius); padding: 14px 12px; background: var(--white); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; text-align: center; }
.type svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.type[aria-checked="true"] { border-color: var(--navy); background: var(--cream); box-shadow: inset 0 0 0 1px var(--navy); }
.type:hover { border-color: var(--navy); }
.guest-row { display: flex; gap: 8px; margin-bottom: 8px; }
.guest-row button { flex: none; width: 44px; border: 1.5px solid #cdd3dc; background: var(--white); border-radius: 8px; font-size: 20px; color: var(--slate); }
.link-btn { border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }
.primary { width: 100%; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; font-size: 16px; padding: 14px 20px; margin-top: 6px; }
.primary:hover:not(:disabled) { background: #0c1528; }
.primary:disabled { opacity: .6; cursor: progress; }
.danger { background: var(--accent); }
.danger:hover:not(:disabled) { background: var(--accent-dark) !important; }
.secondary { width: 100%; border: 1.5px solid var(--navy); background: var(--white); border-radius: 999px; color: var(--navy); font-weight: 700; font-size: 16px; padding: 13px 20px; margin-top: 10px; }
.error { background: #fdecea; color: #8c1d16; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.notice { background: var(--cream); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--slate); margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; }

.done { text-align: center; max-width: 520px; margin: 0 auto; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin: 0 auto 14px; }
.done .check svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done .check.x { background: var(--accent); }
.done h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.done p { color: var(--slate); line-height: 1.6; }
.recap { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.recap div { display: flex; gap: 12px; padding: 6px 0; font-size: 15px; line-height: 1.5; }
.recap dt, .recap .k { flex: 0 0 82px; color: var(--muted); }
.recap a { color: var(--accent); font-weight: 600; word-break: break-all; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mock-banner { background: #fff6d6; color: #6b5300; text-align: center; font-size: 13px; padding: 6px; }
