:root {
  --page: #f6f3ee;
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --surface-soft: #fdf5eb;
  --ink: #252321;
  --muted: #706a63;
  --line: rgba(37, 35, 33, 0.12);
  --orange: #f27a1a;
  --orange-dark: #c45609;
  --orange-soft: rgba(242, 122, 26, 0.12);
  --green: #2f9f69;
  --danger: #d64545;
  --shadow: 0 18px 46px rgba(37, 35, 33, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(242, 122, 26, 0.16), transparent 34rem),
    linear-gradient(180deg, #fffaf3 0%, var(--page) 72%, #ece6dd 100%);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wizard-shell {
  min-height: 100vh;
  padding: 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 8px 2px 14px;
  background: linear-gradient(180deg, rgba(246, 243, 238, 0.98), rgba(246, 243, 238, 0.84));
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.brand-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.save-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.wizard-layout {
  display: grid;
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wizard-rail,
.wizard-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: var(--shadow);
}

.wizard-rail {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.eyebrow,
.kicker {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wizard-rail h1 {
  font-size: 32px;
  line-height: 0.98;
}

.wizard-rail p,
.step-head p,
.small-note,
.panel-title span,
.test-call-card p {
  color: var(--muted);
}

.progress-shell {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 35, 33, 0.1);
}

.progress-shell span {
  display: block;
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ffb05f);
  transition: width 180ms ease;
}

.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.step-meta strong {
  color: var(--ink);
}

.wizard-card {
  padding: 16px;
}

form,
.step,
.step-head,
.form-grid,
.profile-panel,
.hours-panel,
.services-panel,
.area-panel,
.recipient-panel,
.test-call-card,
.service-list,
.profile-faq-list,
.recipient-list {
  display: grid;
  gap: 14px;
}

.step {
  display: none;
}

.step.is-active {
  display: grid;
}

.step-head h2 {
  font-size: 30px;
  line-height: 1.02;
}

.time-banner {
  width: fit-content;
  border: 1px solid rgba(242, 122, 26, 0.24);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 14px;
  font-weight: 850;
}

.field > span {
  color: #3a332c;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.22;
}

.field small {
  color: #786f66;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.required-mark {
  color: var(--danger);
  font-weight: 950;
}

.turnstile-widget {
  min-height: 65px;
  margin: 2px 0 6px;
}

.turnstile-widget iframe {
  max-width: 100%;
}

.enrichment-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(242, 122, 26, 0.22);
  border-radius: 10px;
  background: rgba(242, 122, 26, 0.08);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.enrichment-status strong {
  color: var(--ink);
}

.enrichment-status span:last-child {
  grid-column: 2;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242, 122, 26, 0.34);
  animation: pulse 1.2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(242, 122, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 122, 26, 0);
  }
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
  font-weight: 500;
}

input::placeholder,
textarea::placeholder {
  color: rgba(112, 106, 99, 0.78);
  font-weight: 500;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 122, 26, 0.55);
  box-shadow: 0 0 0 4px rgba(242, 122, 26, 0.12);
}

.trade-head,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trade-head h3,
.panel-title h3,
.test-call-card h3 {
  font-size: 18px;
}

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

.trade-tile,
.plan-card,
.service-row,
.recipient-row,
.hours-panel,
.services-panel,
.area-panel,
.recipient-panel,
.test-call-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(37, 35, 33, 0.06);
}

.trade-tile,
.plan-card {
  display: grid;
  gap: 7px;
  min-height: 106px;
  padding: 13px;
  text-align: left;
}

.trade-tile {
  gap: 9px;
  min-height: 132px;
}

.trade-tile .trade-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 76px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--trade-fallback, #4f5965);
  background-image:
    var(--trade-overlay, linear-gradient(135deg, rgba(8, 18, 32, 0.7), rgba(8, 18, 32, 0.28))),
    var(--trade-photo);
  background-position: center;
  background-size: cover;
}

.trade-tile .trade-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 44%);
}

.trade-tile strong {
  line-height: 1.15;
}

.trade-tile[data-trade="plumber"] {
  --trade-fallback: #005bbb;
  --trade-photo: url("https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?auto=format&fit=crop&w=900&q=80");
  --trade-overlay: linear-gradient(135deg, rgba(0, 50, 95, 0.82), rgba(0, 91, 187, 0.36));
}

.trade-tile[data-trade="electrician"] {
  --trade-fallback: #b08a00;
  --trade-photo: url("https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=900&q=80");
  --trade-overlay: linear-gradient(135deg, rgba(88, 62, 0, 0.84), rgba(176, 138, 0, 0.34));
}

.trade-tile[data-trade="roofer"] {
  --trade-fallback: #8b1e3f;
  --trade-photo: url("https://images.pexels.com/photos/31771167/pexels-photo-31771167.jpeg?auto=compress&cs=tinysrgb&w=900");
  --trade-overlay: linear-gradient(135deg, rgba(78, 13, 32, 0.84), rgba(139, 30, 63, 0.35));
}

.trade-tile[data-trade="landscaper"] {
  --trade-fallback: #16703a;
  --trade-photo: url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=900&q=80");
  --trade-overlay: linear-gradient(135deg, rgba(9, 64, 31, 0.82), rgba(22, 112, 58, 0.32));
}

.trade-tile[data-trade="builder"] {
  --trade-fallback: #545b62;
  --trade-photo: url("https://images.pexels.com/photos/4509092/pexels-photo-4509092.jpeg?auto=compress&cs=tinysrgb&w=900");
  --trade-overlay: linear-gradient(135deg, rgba(40, 45, 50, 0.86), rgba(84, 91, 98, 0.32));
}

.trade-tile[data-trade="hvac"] {
  --trade-fallback: #007c89;
  --trade-photo: url("https://images.unsplash.com/photo-1621905251918-48416bd8575a?auto=format&fit=crop&w=900&q=80");
  --trade-overlay: linear-gradient(135deg, rgba(0, 72, 80, 0.84), rgba(0, 124, 137, 0.32));
}

.trade-tile[data-trade="carpenter"] {
  --trade-fallback: #7a4b2a;
  --trade-photo: url("https://images.unsplash.com/photo-1504148455328-c376907d081c?auto=format&fit=crop&w=900&q=80");
  --trade-overlay: linear-gradient(135deg, rgba(70, 38, 17, 0.84), rgba(122, 75, 42, 0.32));
}

.trade-tile[data-trade="painter"] {
  --trade-fallback: #d96f1f;
  --trade-photo: url("https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=900&q=80");
  --trade-overlay: linear-gradient(135deg, rgba(137, 62, 0, 0.82), rgba(217, 111, 31, 0.38));
}

.trade-tile[data-trade="other"] {
  --trade-fallback: #4f5965;
  --trade-photo: url("https://images.unsplash.com/photo-1745448797900-35d08e85e9db?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&w=900");
  --trade-overlay: linear-gradient(135deg, rgba(8, 18, 32, 0.76), rgba(8, 18, 32, 0.42));
}

.trade-tile.is-selected,
.plan-card.is-selected {
  border-color: rgba(242, 122, 26, 0.55);
  background: #fff5e9;
  box-shadow: 0 14px 32px rgba(242, 122, 26, 0.12);
}

.form-grid,
.hours-grid {
  display: grid;
  gap: 10px;
}

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

.hours-panel,
.services-panel,
.area-panel,
.profile-panel,
.recipient-panel,
.test-call-card {
  padding: 14px;
}

.service-row,
.recipient-row,
.profile-faq-row {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.profile-panel {
  border: 1px solid rgba(242, 122, 26, 0.22);
  border-radius: 10px;
  background: rgba(242, 122, 26, 0.065);
}

.profile-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-faq-head strong {
  font-size: 14px;
}

.profile-faq-row {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
}

.profile-faq-row .icon-action {
  justify-self: start;
}

.hours-row,
.voice-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  padding: 10px;
  box-shadow: 0 10px 24px rgba(37, 35, 33, 0.05);
}

.hours-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.day-closed {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0 10px;
}

.day-closed strong,
.day-closed span {
  min-width: 0;
  white-space: nowrap;
}

.compact-field {
  min-width: 0;
}

.compact-field select {
  min-width: 0;
}

.hours-row.is-closed {
  background: rgba(37, 35, 33, 0.035);
}

.hours-row.is-closed .compact-field {
  opacity: 0.58;
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 850;
}

input.is-invalid {
  border-color: rgba(214, 69, 69, 0.72);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.1);
}

.switch-line,
.channel-grid label,
.segmented-control label,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.switch-line input,
.channel-grid input,
.segmented-control input {
  width: 18px;
  min-height: 18px;
}

.segmented-control,
.channel-grid {
  display: grid;
  gap: 8px;
}

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

.voice-grid {
  display: grid;
  gap: 10px;
}

.voice-card {
  align-content: start;
}

.voice-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.voice-card.is-selected {
  border-color: rgba(242, 122, 26, 0.55);
  background: #fff5e9;
  box-shadow: 0 14px 32px rgba(242, 122, 26, 0.12);
}

.voice-detail-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(19, 109, 168, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(19, 109, 168, 0.07);
}

.voice-card.is-disabled,
.channel-grid label.is-disabled {
  opacity: 0.56;
}

.voice-card.is-disabled {
  cursor: not-allowed;
  background: rgba(37, 35, 33, 0.055);
}

.voice-card.is-disabled input {
  cursor: not-allowed;
}

.channel-grid label.is-disabled {
  cursor: not-allowed;
  background: rgba(37, 35, 33, 0.055);
}

.channel-grid label.is-disabled input {
  cursor: not-allowed;
}

.sample-button {
  width: fit-content;
  min-height: 36px;
}

.segmented-control label,
.channel-grid label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0 12px;
}

.area-mode[hidden],
[hidden] {
  display: none !important;
}

.icon-action {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 900;
}

.call-state,
.recommended {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.plan-card em,
.plan-card small {
  color: var(--muted);
  font-style: normal;
}

.locked-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(37, 35, 33, 0.08);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.checkout-card {
  background: linear-gradient(180deg, #ffffff, #fff5e9);
}

.preview-call-card {
  border-color: rgba(242, 122, 26, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 240, 220, 0.92)),
    radial-gradient(circle at top right, rgba(242, 122, 26, 0.14), transparent 16rem);
  box-shadow: 0 18px 40px rgba(242, 122, 26, 0.14);
}

.preview-call-card h3 {
  max-width: 560px;
  font-size: 24px;
  line-height: 1.08;
}

.preview-call-card p {
  max-width: 620px;
  line-height: 1.5;
}

.preview-call-card .call-target {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(19, 109, 168, 0.1);
  color: #136da8;
  font-weight: 900;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

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

.text-button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--orange-dark);
  padding: 0;
}

.large-button {
  width: 100%;
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  max-width: min(340px, calc(100vw - 28px));
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.success-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 16px;
}

.success-card {
  display: grid;
  width: min(640px, 100%);
  gap: 16px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.success-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.success-card h1 {
  max-width: 520px;
  font-size: 40px;
  line-height: 0.98;
}

.success-card p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.5;
}

.number-panel {
  display: grid;
  width: 100%;
  gap: 8px;
  border: 1px solid rgba(47, 159, 105, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(47, 159, 105, 0.1), rgba(47, 159, 105, 0.04));
  padding: 14px;
  text-align: left;
}

.number-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.number-panel strong {
  font-size: 28px;
  line-height: 1.05;
}

.number-panel code {
  border-radius: 6px;
  background: rgba(37, 35, 33, 0.08);
  color: var(--ink);
  padding: 2px 5px;
  font-size: 0.95em;
  font-weight: 900;
}

.success-actions {
  width: 100%;
  justify-content: center;
}

.success-actions a {
  flex: 1 1 180px;
}

@media (min-width: 760px) {
  .wizard-shell {
    padding: 20px;
  }

  .wizard-layout {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

  .wizard-rail {
    position: sticky;
    top: 86px;
    min-height: calc(100vh - 120px);
    align-content: center;
    padding: 28px;
  }

  .wizard-card {
    padding: 24px;
  }

  .form-grid,
  .recipient-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-faq-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
    align-items: end;
  }

  .hours-grid,
  .voice-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, 0.72fr);
    align-items: center;
  }
}

@media (max-width: 430px) {
  .wizard-shell {
    padding: 10px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-link span {
    display: none;
  }

  .trade-grid,
  .plan-grid,
  .hours-grid,
  .voice-grid,
  .segmented-control {
    grid-template-columns: 1fr;
  }

  .step-head h2 {
    font-size: 26px;
  }
}
