/* VA Form Finder */
.va-forms-page {
  background: #fff;
}
.forms-hero {
  padding: 54px 0 58px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.12), transparent 27rem),
    linear-gradient(130deg, #071c34 0%, #0c2d53 58%, #174b78 100%);
  color: #fff;
}
.forms-hero-inner {
  max-width: 900px;
}
.forms-back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 700;
}
.forms-back-link:hover {
  color: #fff;
}
.forms-hero .eyebrow {
  color: #ffb7c4;
}
.forms-hero h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.forms-hero-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
  line-height: 1.65;
}
.forms-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  margin-top: 27px;
  padding: 7px 10px 7px 15px;
  border-radius: 9px;
  background: #fff;
}
.forms-search > i {
  color: #52667f;
  font-size: 1rem;
}
.forms-search input {
  width: 100%;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
}
.forms-search input::placeholder {
  color: #7c8999;
}
.forms-search kbd {
  display: inline-grid;
  width: 28px;
  height: 26px;
  place-items: center;
  border: 1px solid #d9e0e8;
  border-radius: 6px;
  background: #f6f8fa;
  color: #6b7787;
  font-family: inherit;
  font-size: 0.72rem;
}
.forms-result-count {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}
.forms-library {
  padding: 52px 0 76px;
}
.forms-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: end;
}
.forms-library-head > div > .eyebrow,
.forms-next-step .eyebrow {
  color: var(--red);
}
.forms-library-head h2 {
  margin: 7px 0 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.forms-library-head > div > p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.forms-source-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #f7f9fc;
}
.forms-source-note > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #e7eef6;
  color: #37699f;
  font-size: 0.95rem;
}
.forms-source-note p {
  margin: 0;
  color: #5d6b7c;
  font-size: 0.73rem;
  line-height: 1.5;
}
.forms-source-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 0.76rem;
}
.forms-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 34px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.forms-filter {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  background: #fff;
  color: #526275;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
}
.forms-filter span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #eef2f6;
  color: #667487;
  font-size: 0.65rem;
}
.forms-filter:hover {
  border-color: #9bacbf;
  color: var(--navy);
}
.forms-filter.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.forms-filter.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-card {
  display: flex;
  min-height: 250px;
  padding: 21px;
  border: 1px solid #dbe1e8;
  border-radius: 11px;
  background: #fff;
  flex-direction: column;
}
.form-card[hidden] {
  display: none;
}
.form-card:hover {
  border-color: #a9b7c6;
  box-shadow: 0 9px 24px rgba(12, 35, 64, 0.07);
}
.form-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.form-number {
  color: #2e5f94;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}
.form-online,
.form-pdf {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 700;
  white-space: nowrap;
}
.form-online {
  background: #eaf5ef;
  color: #276544;
}
.form-pdf {
  background: #f1f3f6;
  color: #657284;
}
.form-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.38;
  letter-spacing: -0.015em;
}
.form-card > p {
  margin: 8px 0 19px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.52;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.form-action {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}
.form-action--secondary {
  border-color: #ccd6e1;
  background: #fff;
  color: #405873;
}
.form-action--secondary:hover {
  border-color: #8fa1b4;
  color: var(--navy);
}
.form-action--primary {
  background: var(--red);
  color: #fff;
}
.form-action--primary:hover {
  background: #aa1e32;
  color: #fff;
}
.forms-empty {
  padding: 70px 20px;
  text-align: center;
}
.forms-empty[hidden] {
  display: none;
}
.forms-empty > i {
  color: #9aa7b6;
  font-size: 1.8rem;
}
.forms-empty h2 {
  margin: 12px 0 6px;
  color: var(--navy);
  font-size: 1.2rem;
}
.forms-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.forms-next-step {
  padding: 54px 0;
  background: #eef3f8;
}
.forms-next-step-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.forms-next-step h2 {
  margin: 6px 0 7px;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}
.forms-next-step p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.forms-next-step .button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 800px) {
  .forms-library-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .forms-source-note {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .forms-hero {
    padding: 42px 0 46px;
  }
  .forms-back-link {
    margin-bottom: 26px;
  }
  .forms-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
  .forms-library {
    padding: 42px 0 58px;
  }
  .forms-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    min-height: 0;
  }
  .forms-next-step-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .forms-search {
    grid-template-columns: 21px minmax(0, 1fr);
  }
  .forms-search kbd {
    display: none;
  }
  .forms-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }
  .forms-filter {
    flex: 0 0 auto;
  }
  .form-card {
    padding: 18px;
  }
  .form-card-top {
    align-items: flex-start;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .form-action {
    width: 100%;
  }
  .forms-next-step .button {
    width: 100%;
    justify-content: center;
  }
}
