/* NMCB Application Status Page — compact task-focused redesign */
.status-page {
  min-height: 70vh;
  background:
    radial-gradient(circle at 8% 20%, rgba(14, 119, 128, .07), transparent 26rem),
    linear-gradient(180deg, #f6fafb 0, #ffffff 42rem);
}

.status-page-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 40px;
  color: white;
  background:
    radial-gradient(circle at 88% 0%, rgba(231, 120, 23, .34), transparent 19rem),
    linear-gradient(125deg, #082b3c 0%, #0d4556 62%, #0b5e63 100%);
}

.status-page-hero::after {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  content: "";
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255,255,255,.035),
    0 0 0 88px rgba(255,255,255,.025);
}

.status-page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
}

.status-kicker,
.status-card-eyebrow {
  display: block;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.status-kicker {
  margin-bottom: 8px;
  color: #ffc991;
}

.status-page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.status-page-hero p {
  max-width: 660px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.65;
}

.status-secure-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 310px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 18px;
  background: rgba(4, 31, 44, .32);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(8px);
}

.status-secure-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(231, 120, 23, .92);
  font-weight: 950;
}

.status-secure-badge strong,
.status-secure-badge span {
  display: block;
}

.status-secure-badge strong {
  font-size: .88rem;
}

.status-secure-badge div > span {
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: .74rem;
  line-height: 1.35;
}

.status-breadcrumb {
  border-bottom: 1px solid #dce8e9;
  background: rgba(255,255,255,.92);
}

.status-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #6d7d82;
  font-size: .78rem;
}

.status-breadcrumb a {
  color: #38656a;
  text-decoration: none;
}

.status-breadcrumb a:hover {
  color: var(--orange-dark);
}

.status-main-section {
  padding: 34px 0 68px;
}

.status-page-container {
  width: min(100%, 980px);
}

.status-guidance-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #efd6bb;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffaf4, #fff5e9);
  box-shadow: 0 8px 20px rgba(89, 56, 22, .04);
}

.status-guidance-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange-dark);
  font-family: Georgia, serif;
  font-weight: 900;
}

.status-guidance-copy strong,
.status-guidance-copy span {
  display: block;
}

.status-guidance-copy strong {
  color: var(--navy);
  font-size: .85rem;
}

.status-guidance-copy span {
  margin-top: 1px;
  color: #66777d;
  font-size: .78rem;
  line-height: 1.45;
}

.status-guidance-strip > a {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.status-guidance-strip > a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.status-lookup-card,
.status-results-shell {
  border: 1px solid #dce8e9;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 52, 70, .09);
}

.status-lookup-card {
  padding: 26px 28px 28px;
}

.status-card-heading,
.status-results-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-step-number {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--teal), #0a6269);
  box-shadow: 0 7px 15px rgba(14,119,128,.18);
  font-size: .9rem;
  font-weight: 950;
}

.status-step-complete {
  background: linear-gradient(135deg, #19805c, #116f53);
}

.status-card-eyebrow {
  margin-bottom: 4px;
  color: var(--orange-dark);
  font-size: .66rem;
}

.status-card-heading h2,
.status-results-header h2,
.status-section-heading h3,
.status-detail-card h3 {
  margin: 0;
  color: var(--navy);
}

.status-card-heading h2,
.status-results-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.status-card-heading p,
.status-results-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.status-lookup-form {
  margin-top: 22px;
}

.status-field label,
.status-verification-group legend {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 850;
}

.status-input-wrap {
  position: relative;
}

.status-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  transform: translateY(-50%);
  color: #5c777c;
  border-radius: 7px;
  background: #edf5f5;
  font-size: .67rem;
  font-weight: 950;
  pointer-events: none;
}

.status-input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px 11px 48px;
  color: var(--navy);
  border: 1px solid #ceddde;
  border-radius: 13px;
  outline: none;
  background: #fbfdfd;
  font: inherit;
  font-size: .91rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.status-input-wrap input:hover {
  border-color: #a9c6c8;
  background: white;
}

.status-input-wrap input:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(14,119,128,.10);
}

.status-input-wrap input[aria-invalid="true"] {
  border-color: #b84d28;
  box-shadow: 0 0 0 4px rgba(184,77,40,.09);
}

.status-field > small {
  display: block;
  margin-top: 6px;
  color: #7a898e;
  font-size: .72rem;
}

.status-field-reference {
  margin-bottom: 18px;
}

.status-verification-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.status-verification-group legend {
  padding: 0;
}

.status-verification-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.status-or-divider {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  place-items: center;
  border: 1px solid #d7e4e5;
  border-radius: 50%;
  color: #7e9095;
  background: #f7fbfb;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-inline-error {
  margin-top: 10px;
  padding: 10px 12px;
  color: #7a2d19;
  border: 1px solid #efc2b2;
  border-radius: 11px;
  background: #fff3ee;
  font-size: .78rem;
  font-weight: 700;
}

.status-privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #516d72;
  background: #eff7f7;
}

.status-privacy-row > span {
  margin-top: 3px;
  color: var(--teal);
  font-size: .55rem;
}

.status-privacy-row p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.5;
}

.status-lookup-card .submission-status {
  margin-top: 13px;
  padding: 12px 14px;
  font-size: .8rem;
}

.status-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.status-submit-button {
  position: relative;
  min-width: 225px;
}

.status-submit-button.is-loading {
  pointer-events: none;
}

.status-submit-button.is-loading::before {
  width: 15px;
  height: 15px;
  margin-right: 9px;
  content: "";
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: white;
  border-radius: 50%;
  animation: status-spin .75s linear infinite;
}

.status-secondary-link {
  color: var(--teal);
  font-size: .79rem;
  font-weight: 800;
  text-decoration: none;
}

.status-secondary-link:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.status-results-shell {
  margin-top: 22px;
  padding: 28px;
  scroll-margin-top: 24px;
}

.status-results-shell.status-is-revealing {
  animation: status-reveal .42s ease both;
}

.status-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 21px;
  border-bottom: 1px solid #e1ebec;
}

.status-results-header h2 {
  overflow-wrap: anywhere;
}

.status-results-title p {
  font-size: .8rem;
}

.status-badge {
  max-width: 290px;
  min-width: 180px;
  padding: 10px 15px;
  line-height: 1.35;
}

.status-progress-panel {
  margin: 22px 0;
  padding: 19px 20px 18px;
  border: 1px solid #dce8e9;
  border-radius: 17px;
  background: linear-gradient(135deg, #f9fcfc, #f2f8f8);
}

.status-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.status-section-heading h3 {
  font-size: 1rem;
}

.status-section-heading > span {
  color: #718389;
  font-size: .72rem;
  text-align: right;
}

.status-progress-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-progress-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8a999d;
  text-align: center;
}

.status-progress-track li::before,
.status-progress-track li::after {
  position: absolute;
  top: 14px;
  z-index: 0;
  width: 50%;
  height: 3px;
  content: "";
  background: #d9e5e6;
}

.status-progress-track li::before { left: 0; }
.status-progress-track li::after { right: 0; }
.status-progress-track li:first-child::before,
.status-progress-track li:last-child::after { display: none; }

.status-progress-track li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid #d9e5e6;
  border-radius: 50%;
  background: white;
  font-size: .69rem;
  font-weight: 900;
}

.status-progress-track li strong {
  max-width: 110px;
  font-size: .7rem;
  line-height: 1.25;
}

.status-progress-track li.is-complete,
.status-progress-track li.is-active {
  color: var(--navy);
}

.status-progress-track li.is-complete::before,
.status-progress-track li.is-complete::after,
.status-progress-track li.is-active::before {
  background: #62aaa7;
}

.status-progress-track li.is-complete > span {
  color: white;
  border-color: #2b8d7f;
  background: #2b8d7f;
}

.status-progress-track li.is-active > span {
  color: white;
  border-color: var(--orange-dark);
  background: var(--orange-dark);
  box-shadow: 0 0 0 5px rgba(231,120,23,.12);
}

.status-summary-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.status-summary-grid-compact div {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f8fbfb;
}

.status-summary-grid-compact strong {
  overflow-wrap: anywhere;
  font-size: .87rem;
}

.status-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 15px;
}

.status-detail-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dce8e9;
  border-radius: 17px;
  background: white;
}

.status-detail-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.status-detail-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: #eaf5f5;
  font-weight: 900;
}

.status-detail-card h3 {
  font-size: 1rem;
}

.status-timeline-polished,
.document-summary-polished {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-timeline-polished li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 25px;
}

.status-timeline-polished li:last-child {
  padding-bottom: 0;
}

.status-timeline-polished li::before {
  position: absolute;
  top: 3px;
  left: 1px;
  z-index: 1;
  width: 11px;
  height: 11px;
  content: "";
  border: 3px solid white;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px #7bb9b7;
}

.status-timeline-polished li::after {
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 6px;
  width: 1px;
  content: "";
  background: #d8e5e6;
}

.status-timeline-polished li:last-child::after {
  display: none;
}

.status-timeline-polished strong,
.document-summary-polished strong {
  display: block;
  color: var(--navy);
  font-size: .82rem;
  line-height: 1.35;
}

.status-timeline-polished span,
.document-summary-polished span {
  display: block;
  margin-top: 2px;
  color: #7a898e;
  font-size: .7rem;
  line-height: 1.4;
}

.status-timeline-polished p {
  margin: 5px 0 0;
  color: #5e7176;
  font-size: .76rem;
  line-height: 1.48;
}

.document-summary-polished li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 9px;
  padding: 10px 11px;
  border: 1px solid #e2ebec;
  border-radius: 12px;
  background: #fafcfc;
}

.document-summary-polished li::before {
  display: grid;
  width: 27px;
  height: 27px;
  content: "✓";
  place-items: center;
  border-radius: 8px;
  color: #19704f;
  background: #e9f6f0;
  font-size: .72rem;
  font-weight: 950;
}

.status-empty-item {
  padding: 13px !important;
  color: #687b80;
  border: 1px dashed #ceddde !important;
  border-radius: 12px;
  background: #fafcfc;
  font-size: .77rem;
}

.status-empty-item::before,
.status-empty-item::after {
  display: none !important;
}

.status-document-safety {
  margin: 12px 0 0;
  color: #7a898e;
  font-size: .7rem;
  line-height: 1.45;
}

.status-result-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: 15px;
  color: #dfeff0;
  background: linear-gradient(135deg, #0d3446, #0b5259);
}

.status-result-help strong,
.status-result-help span {
  display: block;
}

.status-result-help strong {
  color: white;
  font-size: .84rem;
}

.status-result-help span {
  margin-top: 2px;
  font-size: .73rem;
}

.status-result-help .button.secondary {
  flex: 0 0 auto;
  color: white;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
}

.status-result-help .button.secondary:hover {
  background: rgba(255,255,255,.16);
}

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

@keyframes status-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .status-page-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .status-secure-badge {
    max-width: 440px;
  }

  .status-detail-grid {
    grid-template-columns: 1fr;
  }

  .status-summary-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .status-page-hero {
    padding: 30px 0 32px;
  }

  .status-page-hero p {
    font-size: .9rem;
  }

  .status-main-section {
    padding: 24px 0 48px;
  }

  .status-guidance-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .status-guidance-strip > a {
    grid-column: 2;
    justify-self: start;
  }

  .status-lookup-card,
  .status-results-shell {
    padding: 21px 18px;
    border-radius: 19px;
  }

  .status-verification-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .status-or-divider {
    width: auto;
    height: auto;
    margin: -2px 0;
    border: 0;
    background: none;
  }

  .status-form-actions,
  .status-results-header,
  .status-section-heading,
  .status-result-help {
    align-items: stretch;
    flex-direction: column;
  }

  .status-submit-button {
    width: 100%;
  }

  .status-secondary-link {
    text-align: center;
  }

  .status-badge {
    align-self: flex-start;
    min-width: 0;
  }

  .status-summary-grid-compact {
    grid-template-columns: 1fr;
  }

  .status-progress-panel {
    overflow-x: auto;
    padding-inline: 14px;
  }

  .status-progress-track {
    min-width: 560px;
  }

  .status-result-help .button.secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-results-shell.status-is-revealing {
    animation: none;
  }

  .status-submit-button.is-loading::before {
    animation-duration: 1.5s;
  }
}
