:root {
  --ink: #183249;
  --muted: #66788a;
  --line: #dce5eb;
  --blue: #1769aa;
  --blue-dark: #0e4f85;
  --green: #31835f;
  --amber: #c57921;
  --paper: #ffffff;
  --canvas: #edf3f4;
}

.intake-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(23, 105, 170, .08), transparent 42%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(24, 50, 73, .025) 32px),
    var(--canvas);
}

.intake-shell,
.receipt-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 28px;
}

.intake-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
}

.intake-logo {
  width: 154px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
}

.intake-eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.intake-header h1,
.receipt-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0;
}

.intake-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
/*
.maintenance-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 14px;
  color: #813b12;
  background: #ffe2c2;
  border: 1px solid #f4bb83;
  border-radius: 6px;
  font-size: .875rem;
  line-height: 1.4;
}

.maintenance-notice > i { flex-shrink: 0; color: #bc570c; font-size: 1.25rem; }
.maintenance-notice > div { min-width: 0; }
.maintenance-notice h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.maintenance-notice p { margin: 0; }
.maintenance-notice .maintenance-thanks { margin-top: 2px; font-size: .8rem; }
*/
.document-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-option {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 30px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(25, 57, 76, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.document-option-receipt { border-top-color: var(--green); }
.document-option:hover,
.document-option:focus-visible {
  color: var(--ink);
  transform: translateY(-3px);
  border-color: #aebfca;
  box-shadow: 0 18px 38px rgba(25, 57, 76, .14);
}

.document-option-icon,
.panel-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  background: #e8f2fa;
  border-radius: 8px;
  font-size: 1.65rem;
}

.document-option-receipt .document-option-icon {
  color: var(--green);
  background: #e9f4ee;
}

.document-option-copy { min-width: 0; }
.document-option-copy strong { display: block; font-size: 1.35rem; }
.document-option-copy small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.document-option-arrow { color: var(--muted); font-size: 1.3rem; }

.intake-footer {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .82rem;
}

.receipt-shell { width: min(760px, calc(100% - 32px)); padding-top: 36px; }
.receipt-header { display: grid; grid-template-columns: 42px 86px 1fr; align-items: center; gap: 16px; margin-bottom: 28px; }
.receipt-logo { width: 86px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; }
.receipt-heading h1 { font-size: clamp(1.75rem, 4vw, 2.55rem); }

.receipt-progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.receipt-progress-step { position: relative; display: grid; justify-items: center; gap: 6px; color: #82909b; font-size: .75rem; }
.receipt-progress-step::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.receipt-progress-step:first-child::before { display: none; }
.receipt-progress-step span { width: 34px; height: 34px; display: grid; place-items: center; background: #dbe3e8; border-radius: 50%; font-weight: 800; }
.receipt-progress-step.is-active { color: var(--blue); font-weight: 700; }
.receipt-progress-step.is-active span { color: #fff; background: var(--blue); box-shadow: 0 0 0 4px rgba(23, 105, 170, .13); }
.receipt-progress-step.is-done { color: var(--green); }
.receipt-progress-step.is-done span { color: #fff; background: var(--green); }
.receipt-progress-step.is-done::before { background: var(--green); }

.receipt-panel {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(25, 57, 76, .09);
  animation: panel-in .25s ease-out;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.panel-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.panel-heading small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.panel-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.panel-icon-green { color: var(--green); background: #e9f4ee; }
.panel-icon-amber { color: var(--amber); background: #fff3df; }

.receipt-drop-zone {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #f8fafb;
  border: 2px dashed #b9c7d0;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
}
.receipt-drop-zone > i { color: var(--blue); font-size: 2.5rem; }
.receipt-drop-zone span,
.receipt-drop-zone small { color: var(--muted); }
.receipt-drop-zone:hover,
.receipt-drop-zone:focus-visible,
.receipt-drop-zone.is-dragging { border-color: var(--blue); background: #eef6fb; outline: none; }

.selected-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #edf7f1; border: 1px solid #bddbc9; border-radius: 6px; }
.selected-file > i { color: var(--green); font-size: 1.55rem; }
.selected-file span { min-width: 0; }
.selected-file strong,
.selected-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file small { color: var(--muted); }

#receipt-file-remove {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #657681;
  background: #fff;
  border: 1px solid #c7d8ce;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#receipt-file-remove:hover {
  color: var(--danger);
  background: #fff5f5;
  border-color: #e5aeb5;
}

#receipt-file-remove:focus-visible {
  color: var(--danger);
  border-color: var(--danger);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .16);
}

#receipt-file-remove i {
  display: block;
  line-height: 1;
}

.panel-actions { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 12px; margin-top: 24px; }
.receipt-summary { margin: 0 0 22px; border-top: 1px solid var(--line); }
.receipt-summary div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.receipt-summary dt { color: var(--muted); font-weight: 600; }
.receipt-summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.receipt-review-note { margin: 0 0 18px; color: var(--muted); }
.receipt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.receipt-fields .form-control { min-height: 44px; }
.receipt-date-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.receipt-fields + #receipt-submit-status:not(.d-none) { margin-top: 24px; }
.receipt-success-icon { display: block; margin-bottom: 16px; font-size: 4rem; }
.receipt-success h2 { margin-bottom: 10px; font-size: 1.5rem; font-weight: 700; }
.receipt-success-ref { margin: 4px 0; color: var(--primary); font-size: 1.75rem; font-weight: 700; }

.btn-primary { background-color: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background-color: var(--blue-dark); border-color: var(--blue-dark); }

@media (max-width: 680px) {
  .intake-shell { padding-top: 32px; }
  .intake-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .intake-logo { width: 128px; height: 70px; }
  .document-options { grid-template-columns: 1fr; }
  .document-option { min-height: 140px; padding: 22px; }
  .receipt-header { grid-template-columns: 40px 1fr; }
  .receipt-logo { display: none; }
  .receipt-panel { padding: 22px 18px; }
  .receipt-summary div { grid-template-columns: 1fr; gap: 3px; }
  .receipt-fields { grid-template-columns: 1fr; }
  .panel-actions { grid-template-columns: 1fr; }
  .panel-actions .btn-outline-secondary { order: 2; }
}

/* Keep the new screens in the same visual system as the invoice wizard. */
.intake-body {
  color: #212529;
  background: #f8f9fa;
}

.intake-shell,
.receipt-shell {
  width: min(760px, calc(100% - 24px));
  padding-top: 48px;
}

.intake-header {
  display: block;
  margin-bottom: 28px;
  text-align: center;
}

.intake-logo,
.receipt-logo {
  width: auto;
  height: 60px;
  padding: 0;
  margin-bottom: 16px;
  background: transparent;
  border: 0;
}

.intake-eyebrow {
  display: none;
}

.intake-header h1,
.receipt-heading h1 {
  color: var(--primary);
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
}

.intake-lead {
  margin-top: 7px;
  color: #6c757d;
  font-size: 1rem;
}

.document-options {
  gap: 16px;
}

.document-option {
  min-height: 170px;
  padding: 26px;
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.document-option:hover,
.document-option:focus-visible {
  transform: none;
  border: 0;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.document-option-icon,
.panel-icon {
  color: var(--primary);
  background: rgba(29, 111, 206, .1);
}

.document-option-receipt .document-option-icon,
.panel-icon-green {
  color: var(--primary);
  background: rgba(29, 111, 206, .1);
}

.receipt-header {
  position: relative;
  display: block;
  margin-bottom: 24px;
  text-align: center;
}

.receipt-header > .icon-link {
  position: absolute;
  top: 10px;
  left: 0;
}

.receipt-heading h1 {
  font-size: 2rem;
}

.receipt-progress {
  position: relative;
  margin-bottom: 24px;
}

.receipt-progress-step {
  color: #6c757d;
}

.receipt-progress-step span {
  width: 38px;
  height: 38px;
  background: #dee2e6;
}

.receipt-progress-step.is-active {
  color: var(--primary);
}

.receipt-progress-step.is-active span {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 111, 206, .2);
}

.receipt-progress-step.is-done {
  color: var(--success);
}

.receipt-progress-step.is-done span {
  background: var(--success);
}

.receipt-panel {
  padding: 32px;
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.panel-heading h2 {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
}

.panel-heading small {
  color: #6c757d;
}

.receipt-drop-zone {
  background: #fff;
  border-color: #ced4da;
  border-radius: .6rem;
}

.receipt-drop-zone:hover,
.receipt-drop-zone:focus-visible,
.receipt-drop-zone.is-dragging {
  border-color: var(--primary);
  background: rgba(29, 111, 206, .04);
}

.selected-file {
  background: rgba(25, 135, 84, .04);
  border-color: var(--success);
}

.intake-footer {
  color: #6c757d;
}

@media (max-width: 680px) {
  .intake-shell,
  .receipt-shell {
    padding-top: 28px;
  }

  .intake-header {
    display: block;
  }

  .intake-logo {
    width: auto;
    height: 60px;
  }

  .intake-header h1,
  .receipt-heading h1 {
    font-size: 1.65rem;
  }

  .document-option {
    min-height: 132px;
  }

  .receipt-header {
    display: block;
  }

  .receipt-logo {
    display: inline-block;
  }

  .receipt-header > .icon-link {
    top: 8px;
  }

  .receipt-panel {
    padding: 24px;
  }
}