*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:     #0B1D3E;
  --blue:     #1A56DB;
  --orange:   #E85D26;
  --white:    #FFFFFF;
  --gray-50:  #F8F9FB;
  --gray-100: #F0F2F5;
  --gray-200: #E2E6ED;
  --gray-300: #CDD3DC;
  --gray-400: #9AA3B0;
  --gray-600: #5A6478;
  --gray-800: #1E2533;
  --green:    #059669;
  --red:      #DC2626;
  --radius:   12px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.11);
  --font:     'Inter', sans-serif;
  --font-d:   'Manrope', sans-serif;
  --t:        .2s ease;
}
html, body { height: 100%; font-family: var(--font); -webkit-font-smoothing: antialiased; color: var(--gray-800); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── WRAPPER ─────────────────────────────────── */
.rp-wrapper { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ── LEFT PANEL ──────────────────────────────── */
.rp-left {
  background: var(--navy); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 48px 52px;
}
.rp-left-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 36px; max-width: 400px; width: 100%; }
.rp-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.rp-badge {
  display: inline-block; background: rgba(26,86,219,.25); color: #60A5FA;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
}
.rp-hero h2 {
  font-family: var(--font-d); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  color: white; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 12px;
}
.rp-hero h2 span { color: #60A5FA; }
.rp-hero p { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.7; }
.rp-features { display: flex; flex-direction: column; gap: 18px; }
.rp-feature { display: flex; align-items: flex-start; gap: 14px; }
.rp-feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(26,86,219,.25); border: 1px solid rgba(26,86,219,.4);
  display: flex; align-items: center; justify-content: center;
  color: #60A5FA; flex-shrink: 0;
}
.rp-feature-title { font-weight: 700; font-size: .875rem; color: white; margin-bottom: 2px; }
.rp-feature-sub { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.5; }
.rp-deco-1 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(26,86,219,.1); top: -140px; right: -140px; }
.rp-deco-2 { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(232,93,38,.08); bottom: -60px; left: -60px; }

/* ── RIGHT PANEL ─────────────────────────────── */
.rp-right {
  background: var(--white); overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 40px;
}
.rp-right-inner { width: 100%; max-width: 460px; }

/* ── STEP BAR ────────────────────────────────── */
.step-bar {
  display: flex; align-items: center; margin-bottom: 36px;
}
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--gray-400);
  transition: all .3s;
}
.step-item.active .step-circle { border-color: var(--blue); background: var(--blue); color: white; }
.step-item.done .step-circle { border-color: var(--green); background: var(--green); color: white; }
.step-label { font-size: .72rem; font-weight: 600; color: var(--gray-400); white-space: nowrap; transition: color .3s; }
.step-item.active .step-label { color: var(--blue); }
.step-item.done .step-label { color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; margin-bottom: 18px; transition: background .3s; }
.step-line.done { background: var(--green); }

/* ── STEP PANELS ─────────────────────────────── */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-title { font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; color: var(--gray-800); letter-spacing: -.3px; margin-bottom: 6px; }
.step-sub { color: var(--gray-400); font-size: .875rem; margin-bottom: 28px; }

/* ── FORM ────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; display: block; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 13px; color: var(--gray-400); display: flex; align-items: center; pointer-events: none; }
.form-input {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: 9px;
  padding: 11px 14px 11px 40px; font-family: var(--font); font-size: .875rem;
  color: var(--gray-800); background: var(--white); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-select { padding-left: 40px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.select-wrap::after {
  content: ''; position: absolute; right: 14px;
  width: 8px; height: 8px; border-right: 1.5px solid var(--gray-400);
  border-bottom: 1.5px solid var(--gray-400); transform: rotate(45deg) translateY(-3px);
  pointer-events: none;
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.form-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.input-prefix .form-input { padding-left: 28px; }
.input-pre { position: absolute; left: 12px; color: var(--gray-600); font-weight: 600; font-size: .875rem; }
.form-textarea {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: 9px;
  padding: 11px 14px; font-family: var(--font); font-size: .875rem;
  color: var(--gray-800); outline: none; resize: vertical;
  transition: border-color var(--t), box-shadow var(--t); min-height: 80px;
}
.form-textarea::placeholder { color: var(--gray-400); }
.form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.char-count-sm { font-size: .7rem; color: var(--gray-400); }
.field-error { font-size: .75rem; color: var(--red); min-height: 16px; display: block; margin-top: 5px; }

/* Chip options */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt-card { cursor: pointer; }
.opt-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-inner {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: 20px;
  font-size: .82rem; font-weight: 600; color: var(--gray-600);
  transition: all var(--t);
}
.opt-card input:checked + .opt-inner { border-color: var(--blue); background: rgba(26,86,219,.06); color: var(--blue); }

/* Budget row */
.budget-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.budget-sep { color: var(--gray-400); font-size: .82rem; font-weight: 500; text-align: center; }

/* Buttons */
.btn-next {
  width: 100%; background: var(--blue); color: white;
  font-size: .9rem; font-weight: 700; padding: 13px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity var(--t); margin-top: 8px;
}
.btn-next:hover { opacity: .88; }
.btn-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 8px; }
.btn-back {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 18px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); color: var(--gray-600);
  font-size: .875rem; font-weight: 600;
  transition: border-color var(--t), color var(--t);
}
.btn-back:hover { border-color: var(--blue); color: var(--blue); }
.btn-finish { width: 100%; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Photo upload */
.photo-upload-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; }
.photo-circle {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px dashed var(--gray-200); background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: border-color var(--t);
}
.photo-circle.has-photo { border-style: solid; border-color: var(--blue); }
.photo-placeholder { display: flex; align-items: center; justify-content: center; }
.btn-upload-photo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  border: 1.5px solid var(--blue); color: var(--blue);
  font-size: .82rem; font-weight: 700;
  transition: background var(--t);
}
.btn-upload-photo:hover { background: rgba(26,86,219,.05); }
.photo-note { font-size: .74rem; color: var(--gray-400); }

/* Preview card */
.preview-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; margin-bottom: 24px;
}
.preview-card-label { font-size: .72rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.preview-card-inner { display: flex; align-items: center; gap: 14px; }
.preview-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1rem; flex-shrink: 0; overflow: hidden;
}
.preview-name { font-weight: 700; font-size: .95rem; color: var(--gray-800); margin-bottom: 2px; }
.preview-uni { font-size: .78rem; color: var(--gray-400); margin-bottom: 7px; }
.preview-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-tag {
  background: rgba(26,86,219,.08); color: var(--blue);
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}

.skip-link { text-align: center; margin-top: 14px; }
.skip-link button { font-size: .8rem; color: var(--gray-400); font-weight: 500; transition: color var(--t); }
.skip-link button:hover { color: var(--blue); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 820px) {
  .rp-wrapper { grid-template-columns: 1fr; }
  .rp-left { padding: 32px 28px; min-height: auto; }
  .rp-right { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .budget-row { grid-template-columns: 1fr auto 1fr; }
  .btn-row { grid-template-columns: auto 1fr; }
}