/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Tokens */
:root {
  --bg: #00585A;
  --surface: #ffffff;
  --ink: #1f1e1c;
  --ink-muted: #5a6663;
  --border: #e2e8e6;
  --accent: #39b6b8;
  --accent-hover: #2e9395;
  --accent-ring: rgba(57, 182, 184, 0.22);
  --success: #81c28f;
  --on-bg-muted: rgba(255, 255, 255, 0.65);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino", Georgia, serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 20px 48px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.intro {
  margin-bottom: 32px;
}

.intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.intro p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* Form controls */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.optional {
  color: var(--ink-muted);
  font-weight: 400;
  opacity: 0.7;
}

input,
textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Button */
.submit {
  margin-top: 8px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}

.submit:hover {
  background: var(--accent-hover);
}

.submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.submit:active {
  transform: translateY(1px);
}

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 24px 8px 8px;
}

.confirmation .check {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  font-size: 24px;
  line-height: 48px;
  font-weight: 600;
}

.confirmation h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.confirmation p {
  margin: 0;
  color: var(--ink-muted);
}

/* Footnote */
.footnote {
  margin-top: 32px;
  font-size: 12px;
  color: var(--on-bg-muted);
  letter-spacing: 0.02em;
}

/* Eyebrow + lede */
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.lede {
  margin: 12px 0 0;
  color: var(--ink-muted);
}

/* Meeting-point callout */
.callout {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f1f8f7;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
}

.callout-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

/* Two-column rows */
.row {
  display: flex;
  gap: 16px;
}
.row .field {
  flex: 1;
}

/* Slot picker */
.slots {
  border: none;
  margin: 0;
  padding: 0;
}
.slots legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
  padding: 0;
}
.slots-status {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}
.slot-filter {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.slot-filter label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.slot-filter select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.slot-filter select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.slot:hover {
  border-color: var(--accent);
}
.slot:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: #f1f8f7;
}
.slot input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
.slot-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.slot-time {
  font-weight: 500;
  color: var(--ink);
}
.slot-label {
  font-size: 13px;
  color: var(--ink-muted);
}
.slot-remaining {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-hover);
  white-space: nowrap;
}
.slot-full {
  opacity: 0.55;
  cursor: not-allowed;
}
.slot-full:hover {
  border-color: var(--border);
}
.slot-full .slot-remaining {
  color: var(--ink-muted);
}

/* Honeypot — visually removed, still in the DOM for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.consent input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

/* Inline form error */
.form-error {
  margin: 0;
  padding: 10px 12px;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  color: #9b2c22;
  font-size: 14px;
}

.muted {
  color: var(--ink-muted);
  font-size: 13px;
}

.privacy {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.submit.danger {
  background: #c0392b;
}
.submit.danger:hover {
  background: #a93226;
}

/* Star rating */
.stars {
  display: flex;
  gap: 4px;
}
.star {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #d7dddb;
  transition: color 80ms ease, transform 80ms ease;
}
.star:hover {
  transform: scale(1.1);
}
.star.on {
  color: #f4b740;
}
.star:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ---- Admin ---- */
.admin-body {
  background: #f4f6f5;
}
.admin {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.admin-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 4px;
}
.admin-head .muted {
  margin: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.panel-head h2 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink);
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}
.btn:hover {
  border-color: var(--accent);
}
.table-wrap {
  overflow-x: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-weight: 600;
}
.row-cancelled td {
  opacity: 0.5;
  text-decoration: line-through;
}
.row-inactive td {
  opacity: 0.55;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6d3b;
  background: #fcf3d9;
  border: 1px solid #f0e0b0;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}
.row-actions {
  white-space: nowrap;
}
.link-btn {
  background: none;
  border: none;
  color: var(--accent-hover);
  font-size: 14px;
  cursor: pointer;
  padding: 0 8px 0 0;
}
.link-btn:hover {
  text-decoration: underline;
}
.danger-text {
  color: #c0392b;
}
.slot-form {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.slot-form h3 {
  font-size: 1rem;
  margin: 0 0 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.share {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.qr-holder {
  width: 180px;
  height: 180px;
  flex: 0 0 auto;
}
.qr-holder svg {
  width: 100%;
  height: 100%;
}
.share-info {
  flex: 1;
  min-width: 220px;
}
.share-info a {
  color: var(--accent-hover);
  word-break: break-all;
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Logo "polka dot" backdrop for the booking page.
   logo_tile.png is a seamless tile holding a uniform, evenly-spaced staggered
   lattice of small (34px) logos at ~30% opacity, baked at 2x from the 480px
   source so it stays crisp. The opaque card sits on top, so the dots only show
   in the surrounding background. */
.booking-page {
  background-image: url("/branding/logo_tile.png");
  background-repeat: repeat;
  background-size: 150px;
}

/* Small screens */
@media (max-width: 480px) {
  .page {
    padding: 48px 16px 32px;
  }
  .card {
    padding: 28px 22px;
  }
  .intro h1 {
    font-size: 1.625rem;
  }
  .row {
    flex-direction: column;
    gap: 20px;
  }
}
