@font-face {
  font-family: Poppins;
  src: url("/assets/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("/assets/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #071b4a;
  --ink: #132a47;
  --muted: #53647a;
  --link: #075bcf;
  --border: #d8e3f2;
  --paper: #fff;
  color-scheme: light;
  font: 100%/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: #f6f9fe;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: .2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2rem, 66rem); margin-inline: auto; }
header, footer { background: var(--paper); }
header { border-bottom: 1px solid var(--border); }
footer { border-top: 1px solid var(--border); margin-top: auto; }
.header, .footer {
  min-height: 4.5rem;
  padding-block: .65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}
.header img { display: block; width: clamp(8.75rem, 20vw, 11.6rem); height: auto; }
.header a, .footer a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 650; }
.footer { color: var(--muted); font-size: .94rem; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(1.25rem, 5vw, 4.5rem);
  padding-block: clamp(1.75rem, 6vw, 4.5rem);
}
.intro { max-width: 31rem; }
h1, h2 { color: var(--navy); font-family: Poppins, system-ui, sans-serif; line-height: 1.25; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.45rem); letter-spacing: -.055em; }
h2 { font-size: 1.25rem; font-weight: 600; }
.intro > p { font-size: 1.1rem; }
.details { margin-top: 1.65rem; border-top: 1px solid var(--border); padding-top: 1.35rem; }
.details p, .guidance { color: var(--muted); }
.card { border: 1px solid var(--border); border-radius: 1rem; background: var(--paper); padding: clamp(1rem, 4vw, 2rem); overflow-wrap: anywhere; }
.fields, .custom-field { display: grid; }
label { color: var(--navy); font-weight: 650; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  font: inherit;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #9baec4;
  border-radius: .6rem;
  padding: .68rem .8rem;
  margin-bottom: .9rem;
}
textarea { resize: vertical; }
.guidance, .feedback { font-size: .94rem; }
button {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: .7rem 1rem;
  border: 0;
  border-radius: .65rem;
  background: var(--link);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #004eb6; }
.submission-note { margin-top: .75rem; margin-bottom: 0; }
.feedback:empty { display: none; }
.feedback { margin: .9rem 0 0; }
.feedback[data-error] { color: #922322; }
#email-draft { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; }
.skip { position: absolute; top: -10rem; left: 1rem; background: #fff; padding: .45rem .85rem; }
.skip:focus { top: .5rem; }

@media (max-width: 44rem) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .details { margin-top: 1.15rem; padding-top: 1rem; }
}
