:root {
  color-scheme: light;
  --ink: #172127;
  --muted: #69767d;
  --line: #dce4e2;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --teal: #0d5f5b;
  --teal-dark: #073f3d;
  --mint: #d7ece7;
  --copper: #b96f4b;
  --sky: #e7f0f8;
  --shadow: 0 22px 60px rgba(23, 33, 39, 0.13);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--wash);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(231, 240, 248, 0.55) 0%, rgba(244, 247, 245, 0) 36%),
    var(--wash);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

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

.brand-bar {
  order: 1;
}

.hero-wrap {
  order: 2;
}

.booking-card {
  order: 3;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 2px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.hero-wrap {
  display: grid;
  gap: 12px;
}

.hero-media {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #050708;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.72) 0%, rgba(5, 7, 8, 0.42) 42%, rgba(5, 7, 8, 0.02) 68%),
    linear-gradient(180deg, rgba(5, 7, 8, 0.16) 0%, rgba(5, 7, 8, 0.12) 48%, rgba(5, 7, 8, 0.32) 100%);
}

.intro-copy {
  padding: 0 2px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  width: min(48%, 15rem);
  margin: 0;
  color: #fff;
  font-size: clamp(1.78rem, 1.78rem + 1vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-copy p,
.signal-grid p,
.fine-print,
.quote-note,
.field-help {
  color: var(--muted);
  line-height: 1.5;
}

.intro-copy p {
  margin: 9px 0 0;
  max-width: 35rem;
  font-size: 1.02rem;
}

.intro-copy .hero-continuation {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.72rem, 1.72rem + 0.8vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.booking-card,
.signal-grid article,
.status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.booking-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.form-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.form-header.compact h2 {
  font-size: 1.04rem;
}

.request-pill {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
}

.field-stack {
  display: grid;
  gap: 7px;
}

label {
  font-size: 0.8rem;
  font-weight: 800;
}

input,
textarea,
.stripe-card {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd9d7;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

textarea {
  resize: vertical;
}

.stripe-card {
  display: flex;
  align-items: center;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 95, 91, 0.13);
}

.stripe-card.is-focused {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 95, 91, 0.13);
}

.stripe-card.is-invalid {
  border-color: #b94f3c;
}

.field-grid,
.payment-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.quote-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-dark), #184b55);
  color: #fff;
}

.quote-label {
  margin: 0 0 3px;
  font-size: 0.78rem;
  font-weight: 800;
}

.quote-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.83rem;
}

#quotePrice {
  flex: 0 0 auto;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

.payment-group {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.payment-row {
  grid-template-columns: minmax(0, 1fr) 78px 76px;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(13, 95, 91, 0.22);
  transition: background 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.fine-print {
  margin: 0;
  font-size: 0.82rem;
}

.field-help {
  margin: 0;
  font-size: 0.8rem;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.trust-column {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.status-panel {
  padding: 16px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.signal-grid article {
  border: 0;
  border-radius: 0;
  padding: 15px;
  background: transparent;
}

.signal-grid article:nth-child(1),
.signal-grid article:nth-child(2) {
  border-bottom: 1px solid var(--line);
}

.signal-grid article:nth-child(1),
.signal-grid article:nth-child(3) {
  border-right: 1px solid var(--line);
}

.signal-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
}

.signal-grid h3 {
  margin: 12px 0 5px;
  font-size: 0.98rem;
}

.signal-grid p {
  margin: 0;
  font-size: 0.85rem;
}

.status-panel {
  display: grid;
  gap: 10px;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.status-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.83rem;
}

.status-step p {
  margin: 0;
}

.status-step.active {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(7, 63, 61, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 390px) {
  .app-shell {
    padding: 12px;
  }

  .payment-row {
    grid-template-columns: 1fr 70px 68px;
  }

  h1 {
    left: 12px;
    bottom: 12px;
    width: 50%;
    font-size: 1.52rem;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid article:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 760px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.64fr);
    gap: 28px;
    align-items: start;
    padding: 28px;
  }

  .booking-view {
    grid-template-columns: 0.74fr 1fr;
    align-items: start;
  }

  .brand-bar,
  .hero-wrap {
    grid-column: 1 / -1;
    order: initial;
  }

  .booking-card {
    order: initial;
  }

  .hero-media {
    min-height: 320px;
  }

  .hero-media img {
    min-height: 320px;
    object-fit: cover;
  }

  .intro-copy {
    padding: 0 4px;
    z-index: 1;
  }

  h1 {
    left: 24px;
    bottom: 24px;
    width: min(42%, 22rem);
  }

  .booking-card {
    grid-column: 2;
    margin-top: -54px;
    z-index: 2;
  }

  .trust-column {
    position: sticky;
    top: 24px;
    margin-top: 70px;
  }
}

@media (min-width: 1060px) {
  .app-shell {
    padding-top: 36px;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-media img {
    min-height: 390px;
  }
}

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