/* Kinpany Design Tokens (Product Experience v1) - the same palette used
   across every Kinpany app, sourced from the existing brand mark
   (kinpany-visit-pwa/public/favicon.svg): --accent is that mark's own
   primary purple. Copied verbatim from the sibling PWAs (e.g.
   kinpany-back-office-pwa/style.css) rather than reinvented, per the
   brief's own "reuse existing components" instruction - this is the
   one visual system, not a new one for Booking. */
:root {
  color-scheme: light dark;
  --border: #ddd6ec;
  --muted: #6b6478;
  --accent: #7e14ff;
  --accent-contrast: #fff;
  --danger: #b3261e;
  --success: #1e7b34;
  --bg-subtle: #f6f4fb;
  --bg: #fff;
  --text: #1a1625;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(30, 10, 60, 0.06), 0 4px 10px rgba(30, 10, 60, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --border: #362f47;
    --muted: #a79fc0;
    --accent: #b98bff;
    --accent-contrast: #1a0f2e;
    --bg-subtle: #211c2e;
    --bg: #16121f;
    --text: #eee6fb;
  }
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

header h1 { font-size: 1.1rem; margin: 0; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand__mark { display: block; flex: none; }
.brand__product { font-weight: 400; color: var(--muted); }

main { padding: 1.25rem; max-width: 960px; margin: 0 auto; }

.booking-card {
  max-width: 480px;
  margin: 6vh auto 0;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
  box-shadow: var(--shadow);
}

.booking-card__mark { display: block; margin: 0 auto 0.75rem; }
.booking-card h2 { margin: 0 0 0.35rem; text-align: center; }
.booking-card > p.muted { text-align: center; margin: 0 0 1.5rem; }

form.stack { display: flex; flex-direction: column; gap: 1rem; }

label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
label .hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

textarea { resize: vertical; min-height: 4.5rem; }

/* Honeypot — visually hidden, but not display:none/visibility:hidden
   (some bots skip fields a screen reader would also skip, so those two
   properties alone are a weaker signal); off-screen positioning plus
   tabindex="-1"/aria-hidden keeps it invisible and unreachable for a
   real person using a mouse, keyboard, or screen reader, while a naive
   form-filling script that finds every <input> by tag still fills it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  min-height: 44px;
}

button:disabled { opacity: 0.5; cursor: default; }

.muted { color: var(--muted); font-size: 0.9rem; }

.error-banner {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6c2;
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.confirmation {
  text-align: center;
}
.confirmation__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.confirmation h2 { margin: 0 0 0.5rem; }
