/* ==========================================================================
   Patient Forms readability + polish
   ========================================================================== */
.forms-hero {
  padding: var(--space-9) 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--aim-sky-soft) 100%);
}

.forms-hero__title {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.92;
  margin-bottom: var(--space-5);
}

.forms-hero__title em {
  color: var(--aim-sky-700, #4fa3d9);
  font-style: italic;
  font-weight: 500;
}

.forms-hero__copy {
  max-width: 54ch;
  margin-bottom: var(--space-6);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--aim-text, #334155);
}

.forms-directory {
  padding: var(--space-9) 0;
  background: #fff;
}

.forms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.9fr);
  gap: clamp(1.75rem, 3vw, 4rem);
  align-items: start;
}

.forms-group--secondary {
  margin-top: var(--space-8);
}

.forms-group-title {
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--aim-navy, #082d63);
}

.forms-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.55rem;
  border: 1px solid rgba(79, 163, 217, 0.22);
  border-radius: 1.7rem;
  box-shadow: 0 10px 28px rgba(8, 45, 99, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #fcfeff 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 45, 99, 0.08);
  border-color: rgba(79, 163, 217, 0.38);
}

.form-card__content {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.form-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #eff8fd 0%, #e4f1f9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(79, 163, 217, 0.12);
}

.form-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.form-card__text {
  min-width: 0;
}

.form-card__title {
  font-size: 1.55rem;
  line-height: 1.05;
  margin: 0 0 0.35rem;
  color: var(--aim-navy, #082d63);
}

.form-card__meta {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--aim-muted, #596579);
  font-weight: 500;
}

.form-card__action {
  flex-shrink: 0;
  min-width: 8.9rem;
  min-height: 2.9rem;
  justify-content: center;
  padding: 0 1.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.forms-side-card {
  position: sticky;
  top: 112px;
  padding: clamp(1.5rem, 2vw, 2.1rem);
  background: linear-gradient(180deg, var(--aim-sky-soft) 0%, #edf7fc 100%);
  border-radius: 1.8rem;
  box-shadow: 0 18px 40px rgba(8, 45, 99, 0.07);
  border: 1px solid rgba(79, 163, 217, 0.16);
}

.forms-side-card__title,
.forms-side-card__subhead {
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 0 0 0.85rem;
  color: var(--aim-navy, #082d63);
}

.forms-side-card__subhead {
  font-size: 1.3rem;
  margin-top: 0;
}

.forms-side-card__copy {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--aim-text, #334155);
  margin: 0 0 1.25rem;
}

.forms-side-card__portal,
.forms-side-card__contact {
  width: 100%;
  justify-content: center;
}

.forms-side-card__portal {
  margin-bottom: 0.85rem;
}

.forms-side-card__note,
.forms-side-card__call {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  color: var(--aim-muted, #596579);
  margin: 0;
}

.forms-side-card__divider {
  border: none;
  border-top: 1px solid rgba(8, 45, 99, 0.1);
  margin: 1.45rem 0;
}

.forms-side-card__call {
  margin-top: 0.85rem;
}

.forms-side-card__call a {
  color: var(--aim-blue, #082d63);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 980px) {
  .forms-layout {
    grid-template-columns: 1fr;
  }

  .forms-side-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .forms-hero__title {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .forms-hero__copy {
    font-size: 1rem;
  }

  .forms-group-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .form-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .form-card__content {
    align-items: flex-start;
  }

  .form-card__action {
    width: 100%;
    margin-top: 0.35rem;
  }

  .form-card__title {
    font-size: 1.35rem;
  }

  .form-card__meta {
    font-size: 0.96rem;
  }
}

/* Patient forms print-and-bring reminder */
.forms-print-reminder {
  margin: 0 0 var(--space-6);
  padding: 1.35rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid rgba(79, 163, 217, 0.22);
  border-radius: 1.6rem;
  box-shadow: 0 12px 28px rgba(8, 45, 99, 0.055);
}

.forms-print-reminder__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
  color: var(--aim-navy, #082d63);
}

.forms-print-reminder__copy {
  margin: 0;
  max-width: 68ch;
  color: var(--aim-text, #334155);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .forms-print-reminder {
    padding: 1.15rem;
    border-radius: 1.35rem;
  }

  .forms-print-reminder__title {
    font-size: 1.25rem;
  }

  .forms-print-reminder__copy {
    font-size: 0.96rem;
    line-height: 1.62;
  }
}
