.application-shell {
  max-width: 1000px;
  padding-bottom: 80px;
}
.application-shell p {
  font-size: 0.9rem;
}
.application-shell fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.application-shell h2 {
  font-size: 2.2rem;
}
.application-shell h3 {
  font-size: 1.15rem;
}
.application-notice {
  padding: 20px 24px;
  border: 1px solid #b4cce5;
  border-left: 5px solid #062f66;
  background: #eef7ff;
  border-radius: 8px;
  margin-bottom: 22px;
  color: #062f66;
}
.application-notice p:last-child {
  margin-bottom: 0;
}
.preview-banner {
  background: #fff3d5;
  border-color: #aa6b00;
  color: #653d00;
}
.application-privacy {
  max-width: 850px;
  margin-bottom: 28px;
}
.step-progress {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 28px 0;
}
.step-progress p {
  white-space: nowrap;
  margin: 0;
  font-weight: 700;
}
.step-progress progress {
  height: 12px;
  flex: 1;
  width: 100%;
  accent-color: #062f66;
}
.application-step {
  background: white;
  padding: 30px !important;
  border: 1px solid #dce4f0 !important;
  border-radius: 12px;
}
.application-step[hidden],
.spouse-only[hidden],
.application-controls [hidden],
.application-result[hidden] {
  display: none !important;
}
.application-step h2 {
  scroll-margin-top: 25px;
}
.application-step h2:focus,
.application-result h2:focus {
  outline: 3px solid #ed1046;
  outline-offset: 5px;
}
.application-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin: 22px 0;
}
.application-field {
  min-width: 0;
}
.application-field.wide {
  grid-column: 1/-1;
}
.application-shell label {
  font-size: 0.82rem;
  line-height: 1.55;
}
.application-shell input:not([type="checkbox"]),
.application-shell select,
.application-shell textarea {
  font: inherit;
  font-size: 0.9rem;
  color: #062f66;
  padding: 11px 12px;
  border: 1px solid #8ca3c3;
  border-radius: 5px;
  background: #fff;
  width: 100%;
  min-width: 0;
}
.application-shell textarea {
  resize: vertical;
}
.application-shell select {
  min-height: 46px;
}
.required {
  font-weight: 400;
  font-size: 0.75rem;
}
.application-shell .check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
}
.application-shell input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: #062f66;
}
.application-shell .secondary-button,
.application-shell a.secondary-button {
  display: inline-block;
  background: #fff;
  color: #062f66;
  border: 1px solid #062f66;
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 18px;
  min-height: 44px;
  text-decoration: none;
  text-align: center;
}
.application-shell .secondary-button:hover {
  background: #e4f6ff;
}
.application-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: 25px 0;
}
.application-shell .text-button {
  min-height: 44px;
}
.application-error {
  color: #a2182b !important;
  font-weight: 600;
  white-space: pre-wrap;
}
.budget-table-wrap {
  overflow-x: auto;
  margin: 25px 0;
}
.application-budget {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.application-budget caption {
  text-align: left;
  color: #46566e;
  font-size: 0.83rem;
  margin-bottom: 16px;
}
.application-budget th,
.application-budget td {
  padding: 12px 10px;
  border-bottom: 1px solid #dce4f0;
  text-align: left;
}
.application-budget thead th {
  background: #062f66;
  color: white;
}
.application-budget input {
  min-width: 105px !important;
}
.application-budget th[scope="row"] {
  min-width: 180px;
  font-weight: 500;
}
.application-budget output {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.budget-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: #eef7ff;
  padding: 20px;
  border-radius: 8px;
}
.budget-summary dt {
  font-size: 0.8rem;
}
.budget-summary dd {
  margin: 5px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.asset-row {
  border-bottom: 1px solid #dce4f0;
  padding: 15px 0;
}
.application-shell .dynamic-row {
  border: 1px solid #b4cce5;
  border-radius: 8px;
  padding: 18px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dynamic-row legend {
  font-weight: 700;
  padding: 0 8px;
}
.dynamic-row .text-button {
  justify-self: start;
}
.application-shell #spouse-fields {
  border-top: 2px solid #4ce5ff;
  padding-top: 20px;
  margin: 30px 0;
}
.application-shell #spouse-fields > legend {
  font-family: "Lobster Two", Georgia, serif;
  font-weight: 700;
  font-size: 1.8rem;
}
#feasibility-consent {
  margin: 25px 0;
  padding: 22px 24px;
  background: #f4f8fd;
  border-left: 4px solid #062f66;
  font-size: 0.95rem;
}
.attachment-reminder {
  color: #9b1728;
  background: #fff2f3;
  border: 1px solid #eab3bb;
  border-left: 5px solid #b42332;
  border-radius: 8px;
  padding: 22px;
  margin: 24px 0;
}
.attachment-reminder p {
  color: #9b1728;
}
.attachment-reminder ul {
  padding-left: 20px;
}
.attachment-reminder li {
  margin: 10px 0;
}
.application-review {
  padding: 18px;
  border: 1px solid #b4cce5;
  border-radius: 8px;
}
.application-review summary {
  cursor: pointer;
  font-weight: 700;
}
.application-review pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.85rem;
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 0;
}
.application-shell .document-checklist {
  padding: 18px;
  border: 1px solid #dce4f0;
  border-radius: 8px;
}
.document-checklist legend {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 8px;
}
#turnstile-container {
  margin-top: 25px;
  max-width: 100%;
  overflow: auto;
}
.application-result {
  background: #eef7ff;
  border: 1px solid #b4cce5;
  border-radius: 10px;
  padding: 28px;
  margin-top: 30px;
}
.application-result a {
  font-size: 0.85rem;
}
.application-result textarea {
  font-size: 0.82rem;
  line-height: 1.7;
}
.honeypot,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 700px) {
  .application-grid {
    grid-template-columns: 1fr;
  }
  .application-step {
    padding: 20px !important;
  }
  .application-shell .dynamic-row {
    grid-template-columns: 1fr;
  }
  .application-shell h2 {
    font-size: 1.85rem;
  }
  .budget-table-wrap {
    margin-inline: -4px;
  }
  .application-budget th,
  .application-budget td {
    padding: 10px 7px;
  }
  .application-budget th[scope="row"] {
    min-width: 135px;
  }
  .application-budget input {
    min-width: 90px !important;
  }
  .application-result {
    padding: 20px;
  }
  .application-notice {
    padding: 18px;
  }
  .application-controls {
    gap: 12px;
  }
  .application-controls .button {
    width: 100%;
  }
  .step-progress {
    gap: 15px;
  }
}
