/* ── Base ─────────────────────────────────────────── */
    :root {
      --green:       #16a34a;
      --green-dark:  #0f7a37;
      --green-light: #dcfce7;
      --green-glow:  rgba(22,163,74,0.18);
      --ink:         #0c1a14;
      --muted:       #6b7280;
      --border:      #e5e7eb;
      --bg:          #f3f9f5;
      --card:        #ffffff;
      --radius:      16px;
    }
 
    *, *::before, *::after { box-sizing: border-box; }
 
    body {
      background: var(--bg);
      min-height: 100vh;
      font-family: 'DM Sans', system-ui, sans-serif;
      color: var(--ink);
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 2.5rem 1rem 4rem;
    }
 
    /* ── Layout shell ───────────────────────────────── */
    .shell {
      width: 100%;
      max-width: 1040px;
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 0;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 24px 80px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
      animation: fadeUp 0.55s cubic-bezier(.22,.68,0,1.2) both;
    }
 
    @keyframes fadeUp {
      from { opacity:0; transform: translateY(28px); }
      to   { opacity:1; transform: translateY(0); }
    }
 
    /* ── Sidebar ────────────────────────────────────── */
    .sidebar {
      background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
      color: white;
      padding: 3rem 2rem;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }
 
    .sidebar::before {
      content: '';
      position: absolute;
      width: 320px; height: 320px;
      border-radius: 50%;
      background: rgba(255,255,255,0.07);
      top: -80px; right: -120px;
    }
 
    .sidebar::after {
      content: '';
      position: absolute;
      width: 200px; height: 200px;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
      bottom: -60px; left: -70px;
    }
 
    .brand {
      font-family: 'Syne', sans-serif;
      font-size: 1.7rem;
      font-weight: 800;
      letter-spacing: -0.5px;
      margin-bottom: 0.4rem;
      position: relative; z-index: 1;
    }
 
    .brand-tagline {
      font-size: 0.82rem;
      opacity: 0.75;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      margin-bottom: 3rem;
      position: relative; z-index: 1;
    }
 
    /* Steps */
    .steps { position: relative; z-index: 1; flex: 1; }
 
    .step-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 2rem;
      opacity: 0.5;
      transition: opacity 0.3s;
    }
 
    .step-item.active { opacity: 1; }
    .step-item.done   { opacity: 0.75; }
 
    .step-dot {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      border: 2px solid rgba(255,255,255,0.3);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-size: 0.78rem;
      font-weight: 700;
      transition: all 0.3s;
    }
 
    .step-item.active .step-dot {
      background: white;
      color: var(--green);
      border-color: white;
    }
 
    .step-item.done .step-dot {
      background: rgba(255,255,255,0.25);
      border-color: rgba(255,255,255,0.5);
    }
 
    .step-connector {
      width: 2px; height: 28px;
      background: rgba(255,255,255,0.2);
      margin: -12px 0 -12px 15px;
    }
 
    .step-label { font-size: 0.88rem; font-weight: 500; padding-top: 5px; }
    .step-desc  { font-size: 0.75rem; opacity: 0.65; margin-top: 2px; }
 
    .sidebar-footer {
      position: relative; z-index: 1;
      font-size: 0.78rem;
      opacity: 0.55;
      margin-top: auto;
      padding-top: 2rem;
      border-top: 1px solid rgba(255,255,255,0.15);
    }
 
    /* ── Main form area ─────────────────────────────── */
    .main {
      background: var(--card);
      padding: 3rem 3.5rem 3.5rem;
      overflow-y: auto;
    }
 
    .section-heading {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.75rem;
      margin-top: 2.5rem;
    }
 
    .section-heading:first-child { margin-top: 0; }
 
    .section-icon {
      width: 36px; height: 36px;
      border-radius: 10px;
      background: var(--green-light);
      color: var(--green);
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }
 
    .section-heading h5 {
      font-family: 'Syne', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--ink);
      margin: 0;
    }
 
    /* ── Inputs ─────────────────────────────────────── */
    .field-wrap { position: relative; }
 
    .field-wrap label {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--muted);
      letter-spacing: 0.4px;
      text-transform: uppercase;
      margin-bottom: 0.45rem;
    }
 
    .field-wrap input,
    .field-wrap select {
      width: 100%;
      padding: 0.85rem 1.1rem;
      border-radius: var(--radius);
      border: 1.5px solid var(--border);
      background: #fafafa;
      font-family: inherit;
      font-size: 0.95rem;
      color: var(--ink);
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      outline: none;
      appearance: none;
    }
 
    .field-wrap input:focus,
    .field-wrap select:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 4px var(--green-glow);
      background: #fff;
    }
 
    .field-wrap input.is-invalid,
    .field-wrap select.is-invalid {
      border-color: #ef4444;
      box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
    }
 
    .field-wrap .invalid-msg {
      font-size: 0.78rem;
      color: #ef4444;
      margin-top: 0.35rem;
      display: none;
    }
 
    .field-wrap input.is-invalid ~ .invalid-msg,
    .field-wrap select.is-invalid ~ .invalid-msg {
      display: block;
    }
 
    /* password eye */
    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 3rem; }
    .pw-toggle {
      position: absolute;
      right: 1rem; top: 50%;
      transform: translateY(-50%);
      background: none; border: none;
      cursor: pointer;
      color: var(--muted);
      padding: 0; font-size: 1rem;
      display: flex; align-items: center;
      transition: color 0.2s;
    }
    .pw-toggle:hover { color: var(--green); }
 
    /* ── City select with arrow ─────────────────────── */
    .select-wrap { position: relative; }
    .select-wrap::after {
      content: '\F282';
      font-family: 'bootstrap-icons';
      position: absolute;
      right: 1rem; top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      pointer-events: none;
      font-size: 0.85rem;
    }
    .select-wrap select { padding-right: 2.5rem; cursor: pointer; }
 
    /* ── Chip toggles ───────────────────────────────── */
    .chip-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.25rem;
    }
 
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.42rem 0.9rem;
      border-radius: 50px;
      border: 1.5px solid var(--border);
      background: #fafafa;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      user-select: none;
      transition: all 0.18s;
      white-space: nowrap;
    }
 
    .chip:hover {
      border-color: var(--green);
      color: var(--green);
      background: var(--green-light);
    }
 
    .chip.selected {
      border-color: var(--green);
      background: var(--green-light);
      color: var(--green-dark);
      font-weight: 600;
    }
 
    .chip .chip-icon { font-size: 0.9rem; }
 
    /* ── Terms checkbox ─────────────────────────────── */
    .terms-row {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 1rem 1.25rem;
      border-radius: var(--radius);
      background: #f9fafb;
      border: 1.5px solid var(--border);
      margin-top: 0.25rem;
    }
 
    .terms-row input[type=checkbox] {
      width: 18px; height: 18px;
      accent-color: var(--green);
      flex-shrink: 0;
      cursor: pointer;
      margin-top: 2px;
    }
 
    .terms-row label {
      font-size: 0.88rem;
      color: var(--muted);
      cursor: pointer;
      line-height: 1.5;
    }
 
    .terms-row label a { color: var(--green); text-decoration: none; font-weight: 600; }
    .terms-row label a:hover { text-decoration: underline; }
 
    /* ── Submit ─────────────────────────────────────── */
    .btn-submit {
      width: 100%;
      padding: 1rem;
      border: none;
      border-radius: var(--radius);
      background: linear-gradient(135deg, var(--green), var(--green-dark));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.2px;
      cursor: pointer;
      box-shadow: 0 6px 24px rgba(22,163,74,0.3);
      transition: all 0.3s;
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
      margin-top: 2rem;
    }
 
    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 36px rgba(22,163,74,0.38);
    }
 
    .btn-submit:active { transform: translateY(0); }
 
    /* ── Signin link ────────────────────────────────── */
    .signin-link {
      text-align: center;
      margin-top: 1.5rem;
      font-size: 0.9rem;
      color: var(--muted);
    }
 
    .signin-link a { color: var(--green); font-weight: 600; text-decoration: none; }
    .signin-link a:hover { text-decoration: underline; }
 
    /* ── Divider ────────────────────────────────────── */
    .section-divider {
      border: none;
      border-top: 1.5px dashed var(--border);
      margin: 2.5rem 0;
    }
 
    /* ── Hint ───────────────────────────────────────── */
    .hint {
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 0.5rem;
      display: flex; align-items: center; gap: 0.3rem;
    }
 
    /* ── Responsive ─────────────────────────────────── */
    @media (max-width: 860px) {
      .shell { grid-template-columns: 1fr; }
      .sidebar { padding: 2rem; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
      .steps, .sidebar-footer { display: none; }
      .brand-tagline { margin-bottom: 0; }
      .main { padding: 2rem; }
    }

/* ── Overflow fix (add to body rule) ────────────────
   Merge this into your existing body {} rule:
   overflow-x: hidden;
   ──────────────────────────────────────────────── */

/* ── Toast notifications ─────────────────────────── */
.toast-shelf {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-notif {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 380px;
  padding: 1rem 1.1rem 1rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.12),
    0 1px 4px rgba(0,0,0,0.06);
  animation: toastIn 0.38s cubic-bezier(.22,.68,0,1.2) both;
  position: relative;
  overflow: hidden;
}

.toast-notif.leaving {
  animation: toastOut 0.32s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(32px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); max-height: 120px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(32px) scale(0.92); max-height: 0; margin-bottom: -0.6rem; }
}

.toast-notif::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  animation: toastProgress linear forwards;
}

.toast-notif.toast-error::after  { background: #ef4444; animation-duration: 5s; }
.toast-notif.toast-success::after { background: var(--green); animation-duration: 3s; }

@keyframes toastProgress {
  from { transform: scaleX(1); transform-origin: left; }
  to   { transform: scaleX(0); transform-origin: left; }
}

.toast-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.toast-error  .toast-icon { background: #fef2f2; color: #ef4444; }
.toast-success .toast-icon { background: var(--green-light); color: var(--green); }

.toast-body { flex: 1; padding-top: 1px; }

.toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0c1a14;
  margin-bottom: 0.2rem;
}

.toast-msg {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.toast-close {
  background: none; border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
  margin-top: -1px;
}

.toast-close:hover { color: #374151; }


/* ── Welcome overlay ─────────────────────────────── */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 26, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.35s ease both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.welcome-card {
  background: #fff;
  border-radius: 24px;
  padding: 3rem 2.75rem 2.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.18),
    0 4px 16px rgba(0,0,0,0.06);
  animation: cardPop 0.45s cubic-bezier(.22,.68,0,1.2) 0.1s both;
  position: relative;
  overflow: hidden;
}

@keyframes cardPop {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), #34d399);
}

.welcome-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(22,163,74,0.32);
  animation: avatarBounce 0.6s cubic-bezier(.22,.68,0,1.2) 0.4s both;
}

@keyframes avatarBounce {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.welcome-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.welcome-name {
  color: var(--green);
}

.welcome-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.welcome-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.welcome-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 50px;
  background: #f3f4f6;
  overflow: hidden;
}

.welcome-progress-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--green), #34d399);
  animation: fillBar 1.8s linear forwards;
}

@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

.welcome-progress-label {
  font-size: 0.78rem;
  color: var(--muted);
}