:root {
  --brand: #2e6b4f; --brand-d: #22523c; --brand-l: #e6f0ea; --accent: #8cbf3f;
  --bg: #f4f6f3; --card: #fff; --text: #1f2a24; --muted: #66756c; --line: #dde4df;
  --err: #b3261e; --err-bg: #fdecea; --ok-bg: #e6f4ea; --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--brand); color: #fff; }
.top-in { display: flex; align-items: center; gap: 16px; padding-block: 16px; }
.brand { display: block; line-height: 0; }
.brand img { height: 26px; width: auto; display: block; }
@media (max-width: 500px) { .brand img { height: 20px; } .top-sub { font-size: 12px; } }
.top-sub { opacity: .85; font-size: 14px; }
.page-title { font-size: 28px; margin: 28px 0 4px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.foot { padding: 28px 16px; font-size: 13px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.card.narrow { max-width: 620px; margin: 32px auto; }
.card h2 { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.col > .card:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .page-title { font-size: 23px; } }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #3a4a41; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9d3cc; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
select:disabled { background: #f1f3f1; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.invalid input, .invalid textarea { border-color: var(--err); }
.ferr { color: var(--err); font-size: 13px; display: block; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.point-info { background: var(--brand-l); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.muted { color: var(--muted); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wrap-choices { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid #c9d3cc; border-radius: 8px; padding: 10px 12px; font-weight: 600; transition: .15s; }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-l); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { outline: 2px solid var(--brand); }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 16px; }
.cal-nav { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; color: var(--brand); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; position: relative; min-height: 250px; align-content: start; }
.cal { position: relative; }
.cal-overlay { position: absolute; inset: -6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(226, 231, 228, .88); border-radius: 10px; color: #2b3a31; font-weight: 700; font-size: 15px;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 2; backdrop-filter: blur(1px); }
.cal.is-loading .cal-overlay { opacity: 1; visibility: visible; }
.cal-overlay > span:last-child { background: #fff; padding: 8px 16px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #c9d3cc; border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { aspect-ratio: 1 / .85; display: grid; place-items: center; border-radius: 8px; font-size: 14px; color: #a5b0a9; border: 0; background: none; font-family: inherit; }
.cal-day.has { background: var(--brand-l); color: var(--brand-d); font-weight: 700; cursor: pointer; }
.cal-day.has:hover { background: #d3e6da; }
.cal-day.sel { background: var(--brand) !important; color: #fff !important; }
.cal-day.today { box-shadow: inset 0 0 0 1px #9fb3a6; }
.cal-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.cal-legend { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-l); border: 1px solid #b9d3c3; vertical-align: -1px; }
#times-wrap h3 { font-size: 15px; margin: 18px 0 10px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.time { padding: 9px 0; border: 1px solid #c9d3cc; background: #fff; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.time:hover { border-color: var(--brand); }
.time.sel { background: var(--brand); border-color: var(--brand); color: #fff; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.check.invalid span { color: var(--err); }
.check .ferr { margin-left: 8px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.picked { font-size: 15px; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-d); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 13px 26px; font-size: 17px; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-l); }
.btn-ghost-danger { background: #fff; color: var(--err); border: 1px solid var(--err); }
.btn-ghost-danger:hover { background: var(--err-bg); }
@media (max-width: 600px) { .submit-row .btn { width: 100%; } }

.alert { border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: #1e5e36; }

.summary { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 16px 0; }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; font-weight: 600; }
@media (max-width: 500px) { .summary { grid-template-columns: 1fr; } .summary dd { margin-bottom: 6px; } }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 30px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.st-confirmed { background: var(--ok-bg); color: #1e5e36; }
.st-cancelled { background: var(--err-bg); color: var(--err); }
.st-completed { background: #e8eef9; color: #274b8a; }
.st-no_show { background: #fff3dc; color: #8a5a00; }
