:root {
  --primary:#E8630A; --primary-dark:#C0510A; --secondary:#1A3A5C;
  --accent:#F5A623; --bg:#F2EDE6; --card:#FFFFFF; --text:#1C2B3A;
  --muted:#6B7C8D; --success:#2D9E6B; --border:#E2D9CE;
}

* { box-sizing: border-box; }
body {
  margin:0;
  min-height:100vh;
  font-family:'Barlow',sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle 300px at 7% 18%, rgba(232,99,10,.30) 0%, rgba(245,166,35,.18) 35%, transparent 72%),
    radial-gradient(circle 380px at 93% 78%, rgba(245,166,35,.31) 0%, rgba(232,99,10,.15) 40%, transparent 74%),
    radial-gradient(circle 220px at 79% 25%, rgba(232,99,10,.18) 0%, transparent 72%),
    radial-gradient(circle 150px at 38% 7%, rgba(245,166,35,.24) 0%, transparent 72%),
    radial-gradient(circle 180px at 13% 82%, rgba(232,99,10,.22) 0%, transparent 72%),
    radial-gradient(circle 115px at 63% 56%, rgba(245,166,35,.20) 0%, transparent 72%),
    radial-gradient(circle 95px at 97% 38%, rgba(232,99,10,.24) 0%, transparent 72%),
    var(--bg);
  background-attachment:fixed;
}

/* TOP BAR */
.top-bar { background:var(--secondary); padding:16px 40px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-family:'Nunito',sans-serif; font-weight:900; font-size:26px; color:white; letter-spacing:-0.5px; text-decoration:none; }
.logo span { color:var(--accent); }
.login-link { color:rgba(255,255,255,0.7); font-size:14px; font-weight:600; font-family:'Nunito',sans-serif; text-decoration:none; display:flex; align-items:center; gap:7px; }
.login-link:hover { color:white; }

/* PAGE WRAPPER - Optimized for responsive */
.page-wrapper { 
  display:flex; 
  align-items:flex-start; 
  justify-content:center; 
  padding:32px 20px 60px; 
  gap:20px;
  max-width:1200px; 
  margin:0 auto; 
}

/* LEFT INFO PANEL - MINIMIZED & RESPONSIVE */
.info-panel { 
  width:220px; 
  min-width:220px;
  flex:0 0 220px;
  position:sticky; 
  top:30px; 
  flex-basis:220px;
}

.info-card { 
  background:var(--secondary); 
  border-radius:20px; 
  padding:24px 20px;
  color:white; 
  position:relative; 
  overflow:hidden;
  height:fit-content;
}

.info-card::before { 
  content:''; 
  position:absolute; 
  top:-50px; 
  right:-50px; 
  width:180px;
  height:180px; 
  background:radial-gradient(circle,rgba(232,99,10,0.3) 0%,transparent 70%); 
  border-radius:50%; 
}

.info-title { 
  font-family:'Nunito',sans-serif; 
  font-weight:900; 
  font-size:18px;
  margin-bottom:8px; 
  position:relative; 
  z-index:1; 
  line-height:1.2;
}
.info-title span { color:var(--accent); }

.info-sub { 
  font-size:12px;
  color:rgba(255,255,255,0.6); 
  margin-bottom:18px;
  line-height:1.4; 
  position:relative; 
  z-index:1; 
}

/* Role toggle on sidebar - Compact */
.role-toggle { 
  display:flex; 
  gap:6px;
  margin-bottom:18px;
  position:relative; 
  z-index:1; 
}
.role-toggle-btn { 
  flex:1; 
  padding:8px 6px;
  border-radius:10px; 
  border:1.5px solid rgba(255,255,255,0.2); 
  background:rgba(255,255,255,0.07); 
  color:rgba(255,255,255,0.6); 
  font-family:'Nunito',sans-serif; 
  font-weight:700; 
  font-size:11px;
  cursor:pointer; 
  text-align:center; 
  transition:all 0.2s; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:5px;
}
.role-toggle-btn.active { 
  background:var(--primary); 
  border-color:var(--primary); 
  color:white; 
}

/* Steps - Ultra compact */
.step-list { 
  display:flex; 
  flex-direction:column; 
  gap:2px;
  position:relative; 
  z-index:1; 
}
.step-item { 
  display:flex; 
  align-items:flex-start; 
  gap:12px;
  position:relative; 
  padding-bottom:16px;
}
.step-item:last-child { padding-bottom:0; }
.step-item::before { 
  content:''; 
  position:absolute; 
  left:15px;
  top:30px;
  width:2px; 
  height:calc(100% - 30px); 
  background:rgba(255,255,255,0.1); 
}
.step-item:last-child::before { display:none; }

.step-num { 
  width:30px;
  height:30px; 
  border-radius:50%; 
  background:rgba(255,255,255,0.1); 
  border:1.5px solid rgba(255,255,255,0.2); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-family:'Nunito',sans-serif; 
  font-weight:800; 
  font-size:12px;
  color:rgba(255,255,255,0.6); 
  flex-shrink:0; 
  transition:all 0.3s; 
}
.step-num.active { background:var(--primary); border-color:var(--primary); color:white; }
.step-num.done { background:var(--success); border-color:var(--success); color:white; }

.step-label { 
  font-family:'Nunito',sans-serif; 
  font-weight:700; 
  font-size:12px;
  color:rgba(255,255,255,0.7); 
  margin-top:4px;
}
.step-label.active { color:white; }
.step-sub { 
  font-size:10px;
  color:rgba(255,255,255,0.45); 
  margin-top:2px; 
}

.benefits { 
  margin-top:16px;
}
.benefit-item { 
  display:flex; 
  align-items:center; 
  gap:8px;
  padding:6px 0;
  font-size:12px;
  color:rgba(255,255,255,0.65); 
  border-bottom:1px solid rgba(255,255,255,0.07); 
}
.benefit-item:last-child { border:none; }

/* FORM CARD - More breathing room */
.form-card { 
  flex:1; 
  background:white; 
  border-radius:22px; 
  padding:36px; 
  border:1.5px solid var(--border); 
  box-shadow:0 4px 24px rgba(0,0,0,0.06); 
  min-width:0; 
  max-width:520px;
}

/* Progress */
.progress-wrap {
  margin-bottom:28px;
}
.progress-labels {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:8px;
}
.progress-label {
  font-family:'Nunito',sans-serif;
  font-weight:700;
  font-size:12px;
  color:var(--muted);
  text-align:center;
  white-space:nowrap;
}
.progress-label.active {
  color:var(--primary);
}
.progress-label.done {
  color:var(--success);
}
.progress-bar-track {
  height:6px;
  background:var(--border);
  border-radius:999px;
  overflow:hidden;
}
.progress-bar-fill {
  height:100%;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  border-radius:999px;
  transition:width 0.4s ease;
}

/* Section headings */
.section-badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#FFF1E8;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  padding:5px 13px;
  border-radius:20px;
  border:1px solid #F5C9A8;
  font-family:'Nunito',sans-serif;
  margin-bottom:10px;
}
.section-title {
  font-family:'Nunito',sans-serif;
  font-weight:900;
  font-size:22px;
  color:var(--text);
  margin-bottom:4px;
}
.section-sub {
  font-size:14px;
  color:var(--muted);
  margin-bottom:26px;
}

/* Role chooser */
.role-chooser {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-bottom:28px;
}
.role-choice {
  border:2px solid var(--border);
  border-radius:14px;
  padding:20px 14px;
  cursor:pointer;
  transition:all 0.2s;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:var(--bg);
  position:relative;
}
.role-choice:hover {
  border-color:var(--primary);
  background:#FFF1E8;
}
.role-choice.selected {
  border-color:var(--primary);
  background:#FFF1E8;
  box-shadow:0 0 0 3px rgba(232,99,10,0.12);
}
.role-choice.selected::after {
  content:'✓';
  position:absolute;
  top:8px;
  right:10px;
  font-size:12px;
  font-weight:800;
  color:var(--primary);
  font-family:'Nunito',sans-serif;
}
.role-choice-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:rgba(232,99,10,0.1);
  border-radius:12px;
  color:var(--primary);
}
.role-choice-name {
  font-family:'Nunito',sans-serif;
  font-weight:800;
  font-size:14px;
  color:var(--text);
}
.role-choice-desc {
  font-size:12px;
  color:var(--muted);
  text-align:center;
  line-height:1.4;
}

/* Inputs */
.form-group-custom {
  margin-bottom:18px;
}
.label-custom {
  font-size:14px;
  font-weight:700;
  color:var(--text);
  font-family:'Nunito',sans-serif;
  margin-bottom:7px;
  display:block;
}
.label-optional {
  font-size:12px;
  color:var(--muted);
  font-weight:500;
  margin-left:6px;
}
.input-wrap {
  position:relative;
  display:flex;
  align-items:center;
}
.input-icon {
  position:absolute;
  left:14px;
  color:var(--muted);
  display:flex;
  pointer-events:none;
}
.input-icon-r {
  position:absolute;
  right:14px;
  color:var(--muted);
  display:flex;
  cursor:pointer;
}
.form-control-custom {
  width:100%;
  padding:13px 14px 13px 44px;
  border:1.5px solid var(--border);
  border-radius:11px;
  font-size:15px;
  font-family:'Barlow',sans-serif;
  color:var(--text);
  background:var(--bg);
  outline:none;
  transition:border-color 0.15s,box-shadow 0.15s,background 0.15s;
}
.form-control-custom.no-icon {
  padding-left:14px;
}
.form-control-custom:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(232,99,10,0.12);
  background:white;
}
.form-select-custom {
  width:100%;
  padding:13px 14px 13px 44px;
  border:1.5px solid var(--border);
  border-radius:11px;
  font-size:15px;
  font-family:'Barlow',sans-serif;
  color:var(--text);
  background:var(--bg);
  outline:none;
  transition:border-color 0.15s;
  -webkit-appearance:none;
}
.form-select-custom:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(232,99,10,0.12);
  background:white;
}
.field-error {
  font-size:12px;
  color:#dc3545;
  margin-top:5px;
  display:none;
}
.phone-prefix {
  position:absolute;
  left:14px;
  font-size:15px;
  font-weight:700;
  color:var(--text);
  font-family:'Nunito',sans-serif;
  z-index:1;
}
.phone-input {
  padding-left:52px !important;
}
.form-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

/* Photo */
.photo-section {
  background:var(--bg);
  border-radius:16px;
  padding:24px;
  border:1.5px solid var(--border);
  margin-bottom:26px;
}
.photo-preview-wrap {
  width:120px;
  height:120px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 20px;
  position:relative;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(232,99,10,0.25);
  overflow:hidden;
  border:4px solid white;
  outline:3px solid var(--primary);
}
.photo-preview-wrap img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
  border-radius:50%;
}
.photo-placeholder {
  color:rgba(255,255,255,0.9);
  pointer-events:none;
}
.photo-edit-badge {
  position:absolute;
  bottom:4px;
  right:4px;
  width:30px;
  height:30px;
  background:var(--secondary);
  border-radius:50%;
  border:2px solid white;
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-tabs {
  display:flex;
  gap:8px;
  justify-content:center;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.photo-tab {
  flex:1;
  min-width:120px;
  padding:10px 14px;
  border:1.5px solid var(--border);
  border-radius:10px;
  background:white;
  font-family:'Nunito',sans-serif;
  font-weight:700;
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  transition:all 0.15s;
}
.photo-tab.active {
  background:var(--primary);
  border-color:var(--primary);
  color:white;
}
.photo-tab:hover:not(.active) {
  border-color:var(--primary);
  color:var(--primary);
}
.camera-container {
  display:none;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.camera-container.visible {
  display:flex;
}
#videoFeed {
  width:100%;
  max-width:380px;
  aspect-ratio:4/3;
  border-radius:14px;
  background:#000;
  object-fit:cover;
  border:2px solid var(--border);
}
#captureCanvas {
  display:none;
}
.camera-btns {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}
.btn-cam {
  padding:10px 22px;
  border-radius:10px;
  font-family:'Nunito',sans-serif;
  font-weight:700;
  font-size:14px;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:7px;
  transition:all 0.15s;
}
.btn-cam-capture {
  background:var(--primary);
  color:white;
}
.btn-cam-capture:hover {
  background:var(--primary-dark);
}
.btn-cam-retake {
  background:var(--bg);
  border:1.5px solid var(--border);
  color:var(--text);
}
.upload-container {
  display:none;
  flex-direction:column;
  align-items:center;
  width:100%;
}
.upload-container.visible {
  display:flex;
}
.upload-drop {
  width:100%;
  border:2px dashed var(--border);
  border-radius:14px;
  padding:28px;
  text-align:center;
  cursor:pointer;
  transition:border-color 0.15s,background 0.15s;
}
.upload-drop:hover,
.upload-drop.dragover {
  border-color:var(--primary);
  background:#FFF1E8;
}
.upload-drop-icon {
  color:var(--muted);
  margin-bottom:10px;
}
.upload-drop-text {
  font-family:'Nunito',sans-serif;
  font-weight:700;
  font-size:14px;
  color:var(--text);
  margin-bottom:4px;
}
.upload-drop-sub {
  font-size:12px;
  color:var(--muted);
}
#fileInput {
  display:none;
}
.photo-status {
  text-align:center;
  font-size:13px;
  font-weight:600;
  font-family:'Nunito',sans-serif;
}
.photo-status.captured {
  color:var(--success);
}
.photo-status.required {
  color:#dc3545;
}

/* Skills */
.skills-wrap {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:12px;
  border:1.5px solid var(--border);
  border-radius:11px;
  background:var(--bg);
  min-height:50px;
}
.skill-tag {
  background:var(--primary);
  color:white;
  font-size:12px;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
  font-family:'Nunito',sans-serif;
  display:flex;
  align-items:center;
  gap:5px;
  cursor:pointer;
}
.skill-tag:hover {
  background:var(--primary-dark);
}
.skill-add {
  background:white;
  border:1.5px dashed var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
  font-family:'Nunito',sans-serif;
  display:flex;
  align-items:center;
  gap:5px;
  cursor:pointer;
}
.skill-add:hover {
  border-color:var(--primary);
  color:var(--primary);
}

/* Password strength */
.strength-bar {
  height:4px;
  border-radius:2px;
  background:var(--border);
  margin-top:8px;
  overflow:hidden;
}
.strength-fill {
  height:100%;
  border-radius:2px;
  transition:width 0.3s,background 0.3s;
  width:0;
}
.strength-text {
  font-size:11px;
  font-weight:600;
  margin-top:4px;
}

/* Alert */
.alert-custom {
  background:#FDECEA;
  border:1.5px solid #F5C6C0;
  border-radius:10px;
  padding:12px 16px;
  font-size:13px;
  color:#C62828;
  font-weight:600;
  margin-bottom:16px;
  display:none;
  align-items:center;
  gap:8px;
}
.alert-custom.show {
  display:flex;
}

/* Buttons */
.btn-nav {
  padding:13px 28px;
  border-radius:12px;
  font-family:'Nunito',sans-serif;
  font-weight:800;
  font-size:15px;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  transition:all 0.15s;
  min-width:120px;
  justify-content:center;
}
.btn-next {
  background:var(--primary);
  color:white;
  box-shadow:0 4px 16px rgba(232,99,10,0.28);
}
.btn-next:hover {
  background:var(--primary-dark);
}
.btn-next:disabled {
  opacity:0.6;
  cursor:not-allowed;
}
.btn-back {
  background:var(--bg);
  border:1.5px solid var(--border);
  color:var(--text);
}
.btn-back:hover {
  border-color:var(--primary);
  color:var(--primary);
}
.form-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--border);
  flex-wrap:wrap;
  gap:12px;
}

/* Steps */
.form-step {
  display:none;
}
.form-step.active {
  display:block;
}

/* Terms */
.terms-row {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:6px;
  flex-wrap:wrap;
}
.custom-cb {
  width:20px;
  height:20px;
  border-radius:6px;
  border:2px solid var(--border);
  background:white;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  cursor:pointer;
  margin-top:1px;
  transition:all 0.15s;
}
.custom-cb.checked {
  background:var(--primary);
  border-color:var(--primary);
}
.terms-text {
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}
.terms-text a {
  color:var(--primary);
  text-decoration:none;
  font-weight:600;
}

/* Spinner */
.spinner {
  width:18px;
  height:18px;
  border:2.5px solid rgba(255,255,255,0.4);
  border-top-color:white;
  border-radius:50%;
  animation:spin 0.7s linear infinite;
  display:none;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

/* Pending notice */
.pending-notice {
  background:#FFF8E8;
  border:1.5px solid #F5DCA0;
  border-radius:14px;
  padding:20px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.pending-notice-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:rgba(245,166,35,0.15);
  border-radius:10px;
  flex-shrink:0;
  color:#8B6914;
}
.pending-notice-title {
  font-family:'Nunito',sans-serif;
  font-weight:800;
  font-size:15px;
  color:#8B6914;
  margin-bottom:6px;
}
.pending-notice-text {
  font-size:13px;
  color:#8B6914;
  line-height:1.6;
}

/* Success */
.success-screen { 
  text-align:center; 
  padding:20px 0; 
}
.success-icon { width:80px; 
  height:80px; 
  background:#E8F5EE; 
  border-radius:50%; 
  margin:0 auto 20px;
  display:flex; 
  align-items:center; 
  justify-content:center; 
  }

/* RESPONSIVE BREAKPOINTS */
@media (max-width:992px) {
  .page-wrapper { gap:18px; padding:26px 18px 50px; }
  .info-panel { width:200px; min-width:180px; flex-basis:200px; }
  .info-card { padding:20px 16px; }
  .form-card { padding:28px 24px; max-width:620px; }
  .form-row { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
  .role-chooser { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
}

@media (max-width:768px) {
  .top-bar { padding:14px 20px; }
  .page-wrapper { 
    flex-direction:column; 
    padding:20px 16px 40px; 
    gap:20px; 
  }
  .info-panel { 
    width:100%; 
    min-width:0;
    position:static; 
    order:2;
  }
  .form-card { 
    padding:24px 20px; 
    order:1;
    max-width:none;
    width:100%;
  }
  .form-row { grid-template-columns:1fr; }
  .role-chooser { grid-template-columns:1fr; }
  .info-card::before {
    top:-40px;
    right:-40px;
    width:140px;
    height:140px;
  }
  .benefits { display:none; }
}

@media (max-width:480px) {
  .page-wrapper { padding:14px 14px 36px; }
  .info-panel { display:none; }
  .info-card { padding:18px 16px; }
  .info-title { font-size:16px; }
  .form-card { padding:20px 16px; }
}
/* ============================================================
   Cascading location dropdowns (Province -> City -> Barangay)
   ============================================================ */
.form-select-custom:disabled {
    background: #F1EDE6;
    color: var(--muted, #6B7C8D);
    cursor: not-allowed;
}

/* ============================================================
   Mobile role indicator (Worker / Client)
   The main sidebar toggle lives in .info-panel, which is
   reordered below the form under 768px and hidden entirely
   under 480px. This is a duplicate, always-visible toggle
   pinned to the top of the form card so mobile users can always
   see and change which role they're registering as. It reuses
   the same [data-role-button] wiring as the sidebar toggle, so
   no extra JS is needed — clicking either one updates both.
   ============================================================ */
.mobile-role-indicator {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg, #F2EDE6);
    border: 1.5px solid var(--border, #E2D9CE);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 18px;
}
.mobile-role-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: var(--text, #1C2B3A);
    white-space: nowrap;
}
.mobile-role-toggle {
    margin-bottom: 0;
    flex: 1;
    max-width: 220px;
}
.mobile-role-toggle .role-toggle-btn {
    border: 1.5px solid var(--border, #E2D9CE);
    background: #fff;
    color: var(--muted, #6B7C8D);
}
.mobile-role-toggle .role-toggle-btn.active {
    background: var(--primary, #E8630A);
    border-color: var(--primary, #E8630A);
    color: #fff;
}

@media (max-width: 768px) {
    .mobile-role-indicator {
        display: flex;
    }
}

/* ============================================================
   Terms/Privacy notice above the final submit button
   ============================================================ */
.form-legal-notice {
    font-size: 11.5px;
    color: var(--muted, #6B7C8D);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.5;
}
.form-legal-notice a {
    color: var(--primary, #E8630A);
    font-weight: 700;
    text-decoration: underline;
}

/* Registration consent, document guidance, and loading state */
.input-hint{font-size:11.5px;color:var(--muted);line-height:1.4;margin-top:6px}
.document-security-note{margin:16px 0 18px;padding:12px 14px;border-radius:12px;background:#FFF8E8;border:1px solid #F5DCA0;color:#735B26;font-size:12px;line-height:1.5}
.legal-consent{margin:20px 0 14px;padding:14px;border:1.5px solid var(--border);border-radius:13px;background:#FCFAF7}
.legal-consent.is-ready{border-color:#9BD8B6;background:#F5FCF8}.legal-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.legal-link-button{border:1.5px solid var(--primary);border-radius:9px;background:#fff;color:var(--primary);font:700 12px 'Nunito',sans-serif;padding:10px 8px;cursor:pointer}.legal-link-button:hover,.legal-link-button.is-read{background:#FFF1E8}.legal-link-button.is-read{border-color:#31A66A;color:#16824C;background:#EAF8F0}
.terms-row input:disabled{cursor:not-allowed;opacity:.55}.submit-spinner{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.48);border-top-color:#fff;border-radius:50%;animation:registrationSpin .7s linear infinite}.btn-next.is-submitting{cursor:wait;gap:8px}.btn-next.is-submitting .submit-spinner{display:inline-block}@keyframes registrationSpin{to{transform:rotate(360deg)}}

/* In-page legal reader */
.legal-modal[hidden]{display:none}.legal-modal{position:fixed;z-index:1000;inset:0;background:rgba(17,35,54,.56);display:grid;place-items:center;padding:20px}.legal-modal-card{width:min(650px,100%);max-height:min(760px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border-radius:20px;box-shadow:0 24px 70px rgba(9,27,45,.3);overflow:hidden}.legal-modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:21px 24px 17px;border-bottom:1px solid var(--border)}.legal-modal-kicker{color:var(--primary);font:800 11px 'Nunito',sans-serif;text-transform:uppercase;letter-spacing:.06em}.legal-modal-header h2{margin:4px 0 0;font:800 22px 'Nunito',sans-serif;color:var(--text)}.legal-close{width:34px;height:34px;border:0;border-radius:50%;background:#F2EDE6;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}.legal-close:hover{background:#FFF1E8;color:var(--primary)}.legal-modal-content{overflow:auto;padding:20px 24px;color:#405465;font-size:14px;line-height:1.6}.legal-modal-content h3{margin:0 0 12px;color:var(--text);font:800 18px 'Nunito',sans-serif}.legal-modal-content h4{margin:20px 0 6px;color:var(--text);font:800 14px 'Nunito',sans-serif}.legal-modal-content p{margin:0 0 12px}.legal-modal-content .legal-modal-last{padding:12px;border-radius:10px;background:#FFF8E8;color:#735B26}.legal-scroll-note{margin:0;padding:10px 24px;background:#FFF8E8;color:#735B26;font-size:12px;line-height:1.4}.legal-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 24px;border-top:1px solid var(--border)}.legal-modal-actions button{height:42px;border-radius:10px;font:800 13px 'Nunito',sans-serif;cursor:pointer}.legal-secondary{border:1.5px solid var(--border);background:#fff;color:var(--text)}.legal-primary{border:1.5px solid var(--primary);background:var(--primary);color:#fff}.legal-primary:disabled{opacity:.45;cursor:not-allowed}body.legal-modal-open{overflow:hidden}

@media (max-width:480px) {
  body{background:radial-gradient(circle 255px at -20% 13%,rgba(232,99,10,.36) 0%,rgba(245,166,35,.20) 43%,transparent 73%),radial-gradient(circle 300px at 120% 82%,rgba(245,166,35,.36) 0%,rgba(232,99,10,.16) 45%,transparent 75%),radial-gradient(circle 145px at 98% 28%,rgba(232,99,10,.28) 0%,transparent 73%),radial-gradient(circle 125px at 3% 58%,rgba(245,166,35,.30) 0%,transparent 73%),radial-gradient(circle 105px at 72% 98%,rgba(232,99,10,.26) 0%,transparent 73%),var(--bg);background-attachment:fixed}
  .top-bar{min-height:100px;padding:14px 18px 13px;flex-direction:column;justify-content:center;gap:7px;text-align:center}.logo{font-size:27px;line-height:1}.login-link{font-size:12px;gap:5px;line-height:1.2}
  .mobile-role-indicator{align-items:stretch;flex-direction:column;gap:8px;padding:12px}.mobile-role-label{font-size:11px}.mobile-role-toggle{max-width:none;width:100%}
  .progress-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.progress-label{font-size:10.5px;line-height:1.25;white-space:normal;text-align:center}.progress-label:first-child{text-align:left}.progress-label:last-child{text-align:right}
  .legal-links{gap:8px}.legal-link-button{font-size:11px;padding:10px 5px}.legal-modal{padding:12px}.legal-modal-header{padding:17px 18px 13px}.legal-modal-content{padding:16px 18px;font-size:13px}.legal-scroll-note{padding:9px 18px}.legal-modal-actions{padding:13px 18px}
}
