

/* ── Variables ───────────────────────────────────────────── */
:root {
  --primary: #0d9488;
  --primary-light: #ccfbf1;
  --primary-dark: #0f766e;
  --primary-glow: rgba(13, 148, 136, 0.15);
  --bg: #f8fafb;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Header / Nav (loaded via components.js) ─────────────── */
.header {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Intake Wrapper ──────────────────────────────────────── */
.intake-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

/* ── Intake Header ───────────────────────────────────────── */
.intake-header {
  text-align: center;
  margin-bottom: 36px;
}
.intake-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.intake-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}
.intake-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

/* ── Progress Navigation ─────────────────────────────────── */
.progress-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 0 20px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}
.progress-step:hover {
  background: var(--primary-light);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.progress-step.active .step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.progress-step.active .step-text {
  color: var(--primary);
}
.progress-step.completed .step-num {
  background: var(--success);
  color: #fff;
}
.progress-step.completed .step-text {
  color: var(--text);
}
.progress-line {
  width: 48px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.progress-fill.filled {
  width: 100%;
}

/* ── Section transitions ─────────────────────────────────── */
.sections-container {
  position: relative;
}
.section {
  display: none;
  animation: fadeSlideIn 0.4s ease forwards;
}
.section.active {
  display: block;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Intake Card ─────────────────────────────────────────── */
.intake-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 36px 32px;
  margin-bottom: 20px;
}
.intake-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ── Field label ─────────────────────────────────────────── */
.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  margin-top: 22px;
}
.intake-card .field-label:first-of-type {
  margin-top: 0;
}
.input-group .field-label {
  margin-top: 0;
  margin-bottom: 8px;
}

/* ── Input row ───────────────────────────────────────────── */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 2px;
}
.input-row + .input-row {
  margin-top: 16px;
}
.dob-row {
  grid-template-columns: 1fr 1fr 1fr;
}
.input-group {
  margin-bottom: 4px;
}

/* ── Inputs & Selects ────────────────────────────────────── */
.intake-card select,
.intake-card input[type="text"],
.intake-card input[type="email"],
.intake-card input[type="tel"],
.intake-card input[type="number"] {
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}
/* ── Hide number input spinners ──────────────────────────── */
.intake-card input[type="number"]::-webkit-outer-spin-button,
.intake-card input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.intake-card input[type="number"] {
  -moz-appearance: textfield;
}
.intake-card select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.intake-card select:invalid,
.intake-card select option[value=""] {
  color: var(--text-muted);
}
.intake-card select:not(:invalid) {
  color: var(--text);
}
.intake-card select:hover {
  border-color: #cbd5e1;
  background-color: #fafbfc;
}
.intake-card select option {
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}
.intake-card select:focus,
.intake-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: #fff;
}
.intake-card select.error,
.intake-card input.error {
  border-color: var(--danger);
}

/* ── Input with unit suffix ──────────────────────────────── */
.input-with-unit {
  position: relative;
}
.input-with-unit input {
  padding-right: 48px;
}
.input-with-unit .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

/* ── Live BMI ────────────────────────────────────────────── */
.bmi-live {
  display: flex;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 8px;
  transition: all var(--transition);
}
.bmi-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.bmi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bmi-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Toggle Pills (Gender) ───────────────────────────────── */
.toggle-pills {
  display: flex;
  gap: 12px;
}
.pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.pill.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.pill[data-value="male"]:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}
.pill[data-value="male"].selected {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pill[data-value="female"]:hover {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #db2777;
}
.pill[data-value="female"].selected {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.12);
}
.pill svg {
  transition: color var(--transition);
}

/* ── Warning box ─────────────────────────────────────────── */
.warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 12px;
}

/* ── Checkbox group ──────────────────────────────────────── */
.checkbox-group {
  margin-bottom: 16px;
  margin-top: 8px;
  border: none;
  padding: 0;
}
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.checkbox-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.checkbox-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Radio group ─────────────────────────────────────────── */
.radio-group {
  margin-bottom: 12px;
  margin-top: 16px;
}
.radio-legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.radio-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.radio-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.radio-item input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: none;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
  flex-shrink: 0;
}
.radio-item input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.radio-item:hover input[type="radio"] {
  border-color: var(--primary);
}
.radio-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Conditional detail wraps ────────────────────────────── */
.conditional-wrap {
  display: none;
  margin-bottom: 12px;
}
.conditional-wrap.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}
.conditional-wrap textarea,
.intake-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: border-color var(--transition);
}
.conditional-wrap textarea:focus,
.intake-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── File upload ─────────────────────────────────────────── */
.intake-card input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-secondary);
  background: #fafbfc;
  cursor: pointer;
  transition: border-color var(--transition);
}
.intake-card input[type="file"]:hover {
  border-color: var(--primary);
}
.file-upload-area {
  width: 100%;
  padding: 24px 14px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: #fafbfc;
  cursor: pointer;
  transition: border-color var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.file-upload-area:hover {
  border-color: var(--primary);
  background: #f0faf8;
}
.file-upload-icon {
  font-size: 1.5rem;
}
.file-upload-text {
  font-size: 0.85rem;
}
.file-preview {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}
.file-preview-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  object-fit: contain;
}
.file-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ── Selection Cards ─────────────────────────────────────── */
.selection-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.sel-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.sel-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
  transform: translateY(-2px);
}
.sel-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.sel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Summary Hero ────────────────────────────────────────── */
.summary-hero {
  background: linear-gradient(145deg, #0f172a, #1e3a5f);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}
.summary-hero h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: 0.9;
  letter-spacing: -0.01em;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.summary-stat {
  padding: 12px 4px;
}
.summary-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.summary-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 4px;
}
.eligibility-msg {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  line-height: 1.5;
}
.eligibility-msg .highlight {
  font-weight: 800;
  color: #a7f3d0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.btn-next,
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--primary);
  color: #fff;
  transition: all var(--transition);
  box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-next:hover,
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(13,148,136,0.3);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-submit {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ── Field errors ────────────────────────────────────────── */
.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
  font-weight: 500;
}
.field-error.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── HIPAA notice ────────────────────────────────────────── */
.hipaa-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ── Spinner overlay ─────────────────────────────────────── */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(4px);
}
.spinner-overlay.active { display: flex; }
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-overlay p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Result icon ─────────────────────────────────────────── */
.result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 36px;
}

/* ── Footer (same as index) ──────────────────────────────── */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}
.footer .logo-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .intake-wrapper { padding: 88px 16px 60px; }
  .intake-card { padding: 28px 22px; }
  .input-row { grid-template-columns: 1fr; gap: 10px; }
  .dob-row { grid-template-columns: 1fr 1fr 1fr; }
  .selection-cards { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .summary-stat-value { font-size: 1.3rem; }
  .progress-step { padding: 8px 10px; }
  .step-text { display: none; }
  .progress-line { width: 32px; }
  .btn-next, .btn-submit { padding: 12px 28px; font-size: 0.9rem; }
  .btn-back { padding: 12px 22px; font-size: 0.9rem; }
  .toggle-pills { gap: 10px; }
  .pill { padding: 12px 14px; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Custom Select Dropdown ─────────────────────────────── */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select .native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  user-select: none;
}
.custom-select-trigger.placeholder {
  color: var(--text-muted);
}
.custom-select-trigger:hover {
  border-color: #cbd5e1;
  background-color: #fafbfc;
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: #fff;
}
.custom-select.error .custom-select-trigger {
  border-color: var(--danger);
}
.custom-select-trigger .cs-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-secondary);
}
.custom-select.open .cs-arrow {
  transform: rotate(180deg);
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-select.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 100px;
}
.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.custom-select-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.custom-select-option:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.custom-select-option.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}
.custom-select-option.selected:hover {
  background: var(--primary-dark);
  color: #fff;
}
