:root {
  --page: #f4f7f6;
  --surface: #ffffff;
  --ink: #182326;
  --muted: #5e6d70;
  --line: #ced8d6;
  --teal: #0d6f68;
  --teal-dark: #084f4a;
  --coral: #c8523f;
  --coral-soft: #fff2ef;
  --focus: #116fba;
  --shadow: 0 14px 36px rgba(24, 35, 38, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand-header p {
  margin: 0;
}

.brand-kicker {
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 700;
}

.brand-service {
  color: var(--muted);
  font-size: 14px;
}

.page-intro {
  max-width: 650px;
  margin-bottom: 28px;
}

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

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.16;
}

.page-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.transfer-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-section {
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 24px;
}

.section-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.field {
  min-width: 0;
}

.field-span {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.field label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aebbb9;
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input,
.field select {
  padding: 0 13px;
}

.field textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(17, 111, 186, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--coral);
  background: #fffafa;
}

.field-hint,
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  min-height: 18px;
  color: #a52e20;
  font-weight: 700;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  background: #eef5f3;
}

.form-actions p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-actions button {
  min-width: 210px;
  min-height: 50px;
  border: 1px solid var(--teal-dark);
  border-radius: 6px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  transition: background-color 120ms ease, transform 120ms ease;
}

.form-actions button:hover {
  background: var(--teal-dark);
}

.form-actions button:active {
  transform: translateY(1px);
}

.form-actions button:focus-visible,
.support-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(17, 111, 186, 0.28);
  outline-offset: 3px;
}

.form-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-error-summary,
.notice-panel,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-error-summary {
  margin: 24px 30px 0;
  padding: 12px 14px;
  border-color: #e5a197;
  background: var(--coral-soft);
  color: #8d281b;
  font-size: 14px;
  font-weight: 700;
}

.notice-panel,
.success-panel {
  padding: 30px;
  box-shadow: var(--shadow);
}

.notice-panel h2,
.success-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.notice-panel p,
.success-panel > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.notice-error {
  border-left: 5px solid var(--coral);
}

.support-link {
  color: var(--teal-dark);
  font-weight: 700;
}

.success-panel {
  border-top: 5px solid var(--teal);
}

.submission-reference {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  color: var(--ink) !important;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.status-message {
  min-height: 24px;
  margin-top: 14px;
  color: #a52e20;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .brand-header {
    margin-bottom: 28px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  h1 {
    font-size: 30px;
  }

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

  .field-span {
    grid-column: auto;
  }

  .form-section {
    padding: 24px 18px;
  }

  .section-heading {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .section-number {
    width: 34px;
    height: 34px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 18px;
  }

  .form-actions button {
    width: 100%;
  }

  .form-error-summary {
    margin-right: 18px;
    margin-left: 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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