:root {
  color-scheme: dark;
  --bg: #080806;
  --panel: #11100d;
  --panel-strong: #17140f;
  --line: rgba(224, 190, 97, 0.22);
  --line-strong: rgba(224, 190, 97, 0.42);
  --gold: #e6c15e;
  --gold-soft: #f1d88c;
  --text: #f8f3e7;
  --muted: #b9ad90;
  --danger: #ff7b7b;
  --success: #63e6a2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(230, 193, 94, 0.12), transparent 34rem),
    linear-gradient(135deg, #050504, #0f0d08 48%, #070705);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button,
.hero-action,
.admin-link {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #9f7b27);
  color: #090806;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.booking-page {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 18px;
}

.brand,
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.brand {
  color: var(--text);
  text-decoration: none;
}

.brand span:last-child {
  min-width: 0;
}

.brand small,
.eyebrow,
label,
.estimate-bar span,
.upload-drop small {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(230, 193, 94, 0.08);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.booking-steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.booking-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-steps li {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  align-content: center;
}

.booking-steps li::before {
  content: attr(data-step);
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 0.7rem;
  line-height: 20px;
}

.booking-steps li.active {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(230, 193, 94, 0.1);
}

.booking-steps li.active::before {
  border-color: var(--gold);
  background: var(--gold);
  color: #090806;
}

.booking-steps li.complete {
  color: var(--text);
}

.booking-steps li.complete::before {
  content: "✓";
  border-color: rgba(99, 230, 162, 0.5);
  background: rgba(99, 230, 162, 0.16);
  color: var(--success);
}

.success-next-steps {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(99, 230, 162, 0.28);
  border-radius: 8px;
  background: rgba(99, 230, 162, 0.08);
}

.success-next-steps h3 {
  margin: 0 0 8px;
  color: var(--success);
  font-size: 0.95rem;
}

.success-next-steps ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.5;
}

.success-next-steps li + li {
  margin-top: 6px;
}

.admin-link {
  padding: 0 16px;
  background: rgba(230, 193, 94, 0.08);
  color: var(--gold-soft);
}

.hero {
  display: grid;
  gap: 22px;
  min-height: min(520px, 74vh);
  align-content: center;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 8vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(480px, 1.08fr);
  gap: 24px;
  padding: 30px 0 60px;
  align-items: start;
}

.service-column,
.booking-form,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 13, 10, 0.82);
  box-shadow: var(--shadow);
}

.service-column,
.booking-form {
  padding: 18px;
}

.service-grid,
.package-grid,
.fast-lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.package-heading {
  margin-top: 22px;
}

.service-card,
.package-card,
.fast-lane-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 10px;
  width: 100%;
  min-height: 212px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(69, 88, 143, 0.32), rgba(88, 57, 114, 0.24) 45%, rgba(18, 17, 14, 0.92)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.package-card,
.fast-lane-card {
  min-height: 228px;
}

.fast-lane-card {
  background:
    linear-gradient(140deg, rgba(21, 103, 93, 0.28), rgba(88, 57, 114, 0.2) 45%, rgba(18, 17, 14, 0.92)),
    rgba(255, 255, 255, 0.035);
}

.service-card:hover,
.package-card:hover,
.fast-lane-card:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 193, 94, 0.64);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.service-card.active,
.package-card.active,
.fast-lane-card.active {
  border-color: var(--gold);
  background:
    linear-gradient(140deg, rgba(73, 96, 156, 0.42), rgba(97, 61, 128, 0.32) 45%, rgba(20, 18, 14, 0.95)),
    rgba(230, 193, 94, 0.13);
  box-shadow: 0 0 0 2px rgba(230, 193, 94, 0.22);
}

.service-card-head,
.package-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid rgba(241, 216, 140, 0.36);
  border-radius: 999px;
  color: #fff5cf;
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.34);
  overflow-wrap: anywhere;
  text-align: center;
}

.service-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(248, 243, 231, 0.28);
  border-radius: 999px;
  color: rgba(248, 243, 231, 0.96);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}

.package-fit-chip {
  border-color: rgba(99, 230, 162, 0.36);
  color: #d7ffe9;
  background: rgba(99, 230, 162, 0.1);
}

.service-card strong,
.package-card strong,
.fast-lane-card strong,
.file-main strong {
  display: block;
  color: #fff8e6;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.service-card p,
.package-card p,
.fast-lane-card p {
  margin: 0;
  color: rgba(248, 243, 231, 0.9);
  line-height: 1.52;
}

.service-card small,
.package-card small,
.fast-lane-card small {
  display: block;
  margin-top: auto;
  color: rgba(248, 243, 231, 0.84);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-best-for {
  color: rgba(215, 255, 233, 0.86);
}

.service-empty {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.service-empty p {
  margin: 0;
  color: var(--muted);
}

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

.booking-form.submitted {
  border-color: rgba(99, 230, 162, 0.34);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090907;
  color: var(--text);
  outline: none;
}

input {
  min-height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 193, 94, 0.14);
}

.add-ons-panel,
.upload-panel,
.payment-panel,
.estimate-bar {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.add-on-row,
.payment-choice label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
}

.add-on-row input,
.payment-choice input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--gold);
}

.upload-drop {
  min-height: 116px;
  align-content: center;
  justify-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(230, 193, 94, 0.06);
  text-align: center;
}

.upload-drop input {
  display: none;
}

.upload-drop span {
  color: var(--gold-soft);
  font-size: 1rem;
  font-weight: 900;
}

.upload-list {
  display: grid;
  gap: 10px;
}

.upload-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #0a0907;
}

.file-main small {
  display: block;
  margin: 4px 0 8px;
  color: var(--muted);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.payment-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-choice label {
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.estimate-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimate-bar strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-soft);
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.15;
}

.form-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.form-message.status {
  border: 1px solid rgba(99, 230, 162, 0.34);
  color: var(--success);
  background: rgba(99, 230, 162, 0.1);
}

.form-message.error {
  border: 1px solid rgba(255, 123, 123, 0.42);
  color: var(--danger);
  background: rgba(255, 123, 123, 0.1);
}

.upload-item.error {
  border-color: rgba(255, 123, 123, 0.42);
  background: rgba(255, 123, 123, 0.06);
}

.upload-item.error .file-main small {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.success-panel {
  margin-bottom: 60px;
  padding: 22px;
}

.success-panel h2 {
  color: var(--gold-soft);
  font-size: 1.8rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.success-actions a,
.success-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
}

.success-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.success-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.success-row strong {
  color: var(--text);
}

.success-row em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.success-row.warning {
  display: block;
  color: var(--gold-soft);
}

.booking-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.booking-footer strong {
  color: var(--gold-soft);
}

@media (max-width: 980px) {
  .booking-page {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .booking-layout {
    grid-template-columns: 1fr;
    padding: 18px 0 40px;
  }

  .service-grid,
  .package-grid,
  .fast-lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .package-card,
  .fast-lane-card {
    min-height: 198px;
  }
}

@media (max-width: 820px) {
  .booking-steps li {
    min-height: 66px;
    padding: 9px 8px;
    font-size: 0.74rem;
  }

  .hero {
    min-height: auto;
    gap: 16px;
    padding: 20px 0 18px;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 7.4vw, 2.75rem);
    line-height: 0.98;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
  }

  .booking-steps ol {
    gap: 6px;
  }

  .form-grid,
  .payment-choice,
  .estimate-bar {
    grid-template-columns: 1fr;
  }

  .booking-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 4px 0 12px;
  }

  .admin-link {
    min-height: 44px;
    padding: 0 12px;
    flex-shrink: 0;
  }

  .upload-drop {
    min-height: 112px;
  }

  #submit-booking {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    width: 100%;
    min-height: 48px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }

  .success-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .success-actions a,
  .success-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .booking-page {
    padding-inline: 12px;
  }

  .service-grid,
  .package-grid,
  .fast-lane-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .package-card,
  .fast-lane-card {
    min-height: 182px;
  }

  .booking-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-steps li {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.2rem);
  }

  .hero-action,
  .admin-link,
  #submit-booking {
    min-height: 48px;
  }

  .payment-choice {
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .booking-header {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 100%;
  }

  .admin-link {
    width: 100%;
    justify-content: center;
  }

  .booking-steps li {
    padding: 8px 5px;
    font-size: 0.64rem;
  }
}

/* Native shell: AppDelegate sets safe-area vars; page padding handles insets. */
html.otp-capacitor-native .booking-page {
  padding-top: calc(8px + var(--safe-top, env(safe-area-inset-top, 0px)));
  padding-bottom: calc(16px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}
