body {
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

.intake-page {
  min-height: 100vh;
  padding: 40px clamp(18px, 6vw, 90px);
}

.intake-brand {
  margin-bottom: 42px;
}

.intake-logo-link {
  display: inline-block;
}

.intake-logo {
  width: 220px;
  height: auto;
  display: block;
}

.intake-wrap {
  max-width: 940px;
  margin: 0 auto;
}

.intake-pill {
  display: inline-block;
  background: #e60012;
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.intake-title {
  color: #e60012;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.intake-copy {
  font-size: 18px;
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 0;
}

.intake-card,
.intake-success {
  margin-top: 32px;
  padding: clamp(22px, 5vw, 42px);
  border-radius: 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .08);
  opacity: 1;
  transition: opacity 190ms ease;
}

.journey-progress {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 16px;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #e60012;
  margin-bottom: 18px;
}

.journey-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f1f1;
}

.journey-progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: #e60012;
  transition: width 240ms ease;
}

.journey-step-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.journey-step-list li {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f6f6f6;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.journey-step-list li.is-active {
  background: #e60012;
  color: #fff;
}

.journey-step-list li.is-complete {
  color: #111;
  background: #ffe5e7;
}

.journey-panel {
  opacity: 1;
  transition: opacity 190ms ease;
}

.journey-panel.is-fading,
.intake-card.is-fading,
.intake-success.is-fading {
  opacity: 0;
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin: 0;
  color: #111;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.panel-heading p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #666;
  line-height: 1.5;
}

.panel-kicker {
  margin: 0 0 8px !important;
  color: #e60012 !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.applicant-grid {
  display: grid;
  gap: 28px;
}

.applicant-block {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}

.applicant-block legend {
  padding: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 900;
}

.field,
.money-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span,
.money-field span {
  color: #555;
  font-size: 13px;
  font-weight: 800;
}

.field-full {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.field-row:has(.field:nth-child(3)) {
  grid-template-columns: minmax(0, 1.2fr) minmax(90px, .7fr) minmax(110px, .8fr);
}

.intake-input {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #111;
  padding: 14px 16px;
  font-size: 16px;
}

.intake-input:focus {
  outline: 3px solid rgba(230, 0, 18, .16);
  border-color: #e60012;
}

.intake-input[readonly] {
  background: #f8f8f8;
  color: #555;
}

textarea.intake-input {
  min-height: 132px;
  resize: vertical;
}

.question-list {
  display: grid;
  gap: 14px;
}

.choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eee;
  padding: 0 0 14px;
  margin: 0;
}

.choice-row legend {
  padding: 0;
  color: #222;
  font-weight: 800;
  line-height: 1.35;
}

.choice-group {
  display: flex;
  gap: 8px;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-weight: 800;
}

.entry-table {
  display: grid;
  gap: 0;
  border-top: 1px solid #eee;
}

.entry-header,
.entry-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(110px, .9fr);
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid #eee;
  padding: 13px 0;
}

.income-table .entry-header,
.income-table .entry-row {
  grid-template-columns: minmax(210px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr);
}

.liability-table .entry-header,
.liability-table .entry-row {
  grid-template-columns: minmax(170px, 1.1fr) minmax(130px, 1fr) minmax(120px, .8fr);
}

.entry-header {
  color: #777;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-name {
  align-self: center;
  color: #222;
  font-weight: 900;
  line-height: 1.25;
}

.asset-note {
  margin-top: 8px;
}

.money-output {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #f8f8f8;
  color: #111;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 900;
}

.money-output.is-negative {
  color: #b0000d;
}

.mobile-field-label {
  display: none;
}

.totals-strip,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.totals-strip-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.totals-strip > div,
.summary-grid > div {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 92px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
}

.totals-strip span,
.summary-grid span {
  color: #666;
  font-size: 13px;
  font-weight: 800;
}

.totals-strip output,
.summary-grid output {
  color: #111;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
}

.totals-strip output.is-negative,
.summary-grid output.is-negative {
  color: #b0000d;
}

.liability-actions {
  margin-top: 18px;
}

.journey-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.intake-button,
.secondary-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.intake-button {
  background: #e60012;
  color: white;
}

.secondary-button {
  background: #f2f2f2;
  color: #111;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.intake-button:disabled {
  cursor: wait;
  opacity: .7;
}

.intake-error {
  margin: 0 0 18px;
  color: #b0000d;
  font-weight: 800;
}

.intake-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake-success h2 {
  color: #e60012;
  margin-top: 0;
}

.intake-privacy {
  margin-top: 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #333;
  font-weight: 800;
  line-height: 1.35;
}

.consent-line input {
  margin-top: 3px;
}

.pdf-link {
  display: inline-block;
  margin-top: 18px;
  color: #e60012;
  font-weight: 900;
  text-decoration: none;
}

.pdf-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .journey-step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .totals-strip-three,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .intake-page {
    padding-top: 28px;
  }

  .intake-logo {
    width: 170px;
  }

  .intake-brand {
    margin-bottom: 34px;
  }

  .journey-progress {
    grid-template-columns: 1fr;
  }

  .journey-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-row,
  .field-row:has(.field:nth-child(3)),
  .choice-row,
  .entry-header,
  .entry-row,
  .income-table .entry-header,
  .income-table .entry-row,
  .liability-table .entry-header,
  .liability-table .entry-row,
  .totals-strip,
  .totals-strip-three,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .entry-header {
    display: none;
  }

  .mobile-field-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
    font-weight: 800;
  }

  .choice-group {
    width: 100%;
  }

  .choice-group label {
    justify-content: center;
    flex: 1;
  }

  .journey-actions {
    flex-direction: column-reverse;
  }

  .journey-actions button {
    width: 100%;
  }
}
