/* Resource download form. No card wrapper - the form sits directly on
   the section's glass strip so the page reads as one continuous
   surface. Kept narrow and centered for a focused, standalone feel. */

.resource-download {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* On the standalone /download/ page (template: page-download.php) the
   form is the only section, so vertically center it in the remaining
   viewport height below the header. */
.page-template-page-download .site-main {
  justify-content: center;
}
.page-template-page-download .resource-download {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.resource-download__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 34rem;
  margin-inline: auto;
  text-align: left;
}

.resource-download__eyebrow {
  margin-bottom: 0.875rem;
  align-self: center;
}

.resource-download__heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-foreground);
  text-align: center;
  text-wrap: balance;
}

.resource-download__sub {
  margin: 0 auto 1.5rem;
  font-size: var(--fs-base);
  color: var(--color-muted-foreground);
  line-height: var(--lh-snug);
  max-width: 48ch;
  text-align: center;
}

.resource-download__form {
  width: 100%;
}

.resource-download__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.resource-download__legal {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-muted-foreground);
  text-align: center;
  line-height: var(--lh-snug);
}

/* --- Inline feedback -------------------------------------------- */

.resource-download__feedback {
  margin: 0 0 1rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.resource-download__feedback--ok {
  color: var(--color-foreground);
  background: color-mix(in oklch, var(--brand-teal) 10%, transparent);
  border-color: color-mix(in oklch, var(--brand-teal) 35%, transparent);
}
.resource-download__feedback--error {
  color: var(--color-foreground);
  background: color-mix(in oklch, oklch(0.58 0.18 25) 10%, transparent);
  border-color: color-mix(in oklch, oklch(0.58 0.18 25) 40%, transparent);
}
