*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #1e293b;
  --brand-dark: #0f172a;
  --brand-light: #f1f5f9;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 0;
}

.site-footer {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Intro screen */
.intro-headline {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.intro-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.intro-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-checklist li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding-left: 1.5em;
  position: relative;
}

.intro-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff5f1f;
  font-weight: 700;
}

/* Step visibility */
.step {
  display: none;
  width: 100%;
  max-width: 440px;
}
.step.active {
  display: block;
}

/* Card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: visible;
}

/* Intro card hero image */
.intro-image {
  display: block;
  width: calc(100% + 56px);
  margin: -32px -28px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
}

/* Progress bar — sits at the bottom of each card */
.progress-track {
  margin: 0 -28px -36px;
  height: 4px;
  background: var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff5f1f;
  opacity: 0.5;
}

/* Step indicator */
.step-indicator {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Logo / h1 — SEO title, visually muted */
.logo {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}

/* Setup hint */
.setup-hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: -8px;
}

/* Next step hint */
.next-hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Eyebrow — visually prominent */
.eyebrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: -4px;
}

/* Step subtitle */
.subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: -8px;
}

/* Step sub-heading */
.step-heading {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,41,59,0.12);
}

input.error {
  border-color: #ef4444;
}

.helper {
  font-size: 0.8rem;
  color: var(--muted);
}

.helper a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.helper a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  -webkit-appearance: none;
  margin-top: 4px;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.btn-send {
  background: #16a34a;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.btn-send:hover {
  background: #15803d;
}

.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  width: fit-content;
}

.btn-back:hover {
  color: var(--text);
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--brand-light);
  color: var(--brand);
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Step 4 CTA + home screen hint */
.cta-nudge {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.cta-nudge a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
}

.cta-nudge a:hover {
  color: var(--text);
}

.homescreen-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: -4px;
}

/* Preview box */
.preview-box {
  background: var(--brand-light);
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Utility */
.hidden {
  display: none;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Error messages */
.field-error {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: -2px;
}

/* Business confirmed badge */
.business-confirm {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Step 2 card — autocomplete flush at top, no top padding */
.card--search {
  padding-top: 0;
}

/* Google Places PlaceAutocompleteElement */
#business-search-container {
  position: relative;
  height: 50px;
  z-index: 10;
  margin: 0 -28px;
  width: calc(100% + 56px);
}

#business-search-container gmp-place-autocomplete {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  --gmp-filled-input-border-radius: var(--radius) var(--radius) 0 0;
}
