*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f9ff;
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.container { width: 100%; max-width: 600px; margin: 0 auto; }

/* ── Header ── */
.header { text-align: center; margin-bottom: 28px; }
.logo { font-size: 24px; font-weight: 800; color: #0ea5e9; letter-spacing: -0.5px; }
.logo span { color: #1e293b; }
.tagline { font-size: 13px; color: #64748b; margin-top: 4px; }

/* ── Progress ── */
.progress-wrap { margin-bottom: 20px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-bottom: 7px; }
.progress-bar { height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #0ea5e9, #38bdf8); border-radius: 2px; transition: width 0.35s ease; }

/* ── Card ── */
.card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 32px rgba(14,165,233,.08);
}

/* ── Step label / section title ── */
.step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #0ea5e9; margin-bottom: 8px; }
.section-title { font-size: 21px; font-weight: 800; color: #1e293b; line-height: 1.3; margin-bottom: 4px; }
.section-subtitle { font-size: 13px; color: #64748b; margin-bottom: 6px; }

/* ── Professional banner ── */
.pro-banner {
  background: #fef3c7; border: 1.5px solid #fbbf24; border-radius: 10px;
  padding: 10px 14px; margin: 14px 0; font-size: 13px; color: #92400e;
  display: flex; align-items: center; gap: 8px;
}

/* ── Divider ── */
.section-divider { height: 1px; background: #f1f5f9; margin: 16px 0 20px; }

/* ── Fields ── */
.fields-container { display: flex; flex-direction: column; gap: 16px; }

.field-label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #64748b; margin-bottom: 7px; line-height: 1.4;
}
.field-label .req { color: #ef4444; margin-left: 2px; }

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,165,233,.1);
}
.field-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.field-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.5; cursor: pointer; }

/* ── Checkboxes ── */
.checkboxes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 440px) { .checkboxes-grid { grid-template-columns: 1fr; } }

.checkbox-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
  background: #f8fafc; -webkit-tap-highlight-color: transparent;
}
.checkbox-item:hover { border-color: #bae6fd; background: #f0f9ff; }
.checkbox-item.checked { border-color: #0ea5e9; background: #f0f9ff; }
.checkbox-mark {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid #cbd5e1; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.checkbox-item.checked .checkbox-mark { border-color: #0ea5e9; background: #0ea5e9; }
.checkbox-item.checked .checkbox-mark::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }
.checkbox-text { font-size: 13px; color: #1e293b; font-weight: 500; line-height: 1.35; }

/* ── Radio options ── */
.options { display: flex; flex-direction: row; gap: 10px; }
.option {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 2px solid #e2e8f0; border-radius: 12px;
  cursor: pointer; transition: border-color .15s, background .15s;
  background: #f8fafc; -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: #bae6fd; background: #f0f9ff; }
.option.selected { border-color: #0ea5e9; background: #f0f9ff; }
.option-dot {
  width: 19px; height: 19px; border-radius: 50%; border: 2px solid #cbd5e1;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.option.selected .option-dot { border-color: #0ea5e9; background: #0ea5e9; }
.option.selected .option-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.option-text { font-size: 15px; color: #1e293b; font-weight: 500; }

/* ── Buttons ── */
.btn-primary {
  width: 100%; padding: 16px; background: #0ea5e9; color: #fff;
  border: none; border-radius: 13px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 24px; transition: background .2s, transform .1s;
  font-family: inherit; letter-spacing: 0.1px;
}
.btn-primary:hover:not(:disabled) { background: #0284c7; }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }

.btn-back {
  width: 100%; padding: 11px; background: transparent; color: #94a3b8;
  border: none; font-size: 14px; cursor: pointer; margin-top: 8px;
  border-radius: 8px; transition: color .15s; font-family: inherit;
}
.btn-back:hover { color: #64748b; }

.btn-secondary {
  width: 100%; padding: 14px; background: transparent; color: #0ea5e9;
  border: 2px solid #0ea5e9; border-radius: 13px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 10px; transition: all .2s; font-family: inherit;
}
.btn-secondary:hover { background: #f0f9ff; }

/* ── Error msg ── */
.error-msg {
  color: #ef4444; font-size: 13px; margin-top: 10px; padding: 10px 14px;
  background: #fef2f2; border-radius: 8px; border-left: 3px solid #ef4444; display: none;
}

/* ── Spinner ── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .75s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success card ── */
.success-card {
  background: #fff; border-radius: 22px; padding: 40px 28px;
  box-shadow: 0 4px 32px rgba(14,165,233,.08);
  text-align: center; display: none;
}
.success-icon {
  width: 80px; height: 80px; background: #dcfce7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 36px;
}
.success-card h2 { font-size: 24px; font-weight: 800; color: #1e293b; margin-bottom: 12px; }
.success-card p  { font-size: 15px; color: #64748b; line-height: 1.65; margin-bottom: 28px; }
