:root {
  --forest: #173f32;
  --forest-deep: #0e2f26;
  --sage: #e8eee9;
  --cream: #f8f7f1;
  --paper: #fffefa;
  --gold: #d4b067;
  --gold-dark: #8b6b2c;
  --ink: #17332a;
  --muted: #65746d;
  --line: #dce4de;
  --error: #9b2f2f;
  --shadow: 0 24px 70px rgba(23, 63, 50, .13);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 2%, rgba(212, 176, 103, .15), transparent 30rem),
    linear-gradient(135deg, #f7f7f1 0%, #eef3ee 100%);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

button, input { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: .75rem 1rem;
  border-radius: .6rem;
  background: var(--forest);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 82px; height: 82px; object-fit: contain; }

.header-right { display: flex; align-items: center; gap: 1rem; }

.back-link {
  color: var(--forest);
  font-size: .92rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .25rem;
}

.language-switch {
  display: inline-flex;
  padding: .22rem;
  border: 1px solid rgba(23, 63, 50, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.language-switch a {
  min-width: 2.5rem;
  padding: .5rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="page"] { background: var(--forest); color: #fff; }

.booking-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto 4rem;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  min-height: 700px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 50, .1);
  border-radius: 1.6rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.booking-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}

.booking-intro::after {
  content: "";
  position: absolute;
  right: -11rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(212, 176, 103, .4);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(212, 176, 103, .06), 0 0 0 10rem rgba(255, 255, 255, .025);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem;
  color: #ecd496;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin: 1.4rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.65;
}

.appointment-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.appointment-facts li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
}

.appointment-facts li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  border: 1px solid rgba(236,212,150,.6);
  border-radius: 50%;
  color: #ecd496;
  font-weight: 800;
}

.scope-note {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 2rem;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  line-height: 1.55;
}

.booking-panel { padding: clamp(1.5rem, 4vw, 3.6rem); }

.step-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.8rem;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.step-line { width: 2.4rem; height: 1px; background: var(--line); }
.step-dot.is-active, .step-dot.is-done { border-color: var(--forest); background: var(--forest); color: #fff; }

.panel-heading { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.panel-lead { margin: .55rem 0 1.4rem; color: var(--muted); line-height: 1.55; }

.timezone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: var(--sage);
  color: #3b5149;
  font-size: .86rem;
}

.timezone-row strong { color: var(--ink); font-size: .82rem; }

.status {
  min-height: 2.8rem;
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border-radius: .75rem;
  background: #f1f4f1;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.status[hidden] { display: none; }
.status.is-error { background: #fbefef; color: var(--error); }
.status.is-success { background: #e8f4ec; color: #245c38; }

.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.skeleton { height: 4.5rem; border-radius: .8rem; background: linear-gradient(90deg,#edf1ee 25%,#f8faf8 42%,#edf1ee 62%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.date-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.6rem;
}

.date-button, .time-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.date-button { padding: .85rem .55rem; border-radius: .9rem; text-align: center; }
.date-button span { display: block; }
.date-button .weekday { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.date-button .day { margin-top: .2rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; }
.date-button .month { color: var(--muted); font-size: .78rem; }
.date-button:hover, .time-button:hover { border-color: var(--forest); transform: translateY(-1px); }
.date-button.is-selected, .time-button.is-selected { border-color: var(--forest); background: var(--forest); color: #fff; }
.date-button.is-selected .weekday, .date-button.is-selected .month { color: rgba(255,255,255,.75); }

.time-heading { margin: 0 0 .8rem; font-size: .9rem; }
.time-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.time-button { padding: .8rem .55rem; border-radius: .75rem; font-weight: 700; }

.selection-summary {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(212,176,103,.55);
  border-radius: .85rem;
  background: #fdf9ef;
  color: #4d4129;
  line-height: 1.5;
}

.selection-summary strong { display: block; margin-bottom: .2rem; color: var(--gold-dark); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.field-grid { display: grid; gap: 1rem; }
.field label, .consent-label { font-size: .86rem; font-weight: 700; }
.field input {
  width: 100%;
  margin-top: .4rem;
  padding: .9rem 1rem;
  border: 1px solid #cfd9d2;
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
}

.field input:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(212,176,103,.55); outline-offset: 2px; }
.honeypot { position: absolute !important; left: -9999px !important; }

.consent-label { display: grid; grid-template-columns: 1.2rem 1fr; gap: .65rem; align-items: start; margin: 1.15rem 0; font-weight: 500; line-height: 1.5; }
.consent-label input { width: 1.1rem; height: 1.1rem; margin-top: .16rem; accent-color: var(--forest); }
.consent-label a { color: var(--forest); font-weight: 700; }

.actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.button {
  min-height: 3rem;
  padding: .8rem 1.15rem;
  border: 1px solid var(--forest);
  border-radius: .75rem;
  cursor: pointer;
  font-weight: 800;
}
.button-primary { background: var(--forest); color: #fff; }
.button-secondary { background: #fff; color: var(--forest); }
.button[disabled] { cursor: wait; opacity: .65; }

.success-card { text-align: center; padding: 2rem 0; }
.success-icon { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--forest); color: #fff; font-size: 2rem; }
.success-card h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 2.4rem; }
.success-card p { max-width: 32rem; margin: .8rem auto; color: var(--muted); line-height: 1.6; }
.success-card .selection-summary { max-width: 30rem; margin: 1.5rem auto; text-align: left; }

.booking-footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 2rem; color: var(--muted); font-size: .78rem; text-align: center; }
.booking-footer a { color: var(--forest); font-weight: 700; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .booking-shell { grid-template-columns: 1fr; }
  .booking-intro { min-height: auto; }
  .scope-note { margin-top: 2rem; }
  h1 { max-width: 12ch; }
}

@media (max-width: 560px) {
  .booking-header { align-items: flex-start; }
  .brand img { width: 66px; height: 66px; }
  .header-right { align-items: flex-end; flex-direction: column-reverse; gap: .55rem; }
  .back-link { font-size: .78rem; }
  .booking-main { width: min(100% - 1rem, 1180px); margin-top: .3rem; }
  .booking-shell { border-radius: 1.1rem; }
  .booking-intro, .booking-panel { padding: 1.45rem; }
  .booking-intro::after { opacity: .55; }
  .appointment-facts { grid-template-columns: 1fr; }
  .date-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { flex-direction: column-reverse; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
