:root { --brand: #1f4e79; --on-brand: #ffffff; --ink: #1f2933; --muted: #6b7280; --line: #d9dee5; --bg: #ffffff; --soft: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ap { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }
.ap-head h1 { font-size: 1.5rem; margin: 0 0 4px; }
.ap-sub, .ap-muted { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.ap a { color: var(--brand); }
.ap-step { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.ap-step legend { font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
.ap-num { display: inline-flex; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--brand); color: var(--on-brand); align-items: center; justify-content: center; font-size: .85rem; margin-right: 6px; }
.ap-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.ap-card small { display: block; color: var(--muted); }
.ap-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--soft); }
.ap-days, .ap-times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ap-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.ap-chip:hover { border-color: var(--brand); }
.ap-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ap-chosen { font-weight: 600; margin: 8px 0 0; }
.ap-field { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.ap-field input, .ap-field textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; }
.ap-field input:focus, .ap-field textarea:focus, .ap-chip:focus-visible, .ap-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ap-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 8px 0 16px; }
.ap-check input { margin-top: 4px; }
.ap-btn { background: var(--brand); color: var(--on-brand); border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; }
.ap-btn[disabled] { opacity: .6; cursor: wait; }
.ap-link { background: none; border: 0; color: var(--brand); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.ap-error, .ap-notice { background: #fdecea; color: #8a1c13; border-radius: 8px; padding: 10px 12px; margin-top: 16px; }
.ap-notice { background: var(--soft); color: var(--ink); }
.ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.ap-thanks { text-align: center; padding-top: 60px; }
.ap-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 2rem; line-height: 64px; margin: 0 auto 16px; }

.ap-month { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.ap-month-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; text-transform: capitalize; }
.ap-nav { background: none; border: 0; font-size: 1.6rem; line-height: 1; padding: 2px 10px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.ap-nav[disabled] { color: var(--line); cursor: default; }
.ap-nav:focus-visible, .ap-day:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ap-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; justify-items: center; }
.ap-dow { color: var(--muted); font-size: .8rem; padding: 4px 0; }
.ap-day { width: 2.4em; height: 2.4em; max-width: 100%; border-radius: 50%; border: 1px solid transparent; background: none; font: inherit; font-weight: 600; color: #c4cad3; cursor: default; padding: 0; }
.ap-day:not([disabled]) { color: var(--ink); border-color: var(--brand); cursor: pointer; }
.ap-day:not([disabled]):hover { background: var(--soft); }
.ap-day[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.ap-day.is-today:not([aria-pressed="true"]) { text-decoration: underline; }
