:root {
  --gaba-blue: #015989;
  --gaba-cyan: #009dc3;
  --gaba-sky: #78cfe9;
  --gaba-slate: #7b90a1;
  --gaba-yellow: #fad000;
  --ink: #07364d;
  --muted: #657d8e;
  --paper: #f7fafb;
  --panel: #ffffff;
  --line: #d7e2e8;
  --teal: var(--gaba-blue);
  --teal-soft: #e7f6fb;
  --coral: var(--gaba-yellow);
  --violet: #006b8e;
  --gold: var(--gaba-yellow);
  --mist: #edf5f8;
  --shadow: 0 18px 48px rgba(1, 89, 137, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Gilroy", "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 207, 233, 0.22), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 52%, #f1f7fa 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.25fr) minmax(300px, 0.85fr);
  min-height: 100vh;
}

.brand-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  color: white;
  background:
    linear-gradient(155deg, rgba(1, 89, 137, 0.98), rgba(0, 157, 195, 0.9) 58%, rgba(1, 89, 137, 0.96)),
    var(--gaba-blue);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.clinical-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(232, 247, 252, 0.62) 24%, rgba(1, 89, 137, 0.68) 55%, rgba(0, 61, 96, 0.9)),
    url("assets/neuropsychology-clinic.png") center / cover no-repeat;
  opacity: 0.86;
}

.clinical-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 22rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(0, 157, 195, 0.08)),
    radial-gradient(circle at 36% 11%, rgba(255, 255, 255, 0.78), transparent 12rem);
}

#neuroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.brand-content,
.clinical-showcase {
  position: relative;
  z-index: 1;
}

.brand-content::before {
  content: "";
  position: absolute;
  inset: -20px -18px auto -18px;
  height: 255px;
  border-radius: 0 0 26px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48) 62%, transparent),
    radial-gradient(ellipse at 36% 26%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.54) 48%, transparent 76%);
  pointer-events: none;
  z-index: -1;
}

.brand-logo-card {
  width: min(250px, 100%);
  padding: 4px 0 12px;
}

.brand-logo-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 39, 67, 0.28));
}

.brand-content p {
  max-width: 260px;
  margin: 18px 0 0;
  color: var(--gaba-blue);
  font-size: 1.22rem;
  line-height: 1.16;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.clinical-showcase {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.service-accordion {
  display: grid;
  gap: 7px;
}

.service-accordion details {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(1, 89, 137, 0.5);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 39, 67, 0.18);
}

.service-accordion summary {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 42px 0 36px;
  cursor: pointer;
  color: white;
  font-weight: 900;
  list-style: none;
}

.service-accordion summary::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gaba-sky);
}

.service-accordion details:nth-child(2) summary::before {
  background: var(--gaba-yellow);
}

.service-accordion details:nth-child(3) summary::before {
  background: white;
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.service-accordion summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 208, 0, 0.94);
  color: var(--gaba-blue);
  font-weight: 950;
}

.service-accordion details[open] summary::after {
  content: "-";
}

.service-accordion p {
  margin: 0;
  padding: 0 14px 13px 36px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.4;
}

.intake-panel {
  padding: 34px;
  border-right: 1px solid var(--line);
  overflow: auto;
  background: rgba(255, 255, 255, 0.68);
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gaba-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--gaba-blue);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 850;
}

.status-pill {
  min-width: 58px;
  padding: 9px 12px;
  text-align: center;
  color: var(--gaba-blue);
  border: 1px solid rgba(1, 89, 137, 0.18);
  border-radius: 8px;
  background: white;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(1, 89, 137, 0.08);
}

.progress {
  height: 8px;
  margin-bottom: 22px;
  background: var(--mist);
  overflow: hidden;
}

.progress div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gaba-blue), var(--gaba-cyan), var(--gaba-yellow));
  transition: width 180ms ease;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.section-band {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-heading span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 7px;
  background: var(--gaba-blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-help {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 750;
}

.privacy-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, white, #f7fbfd);
  box-shadow: 0 12px 34px rgba(1, 89, 137, 0.07);
}

.privacy-card > p {
  color: var(--ink);
  line-height: 1.45;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.privacy-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.privacy-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gaba-blue);
}

.privacy-grid p,
.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.privacy-note {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.consent-checks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.consent-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  line-height: 1.35;
}

.consent-checks label:has(input:checked) {
  border-color: rgba(0, 157, 195, 0.55);
  background: #eefaff;
}

.consent-checks input {
  margin-top: 2px;
  accent-color: var(--gaba-blue);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.segmented label {
  min-height: 96px;
  display: grid;
  grid-template-rows: 20px 1fr;
  place-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.check-grid label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.segmented input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gaba-blue);
}

.segmented span {
  display: grid;
  min-height: 42px;
  align-items: center;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 850;
  line-height: 1.22;
  text-wrap: balance;
}

.check-grid input {
  accent-color: var(--gaba-blue);
}

.segmented label:has(input:checked) {
  border-color: var(--gaba-blue);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px var(--gaba-blue), 0 12px 30px rgba(1, 89, 137, 0.13);
  transform: translateY(-1px);
}

.segmented label:hover {
  border-color: rgba(0, 157, 195, 0.62);
}

.fields {
  display: grid;
  gap: 16px;
}

.fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.basic-fields {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, white, #f7fbfd);
  box-shadow: 0 12px 34px rgba(1, 89, 137, 0.06);
}

label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.date-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 10px;
}

.date-selects select {
  text-align: center;
}

textarea {
  resize: vertical;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: var(--gaba-cyan);
  box-shadow: 0 0 0 3px rgba(0, 157, 195, 0.13);
}

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

.conditional-field {
  display: block;
  margin-top: 14px;
}

.hidden {
  display: none;
}

.actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 0;
  background: linear-gradient(180deg, rgba(251, 252, 251, 0), var(--paper) 28%);
}

button {
  min-height: 46px;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  color: white;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gaba-blue), var(--gaba-cyan));
  box-shadow: 0 12px 26px rgba(1, 89, 137, 0.18);
}

.secondary {
  color: var(--ink);
  background: white;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.result-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(120, 207, 233, 0.18), rgba(255, 255, 255, 0)),
    var(--mist);
}

.result-empty,
.result-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.result-empty {
  min-height: calc(100vh - 64px);
  display: grid;
  align-content: center;
  gap: 10px;
}

.mini-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: var(--gaba-blue);
  font-weight: 900;
}

.result-empty p,
.note,
.summary-list,
.warning {
  color: var(--muted);
}

.route-badge {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 10px;
  color: white;
  border-radius: 999px;
  background: var(--gaba-blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.result-card h2 {
  font-size: 1.55rem;
  line-height: 1.08;
}

.priority {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.priority-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.priority-row strong {
  color: var(--gaba-blue);
}

.summary-list {
  padding-left: 18px;
}

.warning {
  border-left: 4px solid var(--gaba-yellow);
  padding: 10px 0 10px 12px;
  background: #fffbe0;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 14px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .result-panel {
    position: relative;
    height: auto;
  }

  .brand-panel {
    min-height: 260px;
  }

  .result-empty {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .intake-panel,
  .result-panel,
  .brand-panel {
    padding: 22px;
  }

  .segmented,
  .fields.two,
  .check-grid,
  .privacy-grid,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .date-selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .status-pill {
    width: max-content;
  }
}
  border-radius: 999px;
  min-height: 48px;
