:root {
  color-scheme: light;
  --navy: #173b5d;
  --blue: #1f6f9e;
  --ink: #17222c;
  --muted: #526371;
  --line: #cbd7df;
  --surface: #ffffff;
  --background: #eef3f6;
  --danger: #9b2c2c;
  --focus: #996000;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(100% - 2rem, 720px); margin: 2rem auto 3rem; }
.brand { text-align: center; margin-bottom: 1.25rem; }
.logo { width: min(270px, 80%); height: auto; margin: 0 auto .8rem; }
.eyebrow { margin: 0; color: var(--blue); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { color: var(--navy); line-height: 1.2; }
.brand h1 { margin: .35rem 0 .5rem; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.intro { max-width: 48rem; margin: 0 auto; color: var(--muted); }
.card { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); box-shadow: 0 .4rem 1.4rem rgb(23 59 93 / 9%); }
.field { margin-top: 1.15rem; }
label { display: block; color: var(--navy); font-weight: 700; }
input, textarea { display: block; width: 100%; margin-top: .4rem; padding: .72rem .8rem; border: 1px solid #71838f; border-radius: .35rem; background: #fff; color: var(--ink); font: inherit; }
textarea { resize: vertical; min-height: 10rem; }
input[type=file] { padding: .55rem; }
input:focus, textarea:focus, button:focus, a:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.help, .required-note, footer { color: var(--muted); font-size: .9rem; }
.help { margin: .4rem 0 0; }
.optional { color: var(--muted); font-weight: 400; }
button, .button-link { display: inline-block; width: 100%; margin-top: 1.5rem; padding: .8rem 1rem; border: 0; border-radius: .35rem; background: var(--navy); color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button-link:hover { background: #0e2d49; }
button[disabled] { opacity: .7; cursor: wait; }
.notice { margin-bottom: 1rem; padding: .75rem .9rem; border-radius: .35rem; background: #e4f0f6; color: var(--navy); }
.notice.error { border-left: 4px solid var(--danger); background: #fff0f0; color: var(--danger); }
.file-list { margin: .6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.file-details { min-width: 0; overflow-wrap: anywhere; }
.attachment-manager.enhanced { padding: 1rem; border: 2px dashed #71838f; border-radius: .35rem; }
.attachment-manager.dragging { border-color: var(--blue); background: #e4f0f6; }
.add-files, .remove-file { width: auto; min-width: 44px; min-height: 44px; padding: .5rem .75rem; }
.add-files { margin-top: .6rem; }
.remove-file { flex-shrink: 0; margin: 0; background: transparent; color: var(--navy); border: 1px solid #71838f; font-size: .9rem; }
.remove-file:hover { background: #e4f0f6; }
.attachment-error { margin: .75rem 0 0; overflow-wrap: anywhere; }
.upload-feedback { margin-top: 1.25rem; }
progress { display: block; width: 100%; height: 1rem; margin-top: .5rem; accent-color: var(--blue); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  progress { animation: none; }
  progress:indeterminate { appearance: none; background: var(--line); border: 1px solid #71838f; border-radius: .35rem; }
  progress:indeterminate::-webkit-progress-bar { background: var(--line); }
  progress:indeterminate::-webkit-progress-value { background: transparent; }
  progress:indeterminate::-moz-progress-bar { background: transparent; }
}
.success { text-align: center; padding-block: 3rem; }
.success h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.success-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; background: #d8efdf; color: #17612c; font-size: 2rem; font-weight: 800; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
footer { margin-top: 1rem; text-align: center; }
a { color: var(--blue); }
@media (min-width: 600px) { .shell { margin-top: 4rem; } }
