:root {
  --blue: #247eb2;
  --blue-soft: #7ab2dc;
  --blue-dark: #182d45;
  --orange: #f1871f;
  --ink: #243443;
  --muted: #66727c;
  --line: #dce7ee;
  --panel: #ffffff;
  --page: #f5f8fa;
  --error: #b42318;
  --error-bg: #fff3f1;
  --focus: 0 0 0 3px rgba(36, 126, 178, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--blue);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: auto;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  color: var(--blue-dark);
}

.brand small {
  color: var(--blue);
  font-size: 14px;
}

.site-header address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  text-align: right;
  font-size: 14px;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.page-shell--narrow {
  width: min(720px, calc(100% - 32px));
}

.intro {
  margin: 10px 0 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  color: var(--blue-dark);
  font-size: 34px;
}

h2 {
  color: var(--blue);
  font-size: 21px;
}

.intro p,
.section-heading p,
.submit-bar p,
.muted {
  color: var(--muted);
}

.form-shell {
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 8px 22px rgba(24, 45, 69, 0.05);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.section-heading p {
  margin: 5px 0 0;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label > span,
legend {
  color: #384b5c;
  font-weight: 700;
}

input,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  border: 1px solid #cbd9e2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.choice-grid label:focus-within,
.file-drop:focus-within {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.choice-grid {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
  border: 0;
}

.choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cbd9e2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.choice-grid input,
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #cbd9e2;
  border-radius: 6px;
  background: #fbfdfe;
}

.conditional-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.conditional-box[hidden] {
  display: none;
}

.file-drop {
  align-items: center;
  justify-items: center;
  min-height: 128px;
  margin-bottom: 8px;
  padding: 20px;
  border: 1px dashed #9bb9cc;
  border-radius: 8px;
  background: #f8fbfd;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  width: min(100%, 420px);
}

.file-drop span {
  color: var(--blue);
  font-size: 18px;
}

.file-drop small {
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(245, 248, 250, 0), var(--page) 30%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button:hover {
  filter: brightness(0.96);
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.field-error,
label em {
  color: var(--error);
  font-size: 13px;
  font-style: normal;
}

.has-error input,
.has-error textarea,
.has-error.choice-grid label,
.has-error.file-drop,
.has-error.check-row {
  border-color: var(--error);
  background: var(--error-bg);
}

.notice {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 6px;
}

.notice--error {
  border: 1px solid #f4b4ae;
  background: var(--error-bg);
  color: var(--error);
}

.result-panel {
  text-align: center;
}

.reference {
  display: inline-grid;
  gap: 4px;
  margin: 18px 0 24px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.reference dt {
  color: var(--muted);
  font-size: 13px;
}

.reference dd {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 700;
}

.bot-fields {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 86px;
  padding: 22px;
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
}

.site-footer span {
  color: #d7e8f2;
}

@media (max-width: 820px) {
  .site-header,
  .submit-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header address {
    text-align: left;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .submit-bar {
    position: static;
  }

  .button {
    width: 100%;
  }
}
