:root {
  --bg: #0b1020;
  --panel: #121933;
  --panel-2: #ffffff;
  --text: #0f172a;
  --light-text: #dbe5ff;
  --muted: #61708a;
  --line: #d8deea;
  --brand: #b91c1c;
  --brand-dark: #991b1b;
  --brand-soft: rgba(185, 28, 28, 0.12);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f3f6fb;
  color: var(--text);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #0b1020 0%, #111933 55%, #1e293b 100%);
  color: var(--light-text);
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #c9d5f5;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.page-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  margin-top: -2rem;
  padding-bottom: 3rem;
}

.progress-panel,
.form-panel {
  background: var(--panel-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-panel {
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
  align-self: start;
}

.progress-panel h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.progress-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  line-height: 1.8;
}

.small-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.form-panel {
  padding: 1.5rem;
}

.intake-form {
  display: grid;
  gap: 1.5rem;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  background: #fff;
}

.section-heading,
.section-heading-split {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.section-heading-split {
  justify-content: space-between;
}

.heading-left {
  display: flex;
  gap: 1rem;
}

.section-number {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.section-heading h2,
.section-heading-split h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.section-heading p,
.section-heading-split p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 1rem;
}

.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.one-col { grid-template-columns: 1fr; }

label,
fieldset {
  display: block;
}

label > span,
legend {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1e293b;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(185, 28, 28, 0.18);
  border-color: var(--brand);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.conditions-container {
  display: grid;
  gap: 1rem;
}

.condition-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  background: #fbfdff;
}

.condition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.condition-header h3 {
  margin: 0;
  font-size: 1rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upload-card {
  border: 1px dashed #b6c2d2;
  border-radius: 16px;
  padding: 1rem;
  background: #f8fbff;
}

.drag-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  margin-top: 1rem;
  border: 2px dashed #c2cfde;
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8fc 100%);
  cursor: pointer;
}

.drag-drop-zone input[type="file"] {
  margin-top: 0.75rem;
}

.drag-title {
  font-weight: 800;
  font-size: 1rem;
}

.drag-subtitle {
  margin-top: 0.35rem;
  color: var(--muted);
}

.checkbox-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.checks-grid label,
.consent-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  color: #334155;
}

.checks-grid input,
.consent-item input {
  width: auto;
  margin-top: 0.2rem;
}

.consent-box {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
  background: #eef2f7;
  color: #1f2937;
  border: 1px solid #d7dee8;
}

.remove-condition {
  border: none;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

.form-message {
  margin: 1rem 0 0;
  font-weight: 600;
  color: #14532d;
}

@media (max-width: 980px) {
  .hero-inner,
  .page-shell {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .two-col,
  .three-col,
  .upload-grid,
  .checks-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-split,
  .heading-left,
  .form-actions,
  .condition-header {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .section-heading-split .btn {
    width: 100%;
  }
}
