*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #3b3b3b;
  background: url('../assets/hero-solar.jpg') center top / cover no-repeat;
  padding: 2rem 1rem;
}

main {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

header { margin-bottom: 2rem; }

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.subtitle {
  margin-top: 0.4rem;
  color: #69727d;
  font-size: 0.95rem;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #cacccb;
}

section:last-of-type { border-bottom: none; }

section--consent { margin-bottom: 1.5rem; }

h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a3135;
  margin-bottom: 1rem;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */

.field { margin-bottom: 1.25rem; }
.field--narrow { max-width: 180px; }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #3b3b3b;
}

.req { color: #ef4444; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #8a3135;
  border-radius: 2px;
  font-size: 0.95rem;
  color: #3b3b3b;
  background: #fff;
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #8a3135;
  box-shadow: 0 0 0 2px rgba(138,49,53,0.15);
}

input.invalid, textarea.invalid {
  border-color: #ef4444;
}

textarea { resize: vertical; }

input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #f8fafc;
}

input[type="file"]:focus { outline: 2px solid #8a3135; outline-offset: 2px; }

.hint {
  display: block;
  font-size: 0.8rem;
  color: #69727d;
  margin-top: 0.3rem;
}

.field--checkboxes {
  display: flex;
  gap: 2rem;
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #3b3b3b;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #8a3135;
}

.checkbox-label--consent { align-items: flex-start; }
.checkbox-label--consent span { font-size: 0.9rem; color: #69727d; line-height: 1.5; }
.privacy-link { color: #8a3135; text-decoration: none; }
.privacy-link:hover { text-decoration: underline; }

/* ── File list ───────────────────────────────────────────────────────────── */

.file-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #3b3b3b;
  padding: 0.4rem 0.6rem;
  background: #eef0ef;
  border-radius: 4px;
}

.file-list li .status {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
}

.file-list li .status--pending  { color: #94a3b8; }
.file-list li .status--uploading { color: #f59e0b; }
.file-list li .status--done     { color: #22c55e; }
.file-list li .status--error    { color: #ef4444; }

/* ── Error box ───────────────────────────────────────────────────────────── */

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #dc2626;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #8a3135;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

button[type="submit"]:hover { background: #6e2729; }
button[type="submit"]:disabled { background: #94a3b8; cursor: not-allowed; }

/* ── Upload panel ────────────────────────────────────────────────────────── */

#upload-panel h2 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

/* ── Results page — layout ────────────────────────────────────────────────────── */

body.results-page {
  background: url('../assets/hero-solar.jpg') center top / cover no-repeat;
  padding-left: 0;
  padding-right: 0;
}

body.results-page main {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 28px 2rem 64px;
  width: 92%;
  max-width: none;
}

body.results-page h1 {
  font-size: 1.625rem;
  font-weight: 300;
  letter-spacing: 1.2px;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}

body.results-page h1 strong {
  font-weight: 700;
}

body.results-page .page-header {
  background: linear-gradient(135deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.45) 100%);
  border-color: transparent;
  color: #fff;
}

body.results-page .page-meta { color: rgba(255,255,255,0.55); }

/* Reset base section rule — card class handles spacing and borders instead */
body.results-page section,
body.results-page section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ── Page header ─────────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #cacccb;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #94a3b8;
  font-family: "SF Mono", ui-monospace, "Cascadia Mono", "Fira Code", monospace;
}

/* ── Status panel (polling states) ──────────────────────────────────────────── */

body.results-page .status-panel {
  text-align: center;
  padding: 2rem 2rem 1.75rem;
  background: rgba(255,255,255,0.97);
  border: 1px solid #cacccb;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Stage track ─────────────────────────────────────────────────────────────── */

.stage-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.stage-node { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.stage-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  flex-shrink: 0;
}

.stage-done    { background: #dcfce7; color: #15803d; }
.stage-pending { background: #fff; border: 2px solid #e2e8f0; }
.stage-failed  { background: #fee2e2; color: #dc2626; font-size: 13px; }
.stage-active  { background: #fff; border: 2px solid #e2e8f0; }

.stage-active::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #8a3135;
  border-right-color: #8a3135;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.stage-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.stage-label--active { color: #3b3b3b; font-weight: 600; }
.stage-label--done   { color: #64748b; }
.stage-label--failed { color: #dc2626; font-weight: 600; }

.stage-connector {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin-top: 13px;
  min-width: 16px;
}

.stage-connector--done { background: #bbf7d0; }

/* ── Progress and elapsed text ───────────────────────────────────────────────── */

.progress-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #3b3b3b;
  margin-bottom: 0.35rem;
}

.elapsed-text {
  font-size: 0.8rem;
  color: #69727d;
}

/* ── Failed state ────────────────────────────────────────────────────────────── */

.failed-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.875rem;
}

.error-block {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #991b1b;
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", monospace;
  line-height: 1.55;
  text-align: left;
  margin-bottom: 0.875rem;
}

.failed-note {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.btn-new-job {
  display: inline-block;
  background: none;
  border: 1px solid #8a3135;
  border-radius: 4px;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a3135;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.btn-new-job:hover { background: #8a3135; color: #fff; }

/* ── Skeleton table ──────────────────────────────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e8edf3 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f8fafc;
}

.skeleton-row:last-child { border-bottom: none; }

.skeleton-thead {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 9px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sk-th {
  height: 10px;
  border-radius: 3px;
  background: #e2e8f0;
}

.sk-xs  { flex: 0 0 28px; }
.sk-sm  { flex: 0 0 90px; }
.sk-md  { flex: 0 0 130px; }
.sk-lg  { flex: 1; }
.sk-num { flex: 0 0 70px; }

.skeleton-note {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

/* ── Disclaimer ──────────────────────────────────────────────────────────────── */

.disclaimer-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */

.card {
  background: #fff;
  border: 1px solid #cacccb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #eef0ef;
  border-bottom: 1px solid #cacccb;
  gap: 12px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.card-header-divider {
  width: 1px;
  height: 14px;
  background: #cacccb;
  flex-shrink: 0;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a3135;
  white-space: nowrap;
}

.card-name {
  font-size: 13px;
  font-weight: 500;
  color: #3b3b3b;
}

.card-best-case {
  font-size: 12px;
  color: #69727d;
  white-space: nowrap;
}

.card-best-case strong {
  color: #3b3b3b;
  font-weight: 600;
}

.card-body { padding: 20px; }

.card-sub-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a3135;
  margin-top: 18px;
  margin-bottom: 8px;
}

/* ── Metric grid (Analysis Inputs) ──────────────────────────────────────────── */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  padding: 20px 24px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.metric-card:nth-child(3n)        { border-right: none; }
.metric-card:nth-last-child(-n+3) { border-bottom: none; }

.metric-value {
  font-size: 22px;
  font-weight: 600;
  color: #3b3b3b;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric-value--sm  { font-size: 17px; letter-spacing: -0.01em; }
.metric-value--xsm { font-size: 14px; letter-spacing: 0; }

.metric-label {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

/* ── Narrative ───────────────────────────────────────────────────────────────── */

.narrative-text {
  font-size: 14px;
  color: #3b3b3b;
  line-height: 1.65;
}

.assumptions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.assumptions-list li {
  font-size: 13px;
  color: #69727d;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.assumptions-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #cbd5e1;
}

/* ── Pills ───────────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.pill-ok     { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.pill-warn   { background: #fffbeb; color: #b45309; border-color: #fcd34d; }
.pill-no     { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }
.pill-review { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ── Results tables ──────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
  min-width: 580px;
}

.results-table th {
  background: #eef0ef;
  border-bottom: 1px solid #cacccb;
  padding: 9px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #69727d;
  white-space: nowrap;
}

.results-table th.r { text-align: right; }

.results-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef0ef;
  color: #3b3b3b;
  white-space: nowrap;
  vertical-align: middle;
}

.results-table td.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.results-table td.muted { color: #64748b; }

.results-table tr:last-child td { border-bottom: none; }

.results-table tr:hover td { background: #eef0ef; }

/* Infeasible row tint — overrides hover so the boundary stays visible */
.results-table tr.row-infeasible td             { background: #fef2f2; }
.results-table tr.row-infeasible:hover td       { background: #fee2e2; }

.row-reason {
  display: block;
  color: #dc2626;
  font-size: 11px;
  white-space: normal;
  max-width: 260px;
}

/* ── Inline feasibility text ─────────────────────────────────────────────────── */

.f-ok   { color: #15803d; font-weight: 500; font-size: 12px; }
.f-warn { color: #b45309; font-weight: 500; font-size: 12px; }
.f-no   { color: #b91c1c; font-weight: 500; font-size: 12px; }

/* ── Table footnote ──────────────────────────────────────────────────────────── */

.table-note {
  padding: 8px 16px;
  border-top: 1px solid #cacccb;
  background: #eef0ef;
  font-size: 11px;
  color: #69727d;
  font-style: italic;
  line-height: 1.5;
}

/* ── Not-applicable body ─────────────────────────────────────────────────────── */

.not-applicable-body {
  padding: 16px 20px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

/* ── Downloads ───────────────────────────────────────────────────────────────── */

.downloads-grid {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #cacccb;
  border-radius: 2px;
  background: #fff;
  text-decoration: none;
  color: #3b3b3b;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.dl-item:hover { background: #eef0ef; border-color: #8a3135; color: #8a3135; }

.dl-ext {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a3135;
  margin-left: 10px;
}

/* ── Opt-in card ─────────────────────────────────────────────────────────────── */

.optin-body { padding: 20px; }

.optin-intro {
  font-size: 14px;
  color: #475569;
  margin-bottom: 14px;
}

.optin-btn {
  display: inline-block;
  background: #8a3135;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s;
}

.optin-btn:hover:not(:disabled) { background: #6e2729; }

.optin-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.optin-status {
  margin-top: 12px;
  font-size: 13px;
}

.optin-status--ok  { color: #16a34a; }
.optin-status--err { color: #dc2626; }

/* ── Results page: card header accent colour ─────────────────────────────────── */

body.results-page .card-header {
  background: #8a3135;
  border-bottom-color: #6e2729;
}

body.results-page .card-label       { color: #fff; }
body.results-page .card-name        { color: #fff; }
body.results-page .card-best-case   { color: rgba(255,255,255,0.75); }
body.results-page .card-best-case strong { color: #fff; }
body.results-page .card-header-divider  { background: rgba(255,255,255,0.25); }
body.results-page .skeleton-note    { color: rgba(255,255,255,0.6); }

/* ── Intake hero header ──────────────────────────────────────────────────────── */

body.intake-page .page-header {
  background: linear-gradient(135deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.45) 100%);
  border: none;
  color: #fff;
  min-height: 110px;
}
body.intake-page .page-header h1      { color: #fff; font-weight: 300; text-transform: uppercase; letter-spacing: 1.2px; }
body.intake-page .page-header h1 strong { font-weight: 700; }
body.intake-page .page-header .intake-tagline { color: rgba(255,255,255,0.75); }

/* ── Site footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: #000000;
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 2rem 1.75rem;
  border-radius: 0;
  margin-top: 2.5rem;
}
.site-footer-inner     { display: flex; flex-direction: column; gap: 1.25rem; }
.site-footer-brand     { display: flex; align-items: center; gap: 0.75rem; }
.site-footer-brand p   { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.site-footer-links     { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer-links a   { color: rgba(255,255,255,0.55); font-size: 0.82rem; text-decoration: none; transition: color 0.15s; }
.site-footer-links a:hover { color: #8a3135; }
.site-footer-copy      { margin: 0; font-size: 0.78rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; }
.site-footer-copy a    { color: rgba(255,255,255,0.55); text-decoration: none; }
.site-footer-copy a:hover { color: #8a3135; }

/* ── Mobile: strategy card headers ──────────────────────────────────────────── */

@media (max-width: 639px) {
  body.results-page main { padding: 16px 16px 48px; }
  .card-header             { flex-wrap: wrap; gap: 8px; }
  .card-best-case          { display: none; }
  .metric-grid             { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(3n)        { border-right: 1px solid #e2e8f0; }
  .metric-card:nth-child(2n)        { border-right: none; }
  .metric-card:nth-last-child(-n+3) { border-bottom: 1px solid #e2e8f0; }
  .metric-card:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── Intake page — layout ─────────────────────────────────────────────────── */

body.intake-page {
  background: url('../assets/hero-solar.jpg') center top / cover no-repeat;
  padding-left: 0;
  padding-right: 0;
}

body.intake-page main {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 2rem 2rem 5rem;
  width: 92%;
  max-width: none;
}

body.intake-page .info-card,
body.intake-page .form-card {
  max-width: 100%;
}

body.intake-page .page-header {
  justify-content: flex-start;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
  gap: 1rem;
  border-radius: 10px;
}

body.intake-page h1 { font-size: 1.625rem; font-weight: 700; }

.intake-tagline { color: #475569; font-size: 0.9rem; margin-top: 0.2rem; }

/* Focus: REVOV red ring */
body.intake-page input:focus,
body.intake-page textarea:focus {
  border-color: #8a3135;
  box-shadow: 0 0 0 2px rgba(138,49,53,0.15);
}

body.intake-page input.field-invalid,
body.intake-page textarea.field-invalid { border-color: #ef4444; }

body.intake-page input.field-invalid:focus,
body.intake-page textarea.field-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.15);
}

.field-error { font-size: 0.8rem; color: #ef4444; margin-top: 0.3rem; display: none; }
.field-error.visible { display: block; }

/* ── Info cards (What you'll get / How it works) ─────────────────────────── */

.info-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid #cacccb;
  border-radius: 2px;
  padding: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a3135;
  display: block;
  margin-bottom: 1.25rem;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.outcome-item {
  background: #eef0ef;
  border: 1px solid #cacccb;
  border-radius: 2px;
  padding: 1rem 1.125rem;
}

.outcome-title { font-size: 0.875rem; font-weight: 600; color: #3b3b3b; margin-bottom: 0.35rem; }
.outcome-desc  { font-size: 0.825rem; color: #69727d; line-height: 1.5; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step { display: flex; gap: 0.875rem; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8a3135;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title { font-size: 0.875rem; font-weight: 600; color: #3b3b3b; margin-bottom: 0.2rem; }
.step-desc  { font-size: 0.825rem; color: #69727d; line-height: 1.5; }

.timeframe-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #cacccb;
  font-size: 0.85rem;
  color: #69727d;
}

.timeframe-note strong { color: #3b3b3b; }

/* ── Form card ───────────────────────────────────────────────────────────── */

.form-card {
  background: rgba(255,255,255,0.98);
  border: 1px solid #cacccb;
  border-radius: 2px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.form-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eef0ef;
}

.form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.checkbox-row { display: flex; gap: 1.5rem; margin-top: 0.875rem; }

/* ── Dropzone ────────────────────────────────────────────────────────────── */

.dropzone {
  border: 2px dashed #cacccb;
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #eef0ef;
  transition: border-color 0.12s, background 0.12s;
  user-select: none;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: #8a3135;
  background: #f5efef;
}

.dropzone-arrow { font-size: 1.5rem; color: #8a3135; margin-bottom: 0.4rem; }
.dropzone-title { font-size: 0.9rem; font-weight: 600; color: #3b3b3b; margin-bottom: 0.2rem; }
.dropzone-hint  { font-size: 0.8rem; color: #69727d; }

body.intake-page #bills { display: none; }

/* Chip layout for selected-file list (keeps upload-progress list stacked) */
body.intake-page #file-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.625rem;
}

body.intake-page #file-list li {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: #eef0ef;
  border: 1px solid #cacccb;
  border-radius: 2px;
  font-size: 0.8rem;
}

.file-ext {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}

.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.1rem;
  margin-left: 0.1rem;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  transition: color 0.1s;
}

.file-remove:hover { color: #ef4444; }

/* ── Consent label override ──────────────────────────────────────────────── */

.checkbox-label--consent { align-items: flex-start; }
.checkbox-label--consent span { font-size: 0.875rem; color: #69727d; line-height: 1.5; }
body.intake-page .privacy-link { color: #8a3135; }

/* ── Submit button ───────────────────────────────────────────────────────── */

.submit-wrap { text-align: center; margin-top: 1.5rem; }

body.intake-page button[type="submit"] {
  display: inline-block;
  width: auto;
  background: #8a3135;
  border-radius: 4px;
  padding: 0.75rem 2.5rem;
  font-size: 0.95rem;
}

body.intake-page button[type="submit"]:hover    { background: #6e2729; }
body.intake-page button[type="submit"]:disabled { background: #94a3b8; cursor: not-allowed; }

.char-count-right { text-align: right; }

/* ── Intake responsive ───────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .outcome-grid,
  .steps-row { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  body.intake-page main                 { padding: 1.5rem 1rem 3rem; }
  body.intake-page .page-header         { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
