:root {
  --yellow: #ffd600;
  --yellow-deep: #f5c400;
  --charcoal: #1d232b;
  --muted: #5c6570;
  --line: #e6e8ee;
  --bg: #f5f6fa;
  --white: #ffffff;
  --danger: #b42318;
  --success: #1f7a4d;
  --shadow: 0 10px 30px rgba(29, 35, 43, 0.08);
  --radius: 18px;
  --nav: 72px;
  --page-max: 1200px;
  --page-gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--charcoal);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.app-shell {
  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

.topbar,
.content,
.bottom-bar,
.tabbar {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 8px;
}

.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; flex-shrink: 0; }
.mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--yellow); display: grid; place-items: center;
  font-weight: 800;
}
.brand strong { display: block; font-size: 1.05rem; }
.brand span { color: var(--muted); font-size: 0.78rem; }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--charcoal);
  background: var(--white);
}
.desktop-nav a.is-active {
  color: var(--charcoal);
  background: var(--yellow);
}

.header-action {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.92rem;
}
.header-action:hover { color: var(--charcoal); }

.content { padding-bottom: 150px; }
.page-header { margin-bottom: 8px; }
.page-header h1 { margin-top: 0; }

h1 { font-size: 1.7rem; line-height: 1.15; margin: 8px 0 6px; }
h2 { font-size: 1.05rem; margin: 22px 0 10px; }
.lede, .muted { color: var(--muted); }

.banner, .card, .choice, .slot, .message {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.banner {
  padding: 16px;
  margin: 12px 0;
  background: var(--charcoal);
  color: white;
}
.banner p { margin: 6px 0 0; color: #d5d8de; }
.card, .choice { padding: 16px; margin: 10px 0; }
.choice { display: block; text-decoration: none; border: 2px solid transparent; transition: border-color 0.15s ease; }
.choice:hover { border-color: var(--line); }
.choice.selected, .choice:focus-visible { border-color: var(--yellow); }

.card-grid {
  display: grid;
  gap: 12px;
}
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.price { font-weight: 800; }
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eceff5;
  font-size: 0.8rem;
}
.pill.confirmed, .pill.assigned { background: #e5f6ee; color: var(--success); }
.pill.cancelled, .pill.failed { background: #fde8e6; color: var(--danger); }
.messages { list-style: none; padding: 0; margin: 8px 0 0; }
.message { padding: 12px 14px; margin-bottom: 8px; }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.field { margin: 14px 0; }
.field label, .check { display: block; font-weight: 650; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  min-height: 48px;
}
textarea { min-height: 96px; }
.field-error, .errorlist { color: var(--danger); margin: 6px 0 0; padding: 0; list-style: none; }
.check { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 3px; width: auto; min-height: auto; }
.btn, button.btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--yellow); border: 0; border-radius: 14px;
  min-height: 52px; padding: 14px 16px; font-weight: 800; cursor: pointer;
}
.btn.secondary { background: var(--white); border: 1px solid var(--line); }
.btn.small { width: auto; min-height: 40px; padding: 8px 12px; }
.btn-row { display: grid; gap: 8px; }
.bottom-bar {
  position: sticky;
  bottom: var(--nav);
  background: linear-gradient(transparent, var(--bg) 24%);
  padding-top: 18px;
  padding-bottom: 8px;
}
.tabbar {
  position: sticky;
  bottom: 0;
  height: var(--nav);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  align-items: center;
}
.tabbar a, .tabbar button {
  text-align: center; text-decoration: none; background: none; border: 0;
  color: var(--muted); font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.switcher { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex-wrap: wrap; }
.switcher a {
  text-decoration: none; white-space: nowrap;
  background: var(--white); border-radius: 999px; padding: 10px 14px;
  border: 2px solid transparent;
}
.switcher a.selected { border-color: var(--charcoal); background: var(--yellow); }
.addon { display: flex; gap: 12px; align-items: flex-start; }
.addon input { margin-top: 4px; width: auto; min-height: auto; }
.days { display: flex; gap: 8px; overflow-x: auto; flex-wrap: wrap; }
.days a {
  text-decoration: none; background: var(--white); border-radius: 14px;
  padding: 10px 12px; min-width: 72px; text-align: center; border: 2px solid transparent;
}
.days a.selected { border-color: var(--charcoal); background: var(--yellow); }
.days small, .slot small { display: block; color: var(--muted); }
.slot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; margin: 8px 0;
}
.slot input { width: auto; min-height: auto; }
.summary-line { display: flex; justify-content: space-between; margin: 6px 0; }
.total { font-size: 1.2rem; font-weight: 800; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.guest .content { padding-bottom: 32px; }
.inline-form { margin: 0; }
ul.radio { list-style: none; padding: 0; margin: 0; }
ul.radio li { margin: 8px 0; }
ul.radio input { width: auto; min-height: auto; }

/* Auth pages: side-by-side hero on wide screens */
.auth-layout {
  display: block;
}
.auth-hero { margin-bottom: 8px; }
.auth-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-tab.is-active {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(29, 35, 43, 0.06);
}
.auth-panel h2 { margin-top: 0; }

.layout-two-col {
  display: block;
}
.layout-main { min-width: 0; }
.layout-aside { min-width: 0; }

@media (min-width: 960px) {
  :root {
    --page-gutter: 32px;
  }

  .topbar {
    padding-top: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
  }

  .desktop-nav { display: flex; }
  .tabbar { display: none; }
  .content { padding-bottom: 48px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.15rem; }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  .card-grid .choice,
  .card-grid .card { margin: 0; }

  .btn-row--desktop-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 40px;
    align-items: start;
    margin-top: 24px;
  }
  .auth-hero .banner { margin-top: 0; }
  .auth-panel { position: sticky; top: 24px; }

  .layout-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 32px;
    align-items: start;
  }
  .layout-aside {
    position: sticky;
    top: 24px;
  }

  .slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
  .slot-grid .slot { margin: 0; }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.photo-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.timeline li { font-size: 0.95rem; line-height: 1.45; }

@media (max-width: 959px) {
  body { background: #e7e9ef; }
  .app-shell {
    max-width: 480px;
    box-shadow: var(--shadow);
  }
}
