:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --ink: #181713;
  --muted: #67645d;
  --muted-2: #8a857b;
  --line: #ded9cf;
  --dark: #050505;
  --dark-panel: #1f1f1f;
  --dark-line: rgba(255, 255, 255, 0.13);
  --gold: #dfbc89;
  --green: #1d9a62;
  --green-dark: #166534;
  --danger: #b04545;
  --shadow: 0 22px 60px rgba(28, 24, 18, 0.14);

  /* Mirrors lib/core/theme/beauty_theme.dart so the wizard matches the app. */
  --primary: #c4b49e; /* BeautyColors.primaryControl */
  --selected: #bea888; /* BeautyColors.selectedAccent */
  --secondary: #9f8e75; /* BeautyColors.secondaryControl */
  --social-surface: #f1f1f1; /* BeautyColors.socialAuthSurface */
  --progress-track: rgba(138, 138, 138, 0.28); /* BeautyColors.progressInactive */
  --category-icon-surface: #f9f1e8; /* BeautyColors.categoryIconSurface */
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--register-root-bg, var(--bg));
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--register-root-bg, var(--bg));
  font-family: "STK Bureau Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

html.register-screen-intro,
body.register-screen-intro {
  --register-root-bg: var(--dark);
}

html.register-screen-wizard,
body.register-screen-wizard,
html.register-screen-success,
body.register-screen-success {
  --register-root-bg: var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.partner-app {
  min-height: 100vh;
  min-height: 100dvh;
}

.intro-screen,
.wizard-screen,
.success-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.intro-screen {
  position: relative;
  isolation: isolate;
  display: none;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.intro-screen.is-active {
  display: block;
}

.intro-media,
.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -2;
}

.intro-media {
  background-image: url("/partner/assets/marketing_nail_professional_2.webp");
  background-image: image-set(
    url("/partner/assets/marketing_nail_professional_2.avif") type("image/avif"),
    url("/partner/assets/marketing_nail_professional_2.webp") type("image/webp")
  );
  background-size: cover;
  background-position: 58% 10%;
  height: min(38vh, 420px);
}

.intro-overlay {
  z-index: -1;
  height: calc(min(38vh, 420px) + 6px);
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.28) 45%,
      rgba(0, 0, 0, 0.82) 72%,
      var(--dark) 90%
    );
}

.wizard-appbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wizard-brand {
  display: flex;
  justify-content: center;
}

.wizard-brand-logo {
  height: 36px;
  width: auto;
}

.wizard-appbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.intro-close-button {
  position: absolute;
  z-index: 4;
  top: max(18px, env(safe-area-inset-top));
  left: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.intro-close-button svg {
  width: 20px;
  height: 20px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(34px, 1fr));
  min-width: 118px;
  overflow: hidden;
  border-radius: 999px;
}

.language-switcher--light {
  border: 1px solid var(--line);
  background: var(--surface);
}

.language-button {
  min-height: 34px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.language-switcher--light .language-button {
  color: var(--muted);
}

.language-button.is-active {
  color: #fff;
  background: var(--selected);
}

.intro-content {
  width: min(1020px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: clamp(190px, 29vh, 270px) 0 42px;
  display: grid;
  gap: 50px;
}

.intro-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.intro-price-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.intro-hero h1 {
  max-width: 760px;
  margin: 8px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 7vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-hero h1 span {
  color: var(--gold);
}

.intro-price {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 2vw, 18px);
}

.intro-price .price-highlight {
  color: var(--green);
  font-weight: 800;
}

.intro-cta,
.primary-action,
.secondary-action {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}

.intro-cta {
  color: #fff;
  background: var(--green);
  min-width: min(100%, 330px);
  padding: 0 28px;
  box-shadow: 0 16px 32px rgba(29, 154, 98, 0.34);
}

.primary-action {
  color: #fff;
  background: var(--primary);
}

.primary-action:disabled,
.primary-action.is-incomplete {
  background: #9a9a9a;
  color: #fff;
  opacity: 1;
}

.benefit-panel {
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  background: var(--dark-panel);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.benefit-panel h2 {
  margin: 0;
  padding: 16px 18px 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.benefit-list {
  display: block;
  padding-top: 8px;
}

.benefit-row {
  width: 100%;
  min-height: 56px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.benefit-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.benefit-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.benefit-icon {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  color: var(--dark);
  background: #fff;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-row-title {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.benefit-chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.68);
}

.benefit-chevron svg {
  width: 22px;
  height: 22px;
}

.benefit-divider {
  width: 70%;
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.16);
}

.benefit-sheet {
  width: min(680px, 100vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 28px 28px 0 0;
  background: var(--dark-panel);
  box-shadow: var(--shadow);
}

.benefit-sheet-handle {
  flex: 0 0 auto;
  width: 42px;
  height: 4px;
  margin: 10px auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.benefit-sheet-pages {
  flex: 1 1 auto;
  min-height: 340px;
  max-height: 460px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.benefit-sheet-pages::-webkit-scrollbar {
  display: none;
}

.benefit-sheet-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 8px;
  text-align: center;
}

.benefit-sheet-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #404040;
}

.benefit-sheet-icon svg {
  width: 38px;
  height: 38px;
}

.benefit-sheet-page h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
}

.benefit-sheet-page p {
  max-width: 420px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.45;
}

.benefit-sheet-dots {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 18px 24px;
}

.benefit-sheet-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.18s ease, background-color 0.18s ease;
}

.benefit-sheet-dots span.is-active {
  width: 20px;
  background: #fff;
}

.wizard-screen {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
}

.wizard-screen[hidden],
.success-screen[hidden],
.modal-backdrop[hidden],
.map-fallback[hidden],
.manual-location-fields[hidden],
.location-address[hidden],
.outline-action[hidden] {
  display: none;
}

.wizard-appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px clamp(14px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.back-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.back-button svg {
  width: 24px;
  height: 24px;
}

.progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}

.progress-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.progress-segment {
  height: 5px;
  border-radius: 999px;
  background: var(--progress-track);
}

.progress-segment.is-active,
.progress-segment.is-complete {
  background: var(--selected);
}

.wizard-form {
  width: 100%;
}

.wizard-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) clamp(14px, 4vw, 36px) calc(96px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.wizard-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--surface);
  transition: transform 0.12s ease-out;
}

.wizard-cta-bar-inner {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 12px clamp(14px, 4vw, 36px) calc(12px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
}

.wizard-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-cta-row .primary-action {
  flex: 1 1 auto;
  width: auto;
}

.desktop-step-rail {
  display: none;
}

.wizard-card {
  width: min(680px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.step-header {
  display: grid;
  gap: 8px;
}

.step-header h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.step-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.field-stack {
  display: grid;
  gap: 16px;
}

.field,
.fieldset {
  min-width: 0;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.fieldset legend,
.photo-step-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 116px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  border-color: var(--selected);
  box-shadow: 0 0 0 3px rgba(190, 168, 136, 0.16);
}

.phone-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 128px minmax(0, 1fr);
}

.category-grid {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 14px;
  padding-left: clamp(14px, 4vw, 36px);
  padding-right: 0;
  margin-top: 12px;
  margin-left: calc(-1 * clamp(14px, 4vw, 36px));
  margin-right: calc(-1 * clamp(14px, 4vw, 36px));
  width: calc(100% + 2 * clamp(14px, 4vw, 36px));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-grid[hidden] {
  display: none;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-grid--selected {
  grid-template-rows: none;
  animation: category-grid-selected-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes category-grid-selected-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.category-circle {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--category-icon-surface);
  transition: transform 0.12s ease;
}

.category-item:active .category-circle {
  transform: scale(0.88);
}

.category-circle img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.category-item.is-selected .category-circle {
  border-color: var(--green);
  background: rgba(29, 154, 98, 0.16);
}

.category-label {
  width: 100%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: transform 0.12s ease;
}

.category-item:active .category-label {
  transform: scale(0.88);
}

.empty-photo-slot {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  border: 2px dotted rgba(159, 142, 117, 0.55);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 213, 176, 0.3), var(--surface));
  text-align: center;
}

.empty-photo-slot[hidden],
.photo-grid[hidden] {
  display: none;
}

.empty-photo-slot.is-compact {
  min-height: 48px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--secondary);
}

.empty-photo-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-add-icon-tile {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.82);
}

.empty-photo-slot.is-compact .photo-add-icon-tile {
  width: auto;
  height: auto;
  display: inline-grid;
  border-radius: 0;
  background: transparent;
}

.photo-add-icon-tile svg {
  width: 32px;
  height: 32px;
}

.empty-photo-slot.is-compact .photo-add-icon-tile svg {
  width: 20px;
  height: 20px;
}

.photo-add-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.empty-photo-slot.is-compact .photo-add-title {
  color: var(--secondary);
  font-size: 14px;
}

.photo-add-hint {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.empty-photo-slot.is-compact .photo-add-hint {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: var(--surface-2);
  box-shadow: 0 10px 20px rgba(28, 24, 18, 0.1);
}

.photo-item:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 2.4 / 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(24, 23, 19, 0.02) 0%,
    rgba(28, 24, 18, 0.5) 100%
  );
}

.photo-remove {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #d5486a;
  background: rgba(213, 72, 106, 0.16);
  line-height: 0;
}

.photo-remove svg {
  width: 18px;
  height: 18px;
}

.location-picker {
  position: relative;
  height: min(52vh, 420px);
  overflow: hidden;
  border-radius: 24px;
  background: #dcd6ca;
}

.map {
  position: absolute;
  inset: 0;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #e7e1d6;
  font-weight: 800;
}

.map-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--secondary);
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

.map-center-pin svg {
  width: 40px;
  height: 40px;
}

.map-locate-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(20, 18, 14, 0.22);
}

.map-locate-button svg {
  width: 20px;
  height: 20px;
}

.location-info {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.manual-location-fields {
  margin-top: 16px;
}

.manual-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-map-retry,
.terms-cancel {
  margin-top: 0;
}

.location-address {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.location-address-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--secondary);
}

.location-address-text {
  min-width: 0;
}

.location-market-note {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  text-align: center;
}

.outline-action {
  min-height: 52px;
  width: 100%;
  margin-top: 14px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--secondary);
  background: transparent;
  font-weight: 600;
  font-size: 16px;
}

.outline-action svg {
  width: 18px;
  height: 18px;
}


.availability-list {
  display: grid;
  gap: 12px;
}

.day-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: var(--surface);
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.day-card-title {
  font-weight: 700;
  font-size: 16px;
}

.day-toggle {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 46px;
  height: 28px;
}

.day-toggle-input {
  position: absolute;
  inset: 0;
  margin: 0;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.day-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--social-surface);
  transition: background-color 0.15s ease;
}

.day-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  transition: transform 0.15s ease;
}

.day-toggle-input:checked + .day-toggle-track {
  background: var(--primary);
}

.day-toggle-input:checked + .day-toggle-track::after {
  transform: translateX(18px);
}

.time-blocks {
  display: grid;
  gap: 10px;
}

.time-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
  align-items: end;
  gap: 10px;
}

.time-block .field span {
  font-size: 12px;
}

.remove-time-block {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.remove-time-block svg {
  width: 20px;
  height: 20px;
}

.time-block-spacer {
  width: 32px;
}

.add-time-block {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--secondary);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
}

.add-time-block svg {
  width: 16px;
  height: 16px;
}

.form-error {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: calc(100% - 24px);
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: form-error-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.form-error[hidden] {
  display: none;
}

.form-error-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--danger);
}

.form-error-text {
  flex: 1 1 auto;
  min-width: 0;
}

@keyframes form-error-in {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.primary-action {
  width: 100%;
  padding: 0 22px;
}

.secondary-action {
  color: var(--ink);
  background: var(--surface-2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.44);
}

.benefit-sheet-backdrop {
  padding: 0;
}

[data-step="terms"] p {
  margin: 0;
  color: var(--muted);
}

.terms-switch-row {
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
}

.terms-switch-row input {
  width: 20px;
  height: 20px;
  min-height: auto;
  padding: 0;
  accent-color: var(--green);
}

.success-screen {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.success-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--green);
}

.success-mark svg {
  width: 42px;
  height: 42px;
}

.success-card h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.08;
}

.success-card p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.success-steps {
  width: 100%;
  max-width: 420px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.success-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}

.success-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.success-card p.success-step-title {
  margin: 0 0 2px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.success-card p.success-step-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.success-step .store-links {
  margin-top: 12px;
  justify-content: flex-start;
}

.store-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.store-links a {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.store-links img {
  width: min(190px, 72vw);
  height: auto;
  object-fit: contain;
}

@media (min-width: 680px) {
  .intro-media,
  .intro-overlay {
    height: 58vh;
  }

  .intro-media {
    background-position: 54% 0%;
  }

  .intro-content {
    padding-top: clamp(230px, 37vh, 320px);
  }

  .intro-hero {
    min-height: 36vh;
  }

  .benefit-panel {
    width: min(700px, 100%);
    margin: 0 auto;
  }

  .benefit-row {
    min-height: 60px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-backdrop {
    place-items: center;
  }
}

@media (min-width: 960px) {
  .wizard-main {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
  }

  .desktop-step-rail {
    position: sticky;
    top: 150px;
    display: grid;
    gap: 8px;
  }

  .rail-step {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    text-align: left;
  }

  .rail-step.is-active {
    color: var(--ink);
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(28, 24, 18, 0.08);
  }

  .rail-index {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #aaa298;
    font-size: 12px;
    font-weight: 900;
  }

  .rail-step.is-active .rail-index,
  .rail-step.is-complete .rail-index {
    background: var(--selected);
  }

  .wizard-card {
    width: min(760px, 100%);
  }

  .wizard-cta-bar-inner {
    width: min(760px, 100%);
  }

  .category-grid {
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }
}

@media (max-width: 520px) {
  .wizard-appbar {
    grid-template-columns: auto 1fr;
  }

  .wizard-appbar .language-switcher {
    display: none;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .time-block {
    grid-template-columns: 1fr 1fr;
  }

  .manual-coordinate-grid {
    grid-template-columns: 1fr;
  }

  .remove-time-block {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 329px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.market-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.market-prompt[hidden] {
  display: none;
}

.market-prompt-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.market-prompt-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.market-prompt-button:hover {
  border-color: #fff;
}
