:root {
  --page: #fff8fb;
  --surface: #ffffff;
  --surface-strong: #f6fbff;
  --ink: #2f2a35;
  --muted: #756b7d;
  --primary: #ee5f8f;
  --primary-strong: #cf3f73;
  --secondary: #6bb9d6;
  --mint: #9bd8c2;
  --lavender: #ddd1ff;
  --cream: #fff1c9;
  --danger: #c94f5d;
  --border: rgba(47, 42, 53, 0.14);
  --shadow: 0 18px 45px rgba(74, 55, 87, 0.14);
}

:root[data-theme="dark"] {
  --page: #1f1c24;
  --surface: #2b2632;
  --surface-strong: #262f38;
  --ink: #fff7fb;
  --muted: #cfc4d6;
  --primary: #ff80aa;
  --primary-strong: #ff9cbd;
  --secondary: #82d7f0;
  --mint: #9be3cc;
  --lavender: #bfb2ff;
  --cream: #ffe4a8;
  --danger: #ff8b96;
  --border: rgba(255, 247, 251, 0.17);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Nunito", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(238, 95, 143, 0.14), transparent 34%),
    linear-gradient(300deg, rgba(107, 185, 214, 0.18), transparent 35%),
    var(--page);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-links a,
.theme-toggle {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-links a:hover,
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  align-items: start;
}

.intro-panel,
.booking-card,
.confirmation-card,
.empty-state,
.booking-item {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
  padding: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 1.65rem;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.bike-scene {
  position: relative;
  min-height: 190px;
  margin: 34px 0 24px;
  background:
    linear-gradient(180deg, rgba(255, 241, 201, 0.85), rgba(221, 209, 255, 0.3)),
    var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.bike-emoji {
  position: absolute;
  left: 18%;
  bottom: 54px;
  font-size: 4.2rem;
  animation: scooter-bob 1.7s ease-in-out infinite;
}

.road-line {
  position: absolute;
  right: 0;
  bottom: 48px;
  left: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--secondary), var(--secondary) 34px, transparent 34px, transparent 58px);
  opacity: 0.65;
  animation: road-roll 1.25s linear infinite;
}

.road-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--mint);
  border-radius: 8px;
  opacity: 0.8;
}

.spark-one {
  top: 28px;
  right: 36px;
  animation: sparkle 2s ease-in-out infinite;
}

.spark-two {
  top: 66px;
  left: 52px;
  background: var(--primary);
  animation: sparkle 2.4s ease-in-out infinite;
}

.status-pill {
  padding: 14px 16px;
  color: var(--ink);
  background: color-mix(in srgb, var(--mint) 28%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.booking-card,
.confirmation-card,
.empty-state {
  padding: 28px;
}

.card-heading {
  margin-bottom: 22px;
}

.booking-form {
  display: grid;
  gap: 18px;
}

label,
fieldset {
  min-width: 0;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bike-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
}

.bike-options legend {
  grid-column: 1 / -1;
}

.bike-option {
  position: relative;
  cursor: pointer;
}

.bike-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bike-option span {
  height: 100%;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bike-option strong,
.bike-option small {
  display: block;
}

.bike-option small {
  margin-top: 4px;
  color: var(--muted);
}

.bike-option:hover span,
.bike-option input:checked + span {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.bike-option input:checked + span {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
}

.checkbox-row span {
  margin: 0;
}

.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  position: relative;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 28%, transparent);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.ghost-button:active,
.danger-button:active {
  transform: translateY(0);
}

.ghost-button {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--border);
}

.danger-button {
  color: #ffffff;
  background: var(--danger);
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 3px solid rgba(255, 255, 255, 0.46);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .button-loader {
  display: inline-block;
}

.alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  color: var(--ink);
  background: color-mix(in srgb, var(--cream) 62%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 8px;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.center-layout {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.confirmation-card {
  width: min(720px, 100%);
  text-align: center;
}

.success-icon {
  margin: 0 0 10px;
  font-size: 3rem;
  animation: scooter-bob 1.7s ease-in-out infinite;
}

.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}

.details-list div {
  min-width: 0;
  padding: 13px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.details-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.details-list dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.details-list.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.list-layout {
  display: grid;
  gap: 22px;
}

.list-heading {
  max-width: 720px;
}

.booking-list {
  display: grid;
  gap: 16px;
}

.booking-item {
  padding: 22px;
}

.booking-item.is-completed {
  opacity: 0.72;
}

.booking-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bike-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--secondary) 20%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.empty-state p {
  margin: 0;
  font-size: 3rem;
}

.empty-state h2 {
  margin-bottom: 6px;
}

@keyframes scooter-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes road-roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(58px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.28) rotate(12deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .site-header,
  .hero-layout,
  .field-grid,
  .bike-options,
  .details-list,
  .details-list.compact,
  .booking-topline {
    grid-template-columns: 1fr;
  }

  .site-header,
  .booking-topline {
    align-items: stretch;
  }

  .site-header,
  .nav-links {
    flex-direction: column;
  }

  .nav-links,
  .nav-links a,
  .theme-toggle {
    width: 100%;
  }

  .intro-panel {
    position: static;
  }

  h1 {
    font-size: 2.7rem;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .intro-panel,
  .booking-card,
  .confirmation-card,
  .empty-state,
  .booking-item {
    padding: 18px;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .bike-scene {
    min-height: 150px;
  }

  .bike-emoji {
    left: 12%;
    font-size: 3.4rem;
  }
}
