/* ================================================================
   ROOTS & WINGS — ONBOARDING STYLESHEET
   by iViRTH · raw.ivirth.in
   DM Sans · Blue Scheme · Premium Onboarding
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400;1,9..40,600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Blue palette */
  --rw-blue-950:  #030A1A;
  --rw-blue-900:  #050F2B;
  --rw-blue-800:  #0A1E52;
  --rw-blue-700:  #0F2E7A;
  --rw-blue-600:  #1545B8;
  --rw-blue-500:  #1C5CF5;
  --rw-blue-400:  #4B80FF;
  --rw-blue-300:  #7EAAFF;
  --rw-blue-200:  #B8D0FF;
  --rw-blue-100:  #E0EAFF;
  --rw-blue-50:   #F0F5FF;

  /* Semantic */
  --rw-accent:      #1C5CF5;
  --rw-accent-alt:  #4B80FF;
  --rw-accent-glow: rgba(28,92,245,0.18);
  --rw-success:     #10B981;
  --rw-warning:     #F59E0B;
  --rw-error:       #EF4444;

  /* Surface */
  --rw-bg:          #F4F7FF;
  --rw-surface:     #FFFFFF;
  --rw-surface-2:   #F8FAFF;
  --rw-border:      rgba(28,92,245,0.12);
  --rw-border-mid:  rgba(28,92,245,0.22);
  --rw-border-strong: rgba(28,92,245,0.38);

  /* Sidebar — deep blue dark panel */
  --rw-sidebar:     #040D24;
  --rw-sidebar-2:   #071133;
  --rw-sidebar-text: rgba(255,255,255,0.70);
  --rw-sidebar-muted: rgba(255,255,255,0.38);

  /* Text */
  --rw-text:        #0A1135;
  --rw-text-mid:    #2E3D6B;
  --rw-text-muted:  #647098;

  /* Input */
  --rw-input:       #FFFFFF;
  --rw-input-border: rgba(28,92,245,0.20);
  --rw-input-focus: #1C5CF5;

  /* Typography */
  --rw-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius */
  --rw-r-sm: 8px;
  --rw-r-md: 14px;
  --rw-r-lg: 20px;
  --rw-r-xl: 28px;
  --rw-r-full: 100px;

  /* Shadow */
  --rw-shadow-sm:  0 1px 4px rgba(28,92,245,0.08);
  --rw-shadow-md:  0 4px 20px rgba(28,92,245,0.10);
  --rw-shadow-lg:  0 12px 48px rgba(28,92,245,0.14);
  --rw-shadow-glow: 0 0 0 4px rgba(28,92,245,0.14);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rw-font);
  background: var(--rw-bg);
  color: var(--rw-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rw-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rw-blue-400); }
img, svg { display: block; max-width: 100%; }
button { font-family: var(--rw-font); cursor: pointer; border: none; }
input, select, textarea { font-family: var(--rw-font); }

/* ================================================================
   WELCOME / SPLASH PAGE
   ================================================================ */
.rw-welcome {
  min-height: 100vh;
  background: var(--rw-blue-950);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

/* Ambient orbs */
.rw-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; animation: rwFloat 14s ease-in-out infinite;
}
.rw-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(28,92,245,0.22) 0%, transparent 70%);
  top: -200px; right: -150px; animation-delay: 0s;
}
.rw-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(75,128,255,0.14) 0%, transparent 70%);
  bottom: -100px; left: -100px; animation-delay: -7s;
}
.rw-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(126,170,255,0.10) 0%, transparent 70%);
  top: 40%; left: 35%; animation-delay: -3.5s;
}
@keyframes rwFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.97); }
}

/* Grid texture overlay */
.rw-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(28,92,245,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,92,245,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Top bar */
.rw-topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
}
.rw-logo {
  display: flex; align-items: center;
}
.rw-logo-wordmark {
  height: 34px; width: auto; display: block;
}
.rw-topbar-right {
  display: flex; align-items: center; gap: 16px;
}
.rw-topbar-link {
  font-size: 14px; color: rgba(255,255,255,0.5); transition: color .2s;
}
.rw-topbar-link:hover { color: rgba(255,255,255,0.85); }
.rw-topbar-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 8px 20px; border-radius: var(--rw-r-full);
  transition: all .2s;
}
.rw-topbar-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}

/* Welcome hero */
.rw-welcome-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px 80px;
  position: relative; z-index: 5; text-align: center;
}
.rw-welcome-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(28,92,245,0.18);
  border: 1px solid rgba(28,92,245,0.35);
  color: var(--rw-blue-300); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--rw-r-full);
  margin-bottom: 28px;
}
.rw-welcome-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--rw-blue-400);
  border-radius: 50%;
  animation: rwBlink 2.4s ease-in-out infinite;
}
@keyframes rwBlink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.rw-welcome-h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; color: #fff;
  letter-spacing: -0.045em; line-height: 1.05;
  margin-bottom: 20px; max-width: 860px;
}
.rw-welcome-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--rw-blue-300) 60%, var(--rw-blue-400) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rw-welcome-sub {
  font-size: 18px; color: rgba(255,255,255,0.45);
  max-width: 520px; line-height: 1.65; margin-bottom: 48px;
}
.rw-welcome-cta-group {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.rw-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--rw-blue-600), var(--rw-blue-500));
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 14px 32px; border-radius: var(--rw-r-full);
  box-shadow: 0 4px 24px rgba(28,92,245,0.45);
  transition: all .22s ease;
  border: none; cursor: pointer;
}
.rw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(28,92,245,0.55);
  background: linear-gradient(135deg, var(--rw-blue-500), var(--rw-blue-400));
  color: #fff;
}
.rw-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: var(--rw-r-full);
  transition: all .2s; cursor: pointer;
}
.rw-btn-ghost:hover {
  border-color: rgba(255,255,255,0.38);
  color: #fff; background: rgba(255,255,255,0.06);
}
.rw-welcome-stats {
  display: flex; align-items: center; gap: 36px;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; justify-content: center;
}
.rw-stat-item { text-align: center; }
.rw-stat-num {
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1;
}
.rw-stat-label {
  font-size: 12px; color: rgba(255,255,255,0.38);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.rw-stat-div {
  width: 1px; height: 36px; background: rgba(255,255,255,0.12);
}

/* ================================================================
   SPACE TYPE SELECTION PAGE
   ================================================================ */
.rw-choose {
  min-height: 100vh;
  background: var(--rw-blue-950);
  position: relative; overflow: hidden;
  padding: 0 0 80px;
}
.rw-choose-hero {
  position: relative; z-index: 5;
  text-align: center; padding: 80px 24px 56px;
}
.rw-choose-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(28,92,245,0.16); border: 1px solid rgba(28,92,245,0.32);
  color: var(--rw-blue-300); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 16px; border-radius: var(--rw-r-full); margin-bottom: 20px;
}
.rw-choose-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900;
  color: #fff; letter-spacing: -0.04em; line-height: 1.08;
  margin-bottom: 14px;
}
.rw-choose-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--rw-blue-300), var(--rw-blue-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rw-choose-sub {
  font-size: 16px; color: rgba(255,255,255,0.42);
  max-width: 480px; margin: 0 auto;
}

/* Space type cards */
.rw-space-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1100px; margin: 0 auto;
  padding: 0 24px; position: relative; z-index: 5;
}
.rw-space-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--rw-r-xl); padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
}
.rw-space-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--rw-accent-glow), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.rw-space-card:hover {
  border-color: rgba(28,92,245,0.45);
  background: rgba(28,92,245,0.07);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(28,92,245,0.25);
}
.rw-space-card:hover::before { opacity: 1; }
.rw-space-card--featured {
  border-color: rgba(28,92,245,0.5);
  background: rgba(28,92,245,0.08);
  box-shadow: 0 0 0 1px rgba(28,92,245,0.28), 0 20px 50px rgba(0,0,0,0.4);
}
.rw-space-featured-tag {
  position: absolute; top: 16px; right: -30px;
  background: linear-gradient(135deg, var(--rw-blue-500), var(--rw-blue-400));
  color: #fff; font-size: 9.5px; font-weight: 700;
  padding: 4px 36px; transform: rotate(45deg);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.rw-space-icon {
  width: 52px; height: 52px;
  background: rgba(28,92,245,0.18);
  border: 1px solid rgba(28,92,245,0.28);
  border-radius: var(--rw-r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
  transition: all 0.3s;
}
.rw-space-card:hover .rw-space-icon {
  background: rgba(28,92,245,0.3);
  border-color: rgba(28,92,245,0.5);
  box-shadow: 0 4px 16px rgba(28,92,245,0.3);
}
.rw-space-type-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--rw-blue-300);
  margin-bottom: 8px;
}
.rw-space-card h2 {
  font-size: 1.45rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 10px;
}
.rw-space-card > p {
  font-size: 13.5px; color: rgba(255,255,255,0.42);
  line-height: 1.6; margin-bottom: 20px; flex: 1;
}
.rw-space-feats {
  display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px;
}
.rw-space-feats li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.58); list-style: none;
}
.rw-space-feats li .rw-feat-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(28,92,245,0.25); border: 1px solid rgba(28,92,245,0.45);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rw-space-feats li .rw-feat-check::after {
  content: ''; width: 5px; height: 3px;
  border-left: 1.5px solid var(--rw-blue-300); border-bottom: 1.5px solid var(--rw-blue-300);
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}
.rw-space-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rw-r-md); padding: 12px 16px;
  transition: all 0.2s;
}
.rw-space-card:hover .rw-space-cta {
  background: rgba(28,92,245,0.2);
  border-color: rgba(28,92,245,0.4);
}
.rw-space-cta span { font-size: 13px; font-weight: 600; color: #fff; }
.rw-space-cta-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(28,92,245,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.rw-space-card:hover .rw-space-cta-arrow { transform: translateX(3px); }
.rw-space-cta-arrow svg { width: 14px; height: 14px; color: #fff; }

/* ================================================================
   ONBOARDING SHELL — SIDEBAR + CONTENT
   ================================================================ */
.rw-ob-page {
  min-height: 100vh;
  background: var(--rw-bg);
  display: grid;
  grid-template-columns: 320px 1fr;
}

/* ── Sidebar ── */
.rw-sidebar {
  background: var(--rw-sidebar);
  min-height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; padding: 32px 28px 48px;
}
.rw-sidebar-logo {
  display: flex; align-items: center; margin-bottom: 36px;
}
.rw-sidebar-logo-wordmark {
  height: 28px; width: auto; display: block;
}

.rw-sidebar-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--rw-sidebar-muted);
  margin-bottom: 28px; transition: color 0.2s;
}
.rw-sidebar-back:hover { color: var(--rw-sidebar-text); }

.rw-sidebar-type-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(28,92,245,0.25); border: 1px solid rgba(28,92,245,0.45);
  color: var(--rw-blue-300); font-size: 11.5px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--rw-r-full); margin-bottom: 16px;
}
.rw-sidebar-title {
  font-size: 1.55rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 10px;
}
.rw-sidebar-sub {
  font-size: 13px; color: var(--rw-sidebar-muted);
  line-height: 1.6; margin-bottom: 32px;
}

/* Steps nav */
.rw-steps-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.rw-step-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: var(--rw-r-md);
  transition: background 0.2s; cursor: default;
}
.rw-step-item.active { background: rgba(28,92,245,0.18); }
.rw-step-circle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.38);
  transition: all 0.3s; flex-shrink: 0;
}
.rw-step-item.active .rw-step-circle {
  border-color: var(--rw-blue-400);
  background: rgba(28,92,245,0.35);
  color: var(--rw-blue-300); box-shadow: 0 0 12px rgba(28,92,245,0.4);
}
.rw-step-item.done .rw-step-circle {
  border-color: var(--rw-success);
  background: rgba(16,185,129,0.25);
  color: var(--rw-success);
}
.rw-step-item.done .rw-step-circle::after {
  content: '✓'; font-size: 13px;
}
.rw-step-item.done .rw-step-circle span { display: none; }
.rw-step-label { display: flex; flex-direction: column; gap: 2px; }
.rw-step-label strong {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.rw-step-item.active .rw-step-label strong { color: #fff; }
.rw-step-item.done .rw-step-label strong { color: rgba(255,255,255,0.55); }
.rw-step-label span { font-size: 11px; color: var(--rw-sidebar-muted); }
.rw-step-item.active .rw-step-label span { color: rgba(255,255,255,0.45); }

/* Founder's Cohort sidebar banner */
.rw-founders-banner {
  background: linear-gradient(135deg, rgba(248,193,92,0.16), rgba(248,193,92,0.05));
  border: 1px solid rgba(248,193,92,0.38);
  border-radius: var(--rw-r-lg); padding: 16px 18px; margin-top: auto;
}
.rw-founders-banner-title {
  font-size: 13px; font-weight: 800; color: #f8c15c; margin-bottom: 6px;
}
.rw-founders-banner-text {
  font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.68); margin: 0 0 8px;
}
.rw-founders-banner-text strong { color: rgba(255,255,255,0.92); }
.rw-founders-banner-slots {
  font-size: 11px; font-weight: 700; color: #b7f8dc;
}
.rw-founders-banner-slots strong { color: #77e6bd; }

/* Sidebar estimate card */
.rw-est-card {
  background: rgba(28,92,245,0.12);
  border: 1px solid rgba(28,92,245,0.28);
  border-radius: var(--rw-r-lg); padding: 20px; margin-top: 16px;
}
.rw-est-title {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--rw-blue-300); margin-bottom: 14px;
}
.rw-est-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 8px;
  color: rgba(255,255,255,0.55);
}
.rw-est-row strong { color: rgba(255,255,255,0.80); }
.rw-est-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 12px 0; }
.rw-est-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600; color: #fff;
}
.rw-est-total strong { font-size: 18px; color: var(--rw-blue-300); }
.rw-est-note { font-size: 11px; color: var(--rw-sidebar-muted); margin-top: 8px; }
.rw-est-commission-note {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 11px; line-height: 1.5; color: rgba(252,211,77,0.85);
  background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--rw-r-sm); padding: 9px 10px; margin-top: 10px;
}
.rw-est-commission-note-icon { flex-shrink: 0; font-size: 12px; line-height: 1.5; }
.rw-est-commission-note strong { color: #FCD34D; }

/* ── Content Area ── */
.rw-ob-content {
  display: flex; flex-direction: column;
  min-height: 100vh; overflow-y: auto;
}

/* Progress bar */
.rw-progress-bar {
  height: 3px; background: rgba(28,92,245,0.12);
  position: sticky; top: 0; z-index: 20;
}
.rw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rw-blue-500), var(--rw-blue-400));
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(28,92,245,0.5);
}

/* Form panels */
.rw-form { flex: 1; }
.rw-panel {
  display: none; padding: 52px 56px 40px;
  max-width: 760px;
  animation: rwSlideIn 0.3s ease;
}
.rw-panel.active { display: block; }
@keyframes rwSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rw-panel-step-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--rw-accent); margin-bottom: 10px;
}
.rw-panel h2 {
  font-size: 2rem; font-weight: 800; color: var(--rw-text);
  letter-spacing: -0.035em; margin-bottom: 10px; line-height: 1.15;
}
.rw-panel-desc {
  font-size: 15px; color: var(--rw-text-muted); margin-bottom: 36px; line-height: 1.6;
}

/* Panel actions */
.rw-panel-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--rw-border);
}
.rw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rw-font); font-size: 14.5px; font-weight: 600;
  padding: 12px 28px; border-radius: var(--rw-r-full);
  border: none; cursor: pointer; transition: all 0.22s ease;
}
.rw-btn-cta {
  background: linear-gradient(135deg, var(--rw-blue-600), var(--rw-blue-500));
  color: #fff;
  box-shadow: 0 4px 20px rgba(28,92,245,0.35);
}
.rw-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28,92,245,0.45);
  background: linear-gradient(135deg, var(--rw-blue-500), var(--rw-blue-400));
}
.rw-btn-outline {
  background: transparent; color: var(--rw-text-mid);
  border: 1.5px solid var(--rw-border-mid);
}
.rw-btn-outline:hover {
  border-color: var(--rw-accent); color: var(--rw-accent);
  background: rgba(28,92,245,0.04);
}

/* ================================================================
   FORM FIELD COMPONENTS
   ================================================================ */
.rw-field { margin-bottom: 22px; }
/* Honeypot field — invisible to real users, still present in the DOM for bots
   that don't check computed style. Off-screen positioning (not display:none)
   is the standard technique, since some simple bots skip display:none fields. */
.rw-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.rw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rw-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--rw-text-mid);
  margin-bottom: 8px;
}
.rw-label span { color: var(--rw-error); margin-left: 2px; }
.rw-input, .rw-select, .rw-textarea {
  width: 100%; background: var(--rw-input);
  border: 1.5px solid var(--rw-input-border);
  border-radius: var(--rw-r-md); color: var(--rw-text);
  font-size: 14.5px; padding: 12px 16px;
  transition: all 0.2s;
  appearance: none;
}
.rw-input:focus, .rw-select:focus, .rw-textarea:focus {
  outline: none;
  border-color: var(--rw-input-focus);
  box-shadow: 0 0 0 4px rgba(28,92,245,0.1);
}
.rw-input::placeholder, .rw-textarea::placeholder { color: var(--rw-text-muted); opacity: 0.6; }
.rw-input.error { border-color: var(--rw-error); }
.rw-input.error:focus { box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }
.rw-field-error {
  font-size: 12px; color: var(--rw-error); margin-top: 5px; display: none;
}
.rw-field-hint { font-size: 12px; color: var(--rw-text-muted); margin-top: 5px; }
.rw-textarea { resize: vertical; min-height: 100px; }
.rw-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%231C5CF5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.rw-input-prefix {
  display: flex; align-items: center;
  border: 1.5px solid var(--rw-input-border); border-radius: var(--rw-r-md);
  background: var(--rw-input); overflow: hidden;
  transition: all 0.2s;
}
.rw-input-prefix:focus-within {
  border-color: var(--rw-input-focus);
  box-shadow: 0 0 0 4px rgba(28,92,245,0.1);
}
.rw-prefix-label {
  padding: 12px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--rw-text-muted); border-right: 1.5px solid var(--rw-input-border);
  background: var(--rw-surface-2); flex-shrink: 0;
}
.rw-input-prefix .rw-input {
  border: none; border-radius: 0; background: transparent; box-shadow: none;
}
.rw-input-prefix .rw-input:focus { box-shadow: none; }

/* ── Phone field ── */
.rw-phone-wrap {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--rw-input-border); border-radius: var(--rw-r-md);
  background: var(--rw-input); overflow: hidden; transition: all 0.2s;
}
.rw-phone-wrap:focus-within {
  border-color: var(--rw-input-focus); box-shadow: 0 0 0 4px rgba(28,92,245,0.1);
}
.rw-phone-code {
  padding: 12px 12px; font-size: 13.5px; font-weight: 600;
  color: var(--rw-text-mid); border-right: 1.5px solid var(--rw-input-border);
  background: var(--rw-surface-2); flex-shrink: 0; display: flex; align-items: center; gap: 6px;
}
.rw-phone-input { border: none; background: transparent; width: 100%; padding: 12px 14px; font-size: 14.5px; color: var(--rw-text); }
.rw-phone-input:focus { outline: none; }

/* ── Avatar upload ── */
.rw-avatar-zone {
  display: flex; align-items: center; gap: 24px; margin-bottom: 28px;
}
.rw-avatar-preview {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rw-blue-100), var(--rw-blue-200));
  border: 2px solid var(--rw-border-mid); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.rw-avatar-upload-area {
  flex: 1; border: 2px dashed var(--rw-border-mid);
  border-radius: var(--rw-r-md); padding: 16px 20px;
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.rw-avatar-upload-area:hover {
  border-color: var(--rw-accent);
  background: rgba(28,92,245,0.03);
}
.rw-avatar-upload-area p { font-size: 13px; color: var(--rw-text-muted); margin: 0; }
.rw-avatar-upload-area strong { color: var(--rw-accent); }

/* ── OTP / Verification ── */
.rw-otp-group {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px;
}
.rw-otp-input {
  width: 52px; height: 58px; border: 1.5px solid var(--rw-input-border);
  border-radius: var(--rw-r-md); background: var(--rw-input);
  font-size: 22px; font-weight: 700; color: var(--rw-text);
  text-align: center; transition: all 0.2s;
}
.rw-otp-input:focus {
  outline: none; border-color: var(--rw-accent);
  box-shadow: 0 0 0 4px rgba(28,92,245,0.1);
}
.rw-otp-input.filled { border-color: var(--rw-accent); background: var(--rw-blue-50); }
.rw-otp-dash { color: var(--rw-text-muted); font-size: 18px; }
.rw-verify-status {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--rw-r-md);
  font-size: 13px; font-weight: 500; margin-top: 12px;
}
.rw-verify-status.pending {
  background: rgba(245,158,11,0.1); color: #92400E;
  border: 1px solid rgba(245,158,11,0.25);
}
.rw-verify-status.success {
  background: rgba(16,185,129,0.1); color: #065F46;
  border: 1px solid rgba(16,185,129,0.25);
}
.rw-verify-status.error {
  background: rgba(239,68,68,0.1); color: #7F1D1D;
  border: 1px solid rgba(239,68,68,0.25);
}
.rw-resend-link {
  font-size: 13px; color: var(--rw-accent); cursor: pointer;
  background: none; border: none; text-decoration: underline; margin-top: 10px; display: inline-block;
}

/* ── Toggle / Checkbox / Radio ── */
.rw-check-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; padding: 2px 0;
}
.rw-checkbox {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--rw-input-border); background: var(--rw-input);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; transition: all 0.2s;
}
input[type="checkbox"]:checked + .rw-checkbox,
.rw-checkbox.checked {
  background: var(--rw-accent); border-color: var(--rw-accent);
  box-shadow: 0 2px 8px rgba(28,92,245,0.35);
}
.rw-checkbox::after {
  content: ''; width: 6px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity 0.15s;
}
input[type="checkbox"]:checked + .rw-checkbox::after,
.rw-checkbox.checked::after { opacity: 1; }
.rw-check-text { font-size: 14px; color: var(--rw-text-mid); line-height: 1.5; }
.rw-check-text a { color: var(--rw-accent); font-weight: 500; }
input[type="checkbox"], input[type="radio"] { display: none; }

/* ── Option cards (radio-style) ── */
.rw-option-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px;
}
.rw-option-card {
  border: 1.5px solid var(--rw-border);
  background: var(--rw-surface); border-radius: var(--rw-r-lg);
  padding: 20px 20px; cursor: pointer; transition: all 0.2s; position: relative;
}
.rw-option-card:hover {
  border-color: var(--rw-border-mid);
  box-shadow: var(--rw-shadow-md);
}
.rw-option-card.selected {
  border-color: var(--rw-accent);
  background: var(--rw-blue-50);
  box-shadow: 0 0 0 4px rgba(28,92,245,0.08);
}
.rw-option-card-check {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rw-input-border);
  background: var(--rw-input); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.rw-option-card.selected .rw-option-card-check {
  border-color: var(--rw-accent); background: var(--rw-accent);
}
.rw-option-card.selected .rw-option-card-check::after {
  content: ''; width: 5px; height: 3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}
.rw-option-icon { font-size: 1.6rem; margin-bottom: 10px; }
.rw-option-title {
  font-size: 14.5px; font-weight: 700; color: var(--rw-text); margin-bottom: 5px;
}
.rw-option-sub { font-size: 12.5px; color: var(--rw-text-muted); line-height: 1.5; }
.rw-option-rec {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--rw-accent);
  background: rgba(28,92,245,0.1); border-radius: var(--rw-r-full);
  padding: 2px 9px; margin-bottom: 8px;
}

/* ── Feature toggles ── */
.rw-module-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rw-module-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--rw-surface); border: 1.5px solid var(--rw-border);
  border-radius: var(--rw-r-lg); padding: 16px 18px; cursor: pointer;
  transition: all 0.2s;
}
.rw-module-row:hover { border-color: var(--rw-border-mid); box-shadow: var(--rw-shadow-sm); }
.rw-module-row.selected {
  border-color: var(--rw-accent);
  background: var(--rw-blue-50);
}
.rw-module-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--rw-r-sm);
  background: var(--rw-blue-50); border: 1px solid var(--rw-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; transition: all 0.2s;
}
.rw-module-row.selected .rw-module-icon-wrap {
  background: rgba(28,92,245,0.12); border-color: rgba(28,92,245,0.28);
}
.rw-module-info { flex: 1; }
.rw-module-name { font-size: 14px; font-weight: 700; color: var(--rw-text); margin-bottom: 3px; }
.rw-module-desc { font-size: 12.5px; color: var(--rw-text-muted); line-height: 1.4; }
.rw-module-toggle {
  width: 44px; height: 26px; border-radius: var(--rw-r-full);
  background: var(--rw-border-mid); position: relative; flex-shrink: 0;
  transition: background 0.25s;
}
.rw-module-row.selected .rw-module-toggle { background: var(--rw-accent); }
.rw-module-toggle::after {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}
.rw-module-row.selected .rw-module-toggle::after { transform: translateX(18px); }

/* ── Info banner ── */
.rw-info-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(28,92,245,0.07); border: 1px solid rgba(28,92,245,0.18);
  border-radius: var(--rw-r-md); padding: 14px 16px; margin-bottom: 24px;
}
.rw-info-banner-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.rw-info-banner p { font-size: 13px; color: var(--rw-text-mid); line-height: 1.55; margin: 0; }
.rw-info-banner strong { color: var(--rw-text); }

/* ── Commission confirmation box (compulsory) ── */
.rw-commission-box {
  background: linear-gradient(135deg, rgba(245,158,11,0.09), rgba(245,158,11,0.03));
  border: 1.5px solid rgba(245,158,11,0.34);
  border-radius: var(--rw-r-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.rw-commission-box.ob-box-error {
  border-color: var(--rw-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.rw-commission-box-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.rw-commission-box-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 11px;
  background: rgba(245,158,11,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.rw-commission-box-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #B45309; margin-bottom: 3px;
}
.rw-commission-box-rate {
  font-size: 25px; font-weight: 900; color: var(--rw-text); letter-spacing: -0.02em;
}
.rw-commission-box-rate span {
  font-size: 13.5px; font-weight: 700; color: var(--rw-text-muted); margin-left: 3px;
}
.rw-commission-box-desc {
  font-size: 13.5px; color: var(--rw-text-mid); line-height: 1.65; margin: 0 0 16px;
}
.rw-commission-box .rw-check-label {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--rw-r-md);
  padding: 13px 15px;
  transition: background .2s;
}
.rw-commission-box .rw-check-label:hover { background: rgba(255,255,255,0.85); }
/* Visible error state for checkboxes (input itself is display:none) */
input[type="checkbox"].ob-error + .rw-checkbox {
  border-color: var(--rw-error) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* ── Review summary ── */
.rw-review-section { margin-bottom: 28px; }
.rw-review-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rw-text-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.rw-review-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--rw-border);
}
.rw-review-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rw-border);
  font-size: 13.5px;
}
.rw-review-row:last-child { border-bottom: none; }
.rw-review-row label { color: var(--rw-text-muted); }
.rw-review-row span { color: var(--rw-text); font-weight: 500; }
.rw-review-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--rw-blue-50), rgba(28,92,245,0.06));
  border: 1.5px solid var(--rw-border-mid);
  border-radius: var(--rw-r-md); margin-top: 12px;
}
.rw-review-total-row label { font-size: 14px; font-weight: 600; color: var(--rw-text); }
.rw-review-total-row span { font-size: 20px; font-weight: 800; color: var(--rw-accent); }

/* ── Success / Activation ── */
.rw-success-page {
  min-height: 100vh; background: var(--rw-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px; position: relative; overflow: hidden;
}
.rw-success-orb-1 {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(28,92,245,0.12) 0%, transparent 70%);
  top: -200px; right: -150px; pointer-events: none;
}
.rw-success-orb-2 {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px; pointer-events: none;
}
.rw-success-card {
  background: var(--rw-surface); border: 1.5px solid var(--rw-border);
  border-radius: 28px; padding: 64px 56px;
  text-align: center; max-width: 560px; width: 100%;
  position: relative; z-index: 5;
  box-shadow: var(--rw-shadow-lg);
}
.rw-success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.08));
  border: 2px solid rgba(16,185,129,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 28px;
  box-shadow: 0 0 0 8px rgba(16,185,129,0.06);
}
.rw-success-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: #059669; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 14px; border-radius: var(--rw-r-full);
  margin-bottom: 16px;
}
.rw-success-h1 {
  font-size: 2.2rem; font-weight: 900; color: var(--rw-text);
  letter-spacing: -0.04em; margin-bottom: 12px;
}
.rw-success-sub {
  font-size: 15px; color: var(--rw-text-muted); line-height: 1.65; margin-bottom: 36px;
}
.rw-success-next-steps {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px; text-align: left;
}
.rw-next-step-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--rw-surface-2); border: 1px solid var(--rw-border);
  border-radius: var(--rw-r-md); padding: 14px 16px;
}
.rw-next-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rw-blue-600), var(--rw-blue-500));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rw-next-step-text { font-size: 13px; color: var(--rw-text-mid); font-weight: 500; }

/* ── Referral program ── */
.rw-referral-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.30);
  border-radius: var(--rw-r-md);
  padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; color: var(--rw-text-mid); font-weight: 500;
}
.rw-referral-banner-icon { font-size: 18px; flex-shrink: 0; }
.rw-referral-banner strong { color: var(--rw-success); font-weight: 700; letter-spacing: 0.01em; }

.rw-referral-box {
  text-align: left;
  background: var(--rw-surface-2);
  border: 1.5px solid var(--rw-border-mid);
  border-radius: var(--rw-r-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.rw-referral-box-title { font-size: 15px; font-weight: 800; color: var(--rw-text); margin-bottom: 6px; }
.rw-referral-box-desc { font-size: 12.5px; color: var(--rw-text-muted); line-height: 1.55; margin-bottom: 16px; }
.rw-referral-code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--rw-surface); border: 1px solid var(--rw-border);
  border-radius: var(--rw-r-sm); padding: 10px 14px; margin-bottom: 10px;
}
.rw-referral-code-row code {
  font-family: 'DM Sans', monospace; font-size: 13px; font-weight: 700;
  color: var(--rw-accent); letter-spacing: 0.02em; word-break: break-all;
}
.rw-referral-copy-btn {
  flex-shrink: 0; font-family: var(--rw-font); font-size: 12.5px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--rw-blue-600), var(--rw-blue-500));
  border: none; border-radius: var(--rw-r-full); padding: 8px 16px; cursor: pointer;
  transition: transform 0.2s ease;
}
.rw-referral-copy-btn:hover { transform: translateY(-1px); }
.rw-referral-link-input {
  width: 100%; font-size: 12px; color: var(--rw-text-muted);
  background: var(--rw-surface); border: 1px solid var(--rw-border);
  border-radius: var(--rw-r-sm); padding: 9px 12px; margin-bottom: 12px;
}
.rw-referral-wa-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; font-size: 13.5px; font-weight: 700; text-decoration: none;
  color: #059669; background: rgba(16,185,129,0.10);
  border: 1.5px solid rgba(16,185,129,0.30);
  border-radius: var(--rw-r-full); padding: 10px 16px;
  transition: background 0.2s ease;
}
.rw-referral-wa-btn:hover { background: rgba(16,185,129,0.18); }

.rw-referral-lookup-card {
  background: var(--rw-surface); border: 1.5px solid var(--rw-border);
  border-radius: var(--rw-r-xl); padding: 32px 28px;
  box-shadow: var(--rw-shadow-md);
}
.rw-lookup-msg {
  font-size: 13px; font-weight: 600; color: var(--rw-error);
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22);
  border-radius: var(--rw-r-sm); padding: 10px 14px; margin-bottom: 16px;
}
.rw-lookup-msg-error { color: var(--rw-error); }

/* ── Password strength indicator ── */
.rw-pw-strength { margin-top: 8px; }
.rw-pw-bar-track {
  height: 4px; background: var(--rw-border); border-radius: 2px;
  margin-bottom: 6px; overflow: hidden;
}
.rw-pw-bar-fill {
  height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s;
}
.rw-pw-label { font-size: 11.5px; color: var(--rw-text-muted); }

/* ── Tag chips ── */
.rw-chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rw-chip {
  padding: 6px 14px; border-radius: var(--rw-r-full);
  border: 1.5px solid var(--rw-border); background: var(--rw-surface);
  font-size: 13px; color: var(--rw-text-mid); cursor: pointer; transition: all 0.18s;
}
.rw-chip:hover { border-color: var(--rw-accent); color: var(--rw-accent); }
.rw-chip.active {
  border-color: var(--rw-accent); background: rgba(28,92,245,0.08);
  color: var(--rw-accent); font-weight: 600;
}

/* ── Section dividers ── */
.rw-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--rw-text-muted); margin-bottom: 18px;
  margin-top: 32px; display: flex; align-items: center; gap: 10px;
}
.rw-section-label::before, .rw-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--rw-border);
}

/* ── Color swatches ── */
.rw-swatch-group { display: flex; gap: 10px; flex-wrap: wrap; }
.rw-swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all 0.2s;
  position: relative;
}
.rw-swatch.selected { border-color: var(--rw-accent); }
.rw-swatch.selected::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 700;
}

/* ── Loading spinner ── */
@keyframes rwSpin { to { transform: rotate(360deg); } }
.rw-spinner {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: rwSpin 0.7s linear infinite;
}

/* ── Workspace name preview ── */
.rw-workspace-preview {
  background: var(--rw-blue-50); border: 1.5px solid var(--rw-border-mid);
  border-radius: var(--rw-r-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.rw-workspace-preview-url {
  font-size: 13.5px; color: var(--rw-accent); font-weight: 500; word-break: break-all;
}

/* ============================================================
   REFERENCE-STYLE ONBOARDING LAYER
   Adds the ob-* visual system used by the standalone onboarding
   reference while keeping the existing RAW form markup functional.
   ============================================================ */

.ob-body {
  background: #07111f;
  color: #fff;
}

.ob-choose-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 21, 38, 0.98), rgba(10, 28, 48, 0.96) 44%, rgba(21, 37, 35, 0.94)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 96px);
}

.ob-choose-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.ob-choose-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.ob-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 700;
}

.ob-back::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(42% 12%, 50% 20%, 26% 44%, 92% 44%, 92% 56%, 26% 56%, 50% 80%, 42% 88%, 4% 50%);
}

.ob-back:hover {
  color: #fff;
}

.ob-step-badge,
.ob-type-badge,
.ob-featured-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rw-r-full);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ob-step-badge {
  margin-bottom: 18px;
  padding: 8px 16px;
  color: #b7f8dc;
  background: rgba(21, 128, 94, 0.18);
  border: 1px solid rgba(94, 234, 212, 0.24);
}

.ob-choose-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 4.9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.ob-choose-header h1 em {
  font-style: normal;
  color: #77e6bd;
}

.ob-choose-header p {
  max-width: 670px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.7;
}

.ob-promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: var(--rw-r-full);
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.ob-promo-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f8c15c;
  box-shadow: 0 0 0 5px rgba(248,193,92,0.16);
}

.ob-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ob-type-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  backdrop-filter: blur(20px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.ob-type-card:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(119,230,189,0.55);
  background: rgba(255,255,255,0.12);
}

.ob-type-card--featured {
  border-color: rgba(248,193,92,0.48);
}

.ob-featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  color: #231a08;
  background: #f8c15c;
}

.ob-type-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 1.7rem;
}

.ob-type-badge {
  align-self: flex-start;
  padding: 7px 11px;
  color: #9ee8cd;
  background: rgba(21,128,94,0.18);
  border: 1px solid rgba(94,234,212,0.22);
}

.ob-type-cohort-tag {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #f8c15c;
}

.ob-type-card h2 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0;
}

.ob-type-card p {
  margin: 0 0 20px;
  color: rgba(255,255,255,0.68);
  font-size: 14.5px;
  line-height: 1.7;
}

.ob-type-features {
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ob-type-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  line-height: 1.45;
}

.ob-type-features li span {
  color: #77e6bd;
  font-weight: 900;
}

.ob-type-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.ob-promo-price {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 900;
}

.ob-orig-price {
  color: rgba(255,255,255,0.38);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: line-through;
}

.ob-type-price small {
  color: rgba(255,255,255,0.56);
  font-size: 12px;
  font-weight: 700;
}

.ob-type-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #f8c15c;
  color: #201806;
  font-weight: 900;
}

.ob-type-cta span {
  font-size: 16px;
}

.ob-choose-footer {
  margin: 28px 0 0;
  color: rgba(255,255,255,0.62);
  text-align: center;
  line-height: 1.6;
}

.ob-choose-footer a {
  color: #9ee8cd;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ob-main .rw-sidebar {
  background:
    linear-gradient(180deg, rgba(5,16,32,0.98), rgba(9,28,46,0.98) 58%, rgba(22,40,36,0.98));
}

.ob-main .rw-sidebar-type-badge {
  color: #9ee8cd;
  background: rgba(21,128,94,0.18);
  border-color: rgba(94,234,212,0.22);
}

.ob-main .rw-step-item.active {
  background: rgba(21,128,94,0.22);
}

.ob-main .rw-step-item.active .rw-step-circle {
  border-color: #77e6bd;
  color: #9ee8cd;
  box-shadow: 0 0 16px rgba(119,230,189,0.3);
}

.ob-main .rw-est-total strong,
.ob-main .rw-est-title {
  color: #9ee8cd;
}

.ob-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

.ob-cost-row strong {
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}

.ob-error,
.rw-input.ob-error,
.rw-select.ob-error,
.rw-textarea.ob-error {
  border-color: var(--rw-error) !important;
}

.ob-field-error.show,
.rw-field-error.show {
  display: block;
}

.ob-review-sections {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.ob-review-block {
  overflow: hidden;
  border: 1.5px solid var(--rw-border);
  border-radius: 8px;
  background: var(--rw-surface);
}

.ob-review-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--rw-surface-2);
  border-bottom: 1px solid var(--rw-border);
}

.ob-review-block-header h4 {
  margin: 0;
  color: var(--rw-text);
  font-size: 14px;
  font-weight: 900;
}

.ob-review-edit {
  color: var(--rw-accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.ob-review-rows {
  padding: 8px 16px;
}

.ob-review-row,
.ob-review-total-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rw-border);
  font-size: 13.5px;
}

.ob-review-row:last-child {
  border-bottom: 0;
}

.ob-review-row span,
.ob-review-total-row span {
  color: var(--rw-text-muted);
}

.ob-review-row strong,
.ob-review-total-row strong {
  color: var(--rw-text);
  text-align: right;
}

.ob-review-total {
  padding: 16px;
  border: 1.5px solid rgba(21,128,94,0.24);
  border-radius: 8px;
  background: rgba(21,128,94,0.08);
}

.ob-review-total-row {
  padding: 0;
  border-bottom: 0;
}

.ob-review-total-row strong {
  color: #157a5a;
  font-size: 20px;
  font-weight: 900;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rw-ob-page { grid-template-columns: 280px 1fr; }
  .rw-panel { padding: 40px 36px 32px; }
}
@media (max-width: 768px) {
  .rw-ob-page { grid-template-columns: 1fr; }
  .rw-sidebar { min-height: auto; position: static; }
  .rw-steps-nav { display: none; }
  .ob-choose-inner { width: min(100% - 28px, 520px); padding: 34px 0 44px; }
  .ob-choose-header { margin-bottom: 24px; }
  .ob-choose-header h1 { font-size: 2.65rem; line-height: 1; }
  .ob-choose-header p { font-size: 15px; }
  .ob-promo-banner { align-items: flex-start; border-radius: 8px; text-align: left; }
  .ob-type-grid { grid-template-columns: 1fr; gap: 18px; }
  .ob-type-card { padding: 24px; }
  .rw-space-grid { grid-template-columns: 1fr; max-width: 460px; }
  .rw-option-grid { grid-template-columns: 1fr; }
  .rw-field-row { grid-template-columns: 1fr; }
  .rw-panel { padding: 32px 24px 24px; }
  .rw-topbar { padding: 18px 20px; }
  .rw-success-card { padding: 44px 28px; }
  .rw-welcome-h1 { font-size: 2.4rem; }
  .rw-welcome-stats { gap: 20px; }
  .rw-commission-box { padding: 18px; }
  .rw-commission-box-head { gap: 12px; }
}
