* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f3fefe;
  color: #202c40;
  font: 15px/1.6 Arial, sans-serif;
}

main {
  width: min(100% - 32px, 672px);
  margin: 28px auto;
}

main.wide {
  max-width: 1200px;
  width: calc(100% - 32px);
}

.card {
  background: white;
  border: 1px solid #d4dde4;
  border-radius: 16px;
  overflow: hidden;
}

.masthead {
  text-align: center;
  padding: 30px 20px;
  border-top: 5px solid #0c50d8;
}

.masthead img { object-fit: contain; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #506278;
  margin: 12px 0 8px;
}

h1 {
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.2;
  margin: 8px 0 12px;
  color: #173d79;
}

h2 { font-size: 20px; margin: 0 0 8px; }

.masthead p:last-child { margin: 0; color: #657186; }

.intro {
  text-align: center;
  color: #657186;
  margin: 22px 0;
}

.form-card {
  padding: 26px;
  margin-top: 20px;
  border-top: 4px solid #0c50d8;
}

.muted { color: #657186; font-size: 13px; }
.small { margin-top: 24px; }
.required, .field-error { color: #b42318; }
.field { margin-top: 20px; }

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

input, textarea, select {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bdc9d5;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: #202c40;
}

input:focus, textarea:focus, select:focus {
  outline: 3px solid #c3d8ff;
  border-color: #0c50d8;
}

textarea { resize: vertical; }

input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #b42318;
}

.field-error { font-size: 13px; margin: 5px 0; }

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

button, .button {
  display: inline-block;
  background: #0c50d8;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 11px 24px;
  font: 600 14px/1.5 Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .button:hover { background: #073da8; }
a { color: #0c50d8; font-size: 14px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid #81b5ff;
  outline-offset: 3px;
}

footer {
  text-align: center;
  color: #657186;
  font-size: 12px;
  margin: 30px 0;
}

.notice { padding: 12px; border-radius: 8px; }
.error { background: #fff2f0; color: #b42318; }
.table-wrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #d4dde4;
  vertical-align: top;
  min-width: 120px;
  overflow-wrap: anywhere;
}

td { max-width: 280px; }
th { font-size: 13px; background: #f3f7ff; }

@media (max-width: 480px) {
  .form-card { padding: 20px; }
  .masthead { padding: 24px 16px; }
}