:root {
  --green: #1F4D3A;
  --green-dark: #143528;
  --cream: #F6F3EC;
  --brass: #C8A15A;
  --ink: #1B1B1B;
  --error: #B3261E;
  --white: #FFFFFF;
  --shadow: rgba(27, 27, 27, 0.08);
  --radius: 12px;
  --container: 1120px;
  --gutter: 16px;
  --touch: 48px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p { margin: 0 0 0.6em; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--green-dark); }

a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brass); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(31, 77, 58, 0.12);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
  text-decoration: none;
}

.wordmark:hover { color: var(--green); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

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

button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }

.btn-secondary { background: var(--cream); color: var(--green); border: 1px solid rgba(31, 77, 58, 0.25); }
.btn-secondary:hover { background: var(--white); }

.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #8e1a13; }

.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: rgba(31, 77, 58, 0.08); }

.btn-block { width: 100%; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 12px var(--shadow);
}

.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="date"], .form-field select, .form-field textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 14px;
  border: 1px solid rgba(27, 27, 27, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field small { display: block; margin-top: 4px; color: rgba(27, 27, 27, 0.65); font-size: 13px; }
.form-field .error-text { color: var(--error); font-weight: 500; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--touch);
  cursor: pointer;
}
.checkbox input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--green); margin-top: 3px; }
.checkbox span { font-size: 15px; line-height: 1.45; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  padding: 10px 14px;
  border: 1px solid rgba(27, 27, 27, 0.15);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.radio input { width: 20px; height: 20px; accent-color: var(--green); }
.radio.is-selected { border-color: var(--green); background: rgba(31, 77, 58, 0.05); }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.stepper::-webkit-scrollbar { display: none; }
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: rgba(27, 27, 27, 0.55);
}
.step .dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 27, 27, 0.12);
  font-size: 13px;
  color: var(--ink);
}
.step.is-active { color: var(--green); }
.step.is-active .dot { background: var(--green); color: var(--white); }
.step.is-done { color: var(--green-dark); }
.step.is-done .dot { background: var(--brass); color: var(--white); }
.stepper .line { flex: 1 1 auto; height: 1px; background: rgba(27, 27, 27, 0.12); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-booked { background: rgba(31, 77, 58, 0.12); color: var(--green-dark); }
.badge-accepted { background: rgba(200, 161, 90, 0.18); color: #5c481f; }
.badge-checked_in { background: #e6f3ed; color: var(--green); }
.badge-submitted { background: #dbeafe; color: #1e3a8a; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-disputed { background: #fee2e2; color: var(--error); }
.badge-paid { background: #f3e8ff; color: #6b21a8; }
.badge-cancelled { background: #f3f4f6; color: #4b5563; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 2px 12px var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(27, 27, 27, 0.08); }
th { font-weight: 600; background: var(--cream); color: var(--green-dark); }
tr:last-child td { border-bottom: 0; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(27, 27, 27, 0.25);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-error { background: var(--error); }

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(31, 77, 58, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.leaf {
  width: 48px;
  height: 48px;
  color: var(--brass);
}

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-md { gap: 16px; }
.stack-lg { gap: 24px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .card { padding: 28px; }
  .stepper { gap: 12px; }
}
