:root {
  --ink: #172039;
  --paper: #fffefa;
  --chrome: #c9d4e5;
  --graphite: #3e4859;
  --blue: #315fbf;
  --gold: #ffd27a;
  --coral: #b95667;
  --line: #65738a;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: #aeb9c9;
  background-image:
    linear-gradient(rgba(255,255,255,.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(145deg, #dce2ed, #9aa8bc);
  background-size: 24px 24px, 24px 24px, auto;
  font: 15px/1.55 Tahoma, Verdana, sans-serif;
}

a { color: #274f9d; }

.offer-shell {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto;
  background: var(--chrome);
  border: 1px solid #36455f;
  box-shadow: 0 22px 60px rgba(22, 31, 52, .35), inset 0 1px #fff;
}

.offer-header {
  padding: 30px clamp(24px, 7vw, 72px) 48px;
  color: white;
  background: linear-gradient(118deg, #17347f, #3a68cb 58%, #d96872);
  border-bottom: 3px solid #263550;
  text-shadow: 0 2px 2px rgba(12, 22, 58, .42);
}

.return { color: #fff6d9; }
.office, .eyebrow { margin: 34px 0 9px; font-size: 11px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; }
.offer-header h1 { max-width: 690px; margin: 0; font: bold clamp(48px, 8vw, 82px)/.92 "Arial Narrow", Tahoma, sans-serif; letter-spacing: -3px; }
.opening { max-width: 700px; margin: 26px 0 0; font-size: 18px; }

.instrument {
  display: grid;
  grid-template-columns: 82px 1fr 240px;
  margin: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px #fff, 0 2px 6px rgba(24, 35, 62, .2);
}
.instrument-number { display: grid; place-items: center; color: #fff; background: var(--graphite); font-size: 22px; font-weight: bold; writing-mode: vertical-rl; }
.instrument-copy { padding: 30px; }
.instrument-copy .eyebrow { margin: 0 0 9px; }
.instrument-copy h2 { margin: 0; font: bold 36px/1 "Arial Narrow", Tahoma, sans-serif; }
.instrument-status { margin: 0; padding: 20px; background: #e9edf4; border-left: 1px solid #98a5b9; }
.instrument-status div { padding: 9px 0; border-bottom: 1px dotted #8f9bae; }
.instrument-status dt { font-size: 10px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
.instrument-status dd { margin: 3px 0 0; }

.notice { margin: 10px; padding: 20px 24px; background: #fff4cf; border: 1px solid #8d7540; }
.notice h2 { margin: 0 0 4px; font-size: 22px; }
.notice p { margin: 0; }
.notice--success { background: #e2f2e8; border-color: #47765b; }
.notice--error { background: #fbe4e5; border-color: #a14f5c; }
.notice--error ul { margin-bottom: 0; }

.offer-form { margin: 10px; padding: clamp(20px, 5vw, 46px); background: #f9f8f3; border: 1px solid var(--line); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset[disabled] { opacity: .62; }
legend { width: 100%; margin-bottom: 8px; font: bold 32px/1.1 "Arial Narrow", Tahoma, sans-serif; }
.required-note { margin: 0 0 28px; color: #536079; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 7px; font-weight: bold; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #68768c;
  border-radius: 2px;
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.field small { display: block; margin-top: 4px; color: #5a6577; }
.field--error input, .field--error textarea, .field--error select { border: 2px solid var(--coral); }
.field-error { margin: 5px 0 0; color: #8d2637; font-weight: bold; }

.payment-links { margin: 0 0 32px; padding: 20px; background: #fff4cf; border: 1px solid #8d7540; }
.payment-links h2, .payment-links p { margin-top: 0; }
.payment-links div { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-links a { display: inline-block; padding: 10px 14px; background: white; border: 1px solid #64728b; font-weight: bold; }

button {
  min-height: 50px;
  padding: 10px 18px;
  color: #172b53;
  background: linear-gradient(#fff, #dbe3ef 48%, #bdc9dc 52%, #e6ebf3);
  border: 1px solid #64728b;
  box-shadow: inset 0 1px #fff, 0 2px 2px rgba(37, 50, 78, .25);
  font: bold 12px Tahoma, sans-serif;
  text-transform: uppercase;
}

.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 720px) {
  .instrument { grid-template-columns: 56px 1fr; }
  .instrument-status { grid-column: 1 / -1; border-top: 1px solid #98a5b9; border-left: 0; }
}

@media (max-width: 520px) {
  .offer-shell { width: 100%; margin: 0; border-right: 0; border-left: 0; }
  .offer-header { padding: 24px 22px 36px; }
  .offer-header h1 { font-size: 50px; }
  .instrument { display: block; }
  .instrument-number { padding: 7px; writing-mode: initial; }
  .instrument-copy { padding: 24px 20px; }
  .offer-form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
