@font-face {
  font-family: "nhg";
  src: url("/assets/fonts/nhg.woff2") format("woff2"), url("/assets/fonts/nhg.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@view-transition { navigation: auto; }

:root {
  --ink: #000;
  --ink-2: #555;
  --ink-3: #8a8a8a;
  --line: #e4e4e4;
  --soft: #f5f5f5;
  --bg: #fff;
  --error: #c4122f;
  --radius: 7.33px; /* same rounding as the homepage buttons */
  --font: "nhg", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.35 var(--font); /* same as the homepage */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }

.top { display: flex; justify-content: center; padding: 2.5rem 1rem 0.5rem; }
.brand img { display: block; width: 108px; height: auto; } /* same size as the homepage logo */

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1rem 4rem; }

.intro { text-align: center; padding: 2rem 0 1rem; }
h1 { font-size: clamp(2.2rem, 7vw, 2.875rem); line-height: 1.09; letter-spacing: -0.032em; font-weight: 400; margin: 0 0 0.9rem; }
h2 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
h3 { font-size: 1em; font-weight: 400; margin: 2rem 0 0.75rem; }
.lede { font-size: 1em; line-height: 1.35; color: var(--ink-2); margin: 0 auto; max-width: 30rem; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.num {
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 0.85rem;
}

.step { border-top: 1px solid var(--line); padding: 2rem 0; }

/* Choice cards */
.cards { display: grid; gap: 0.75rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 30rem) { .cards.two { grid-template-columns: 1fr; } }
.card { position: relative; cursor: pointer; }
.card input { position: absolute; opacity: 0; pointer-events: none; }
.card-body {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.card-body strong { font-weight: 400; }
.card-body .muted { font-size: 0.9rem; }
.card-body .price { color: var(--ink-2); }
.card:hover .card-body { border-color: var(--ink-3); }
.card input:checked + .card-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card input:focus-visible + .card-body { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Calendar */
.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-title { font-weight: 400; }
.cal-nav {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
@media (max-width: 30rem) { .calendar { padding: 0.75rem 0.5rem; } }
.cal-dow span { text-align: center; font-size: 0.75rem; color: var(--ink-3); padding-bottom: 0.25rem; }
.day {
  position: relative; height: 3.1rem; width: 100%; max-width: 3rem; justify-self: center; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0.6rem; background: transparent; color: var(--ink);
  font: inherit; font-size: 0.95rem; line-height: 1.1; cursor: pointer;
  transition: background-color .15s, color .15s;
}
/* Label sits under the number without moving it, so every date lines up */
.day .tag { position: absolute; left: 0; right: 0; bottom: 0.2rem; text-align: center;
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.01em; white-space: nowrap; color: var(--ink-3); }
.day.open { font-weight: 400; }
.day.open:hover, .day.limited:hover { background: var(--soft); }
.day.limited { font-weight: 400; }
.day.full { color: var(--ink-3); cursor: not-allowed; }
.day.full .dn { text-decoration: line-through; }
.day.unavailable, .day.closed { color: #c8c8c8; cursor: not-allowed; }
.day.selected { background: var(--ink); color: #fff; }
.day.selected .tag { color: rgba(255,255,255,.75); }
.day:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.day.blank { visibility: hidden; }
.cal-loading .day { opacity: 0.35; }
.chosen { margin: 1rem 0 0; font-weight: 400; }
#address-field { margin-top: 1rem; }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 30rem) { .grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field.full, .grid .full { grid-column: 1 / -1; }
.field > span { font-size: 0.9rem; }
.field b { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=tel], input[type=email], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 3rem;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.invalid input, .invalid select, .invalid textarea, input.invalid, textarea.invalid { border-color: var(--error); }
::placeholder { color: #aaa; }

.upload {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--ink-3); border-radius: var(--radius);
  padding: 1.5rem 1rem; cursor: pointer; color: var(--ink-2);
  transition: border-color .2s, background-color .2s;
}
.upload:hover, .upload.drag { border-color: var(--ink); background: var(--soft); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: 0.5rem; }
.files li { position: relative; font-size: 0.75rem; color: var(--ink-2); }
.files img, .files .pdf {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.4rem; display: grid; place-items: center;
  background: var(--soft);
}
.files button {
  position: absolute; top: 0.2rem; right: 0.2rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; line-height: 1;
}

.next { background: var(--soft); border-radius: var(--radius); padding: 0.25rem 1.25rem 0.75rem; margin: 2rem 0 1.25rem; }
.next h3 { margin-top: 1rem; }
.next ol { padding-left: 1.2rem; margin: 0; color: var(--ink-2); }
.next li { margin-bottom: 0.4rem; }
.next strong { color: var(--ink); font-weight: 400; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--ink); flex: none; }

.error { color: var(--error); font-size: 0.85rem; font-style: normal; margin: 0.35rem 0 0; min-height: 0; }
.error:empty { display: none; }
.form-error { margin: 1rem 0 0; font-size: 0.95rem; }

/* Buttons: same as the homepage (46px tall, 7px corners, light grey on hover) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1.25rem; height: 46px; padding: 0 23px; width: auto; max-width: 100%;
  background: #000; color: #fff; border: 0; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 400; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover { background-color: #ccc; }
.btn:disabled { opacity: 0.5; cursor: progress; }
@media (max-width: 30rem) { form .btn, .receipt .btn { width: 100%; } } /* easier to tap on phones */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 3rem 0; }
.done img { margin-bottom: 1rem; }


/* Footer: same as the homepage (heart, icons, copyright) */
.foot { text-align: center; padding: 3.5rem 1rem 3rem; }
.foot-heart { display: block; width: 39px; height: 39px; margin: 0 auto 50px; }
.foot-icons { list-style: none; padding: 0; margin: 0 0 39px; display: flex; justify-content: center; gap: 18px; }
.foot-icons a { display: block; width: 23px; height: 23px; transition: opacity .2s; }
.foot-icons a:hover { opacity: 0.55; }
.foot-icons svg { display: block; width: 23px; height: 23px; fill: var(--ink); }
.foot-copy { margin: 0; font-size: 15px; color: var(--ink); }

/* Gentle entrance */
.fade { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } .btn, .card-body { transition: none; } }

/* ---------- Payment page ---------- */
.center { text-align: center; }
.empty-state { text-align: center; color: var(--ink-2); padding: 4rem 0; }
.pay-head { text-align: center; padding: 1.5rem 0 1.5rem; }
.pay-head img { margin-bottom: 0.75rem; }
.booking-ref { margin: 1rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
.booking-ref span:first-child { color: var(--ink); font-weight: 400; }
.pay h2 { display: block; font-size: 1.15rem; margin: 0 0 0.5rem; }
.paybox, .receipt, .notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.paybox { border-color: var(--ink); }
.bank { margin: 1.25rem 0 0; display: grid; gap: 0; }
.bank > div { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: 0.5rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.bank dt { color: var(--ink-2); font-size: 0.9rem; }
.bank dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.bank strong { font-weight: 400; font-size: 1.05rem; letter-spacing: 0.01em; }
@media (max-width: 30rem) { .bank > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.copy {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px;
  padding: 0.25rem 0.75rem; font: inherit; font-size: 0.8rem; cursor: pointer;
}
.copy:hover { border-color: var(--ink); }
.receipt .btn { margin-top: 1rem; }
.upload.chosen-file { border-style: solid; border-color: var(--ink); color: var(--ink); }
.later { padding: 0.5rem 0 1.5rem; }
.later h3 { margin-top: 1rem; }
.later .act { margin: 0.25rem 0.25rem 0 0; }
.notice p { color: var(--ink-2); margin: 0 0 0.5rem; }
.notice strong { color: var(--ink); font-weight: 400; }
.notice.ok { background: #f2faf4; border-color: #9fd6b0; }
.notice .btn, .notice .act { margin-top: 0.75rem; }

#error { text-align: center; padding: 2rem 0; }

/* Shared small button + toast (also used by admin) */
.act { display: inline-flex; align-items: center; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: var(--radius);
  padding: 0.5rem 0.85rem; font: inherit; font-size: 0.875rem; cursor: pointer; text-decoration: none; }
.act.primary { background: var(--ink); color: #fff; }
.act:disabled { opacity: 0.4; cursor: default; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem; z-index: 10; max-width: calc(100% - 2rem); }

/* Slots-left tag next to the selected date */
.slots-tag { display: inline-block; margin-left: 0.25rem; font-size: 0.8rem; font-weight: 400; padding: 0.15rem 0.6rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.slots-tag.hot { border-color: var(--ink); color: var(--ink); }

/* Time list: custom arrow so it matches the other boxes */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; cursor: pointer;
}
select:invalid { color: #aaa; }
select option { color: var(--ink); }

/* Keep typing boxes at 16px: smaller makes iPhones zoom in when tapped */
input[type=text], input[type=tel], input[type=email], select, textarea { font-size: 16px; }
