:root {
  --bg: #eef4ec;
  --ink: #122119;
  --muted: #456252;
  --line: rgba(24, 78, 46, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --brand-1: #205b38;
  --brand-2: #2f8b57;
  --brand-3: #89c89e;
  --shadow: 0 18px 45px rgba(18, 56, 35, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Manrope", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, #d9ead9 0%, transparent 48%),
    radial-gradient(circle at 88% 8%, #cfe7d1 0%, transparent 42%),
    linear-gradient(165deg, #f7fbf5 0%, #eef4ec 40%, #e3efdf 100%);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 78, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 78, 46, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: -2;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 360px;
  height: 360px;
  background: #6fb085;
  top: -90px;
  left: -80px;
  animation: floaty 16s ease-in-out infinite;
}

.orb-b {
  width: 380px;
  height: 380px;
  background: #3e8f63;
  right: -130px;
  top: 240px;
  animation: floaty 20s ease-in-out infinite reverse;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 24px;
}

/* --- BRAND NAV --- */

.onboarding-nav {
  width: min(520px, 100% - 36px);
  margin: 16px auto 0;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #173523;
  text-decoration: none;
  font-size: 16px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d6a41, #5fae79);
  box-shadow: 0 0 0 4px rgba(58, 130, 86, 0.2);
  display: inline-block;
}

/* --- BUTTONS --- */

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 800;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  display: inline-block;
  text-align: center;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 95, 56, 0.33);
}

.btn-secondary {
  color: var(--brand-1);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(32, 91, 56, 0.24);
}

/* --- ONBOARDING LAYOUT --- */

.onboarding-shell {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
}

.onboarding-card {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px;
  animation: rise 500ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.onboarding-card h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

/* --- PROGRESS BAR --- */

.onboarding-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.progress-dot {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: rgba(30, 96, 58, 0.15);
  transition: background 300ms ease;
}

.progress-dot.active { background: var(--brand-2); }
.progress-dot.done { background: var(--brand-1); }

/* --- FORM FIELDS --- */

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(47, 145, 93, 0.12);
}

.field-group textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

/* --- BUSINESS TYPE GRID --- */

.biz-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.biz-type-option {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  user-select: none;
}

.biz-type-option:hover {
  border-color: var(--brand-3);
  background: rgba(137, 200, 158, 0.08);
}

.biz-type-option.selected {
  border-color: var(--brand-1);
  background: rgba(32, 91, 56, 0.08);
  font-weight: 700;
}

/* --- ACTIONS --- */

.onboarding-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

.onboarding-actions .btn {
  flex: 1;
}

/* --- HELP LINK --- */

.help-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.help-link a {
  color: var(--brand-1);
  font-weight: 700;
  text-decoration: none;
}

/* --- INFO BOX --- */

.info-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  background: #f8fcf9;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.info-box strong { color: var(--ink); }

/* --- HINT TEXT --- */

.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.hint a {
  color: var(--brand-1);
  font-weight: 700;
  text-decoration: none;
}

/* --- SKIP LINK --- */

.skip-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.skip-link a {
  color: var(--brand-1);
  font-weight: 600;
  text-decoration: none;
}

/* --- CONFIRMATION FLOW --- */

.confirmation-flow { margin-top: 20px; }

.flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.flow-step:last-child { border-bottom: none; }

.flow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.flow-step-text h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}

.flow-step-text p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.guarantee-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(32, 91, 56, 0.07);
  border: 1px solid rgba(32, 91, 56, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 8px;
}

.guarantee-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- ANIMATIONS --- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 22px, 0); }
}

/* --- RESPONSIVE --- */

@media (max-width: 560px) {
  .onboarding-card { padding: 24px 18px; }
  .biz-type-grid { grid-template-columns: 1fr; }
  .onboarding-card h2 { font-size: 22px; }
  .btn { width: 100%; }
}
