:root {
  color-scheme: light;
  --navy: #304f78;
  --red: #b92d18;
  --text: #192d3c;
  --muted: #526477;
  --border: #c8d3df;
  --background: #f3f6fa;
  --surface: #fff;
  --success: #175d3b;
  --success-bg: #edf8f1;
  --error: #8a2012;
  --error-bg: #fff2ef;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 40px 18px 28px;
  color: var(--text);
  background: var(--background);
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}

a { color: var(--navy); }
a:hover { color: var(--red); }

.page-shell { width: min(100%, 1060px); margin: 0 auto; }

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(26px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--red);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgb(25 45 60 / 6%);
}

.resource-content { min-width: 0; }
.brand { margin: 0 0 34px; }
.brand img { display: block; width: 210px; max-width: 100%; height: auto; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 { margin: 0 0 16px; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.intro { max-width: 62ch; margin: 0 0 26px; color: var(--muted); font-size: 1.075rem; }

.resource-name {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  background: var(--background);
  color: var(--navy);
  font-weight: 700;
}

.form-panel {
  padding: 28px;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.form-panel h2 { margin: 0 0 4px; color: var(--navy); font-size: 1.3rem; }
.form-intro, .required-note { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.required-note { margin-top: -8px; font-size: .82rem; }

.field { margin: 0 0 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 6px; font-weight: 700; }
.optional { color: var(--muted); font-size: .85rem; font-weight: 400; }

input:not([type="checkbox"]), select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #9eafbf;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input::placeholder { color: #657789; opacity: 1; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin: 22px 0;
  font-size: .88rem;
  font-weight: 400;
  cursor: pointer;
}
.consent input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--navy); }

.submit-button, .download-link {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.submit-button:hover, .download-link:hover { background: #982512; color: #fff; }
.submit-button:disabled { opacity: .65; cursor: wait; }

.privacy { margin: 16px 0 0; color: var(--muted); font-size: .82rem; }
.status { margin-top: 18px; padding: 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--background); }
.status.error { border-color: #db9587; background: var(--error-bg); color: var(--error); }
.status.success { border-color: #9ac8a9; background: var(--success-bg); color: var(--success); }
.status ul { margin: 8px 0 0; padding-left: 20px; }
.download-result { margin-top: 14px; }
.download-result p { margin: 0 0 12px; }
.download-link { background: var(--navy); }
.download-link:hover { background: #203d63; }

.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.site-footer { padding: 22px 8px 0; color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer p { margin: 0 0 8px; }
.site-footer nav { display: flex; justify-content: center; gap: 18px; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  body { padding: 18px 10px 20px; }
  .resource-card { grid-template-columns: 1fr; gap: 24px; padding: 25px 20px; }
  .brand { margin-bottom: 26px; }
  .form-panel { padding: 22px 18px; }
}

@media (max-width: 440px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
