:root {
  --ink: #162433;
  --muted: #617182;
  --line: #dce4ea;
  --soft: #f4f7f9;
  --blue: #145f91;
  --blue-dark: #0a476f;
  --orange: #ee7a23;
  --green: #168263;
  --red: #b53535;
  --shadow: 0 18px 48px rgba(18, 44, 64, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef3f6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #fff 0, #f4f7f9 32rem, #eef3f6 100%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 100px;
  max-width: 1160px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { width: auto; height: 76px; display: block; }
.language { display: flex; align-items: center; gap: 9px; color: #8a98a5; }
.language button { border: 0; background: transparent; color: var(--blue-dark); padding: 7px 2px; }
.language button.active { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

main { max-width: 940px; margin: 0 auto; padding: 46px 24px 70px; }
.hero { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 6vw, 4.1rem); letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 18px; }
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.65; margin: auto; max-width: 700px; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.trust-row span { background: #e9f3f8; color: var(--blue-dark); border: 1px solid #cde2ed; border-radius: 999px; padding: 7px 13px; font-size: .86rem; font-weight: 650; }

.card { background: #fff; border: 1px solid #e2e8ec; border-radius: 18px; box-shadow: var(--shadow); padding: clamp(22px, 5vw, 48px); }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.section-heading h2, .progress-panel h2, .receipt h2 { font-size: 1.35rem; margin: 0 0 5px; }
.section-heading p { color: var(--muted); margin: 0; line-height: 1.45; }
.optional { color: var(--muted); background: var(--soft); border-radius: 999px; padding: 6px 10px; white-space: nowrap; font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 650; font-size: .91rem; }
label.wide { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 1px solid #cbd6de; border-radius: 8px; background: #fff; padding: 11px 12px; color: var(--ink); transition: border .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 95, 145, .12); }
.files-heading { margin-top: 38px; }

.drop-zone { border: 2px dashed #b9cbd7; border-radius: 12px; background: #f8fafb; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: .15s ease; }
.drop-zone:hover, .drop-zone:focus, .drop-zone.dragging { border-color: var(--blue); background: #eef7fb; outline: none; }
.drop-icon { height: 45px; width: 45px; display: grid; place-items: center; border-radius: 50%; background: #dcecf4; color: var(--blue); font-size: 1.45rem; }
.drop-zone small { color: var(--muted); margin-top: 4px; }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.file-size { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; }
.remove-file { border: 0; background: transparent; color: var(--red); font-size: 1.25rem; line-height: 1; padding: 4px; }

.button { border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 750; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 8px 18px rgba(20, 95, 145, .2); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: var(--blue-dark); background: #e7f1f6; border: 1px solid #c9dfe9; }
.button:disabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.send-button { width: 100%; min-height: 52px; margin-top: 22px; font-size: 1rem; display: flex; justify-content: center; align-items: center; gap: 9px; }
.button-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 9px 0 0; }
.notice { border-radius: 8px; padding: 12px 14px; margin-top: 16px; line-height: 1.45; }
.notice.error { border: 1px solid #ecc6c6; background: #fff2f2; color: #872727; }

.progress-panel { text-align: center; padding: 18px 0 5px; }
.steps { list-style: none; text-align: left; max-width: 460px; margin: 28px auto; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; align-items: center; color: #87939e; gap: 12px; }
.steps li span { width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid #c5d0d7; border-radius: 50%; }
.steps li.active { color: var(--blue-dark); }
.steps li.active span { border-color: var(--blue); border-top-color: transparent; animation: spin .9s linear infinite; }
.steps li.done { color: var(--green); }
.steps li.done span { border-color: var(--green); background: var(--green); position: relative; }
.steps li.done span::after { content: "✓"; color: #fff; position: absolute; inset: -2px; display: grid; place-items: center; font-size: .8rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { height: 9px; background: #e3e9ed; border-radius: 999px; overflow: hidden; }
.progress-track div { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #32a1bc); transition: width .16s linear; }
#progress-text { color: var(--muted); font-variant-numeric: tabular-nums; }
.link-button { background: transparent; border: 0; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }

.receipt { text-align: center; padding: 8px 0; }
.success-mark { margin: 0 auto 18px; width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 1.8rem; }
.receipt > p { color: var(--muted); }
.reference-box { max-width: 520px; margin: 26px auto 18px; padding: 20px; border: 1px solid #c9dfe9; background: #eef7fb; border-radius: 10px; display: grid; gap: 10px; justify-items: center; }
.reference-box span { color: var(--muted); font-size: .82rem; }
.reference-box strong { font-size: clamp(1.2rem, 4vw, 1.75rem); letter-spacing: .03em; }
.muted { color: var(--muted); }

.information-grid { margin-top: 24px; display: grid; gap: 12px; }
details { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 10px; padding: 17px 20px; }
summary { cursor: pointer; font-weight: 750; color: var(--blue-dark); }
details p { color: var(--muted); line-height: 1.6; }
.recipient-block { display: grid; gap: 9px; margin: 18px 0; }
.recipient-block textarea { font: .78rem ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; resize: none; }
.recipient-block .button, .encrypted-form .button { justify-self: start; }
.encrypted-form { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; display: grid; gap: 12px; }

footer { max-width: 940px; margin: auto; padding: 0 24px 32px; color: var(--muted); font-size: .83rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; }
footer a { color: var(--blue-dark); }

@media (max-width: 650px) {
  .site-header { padding: 10px 18px; height: 82px; }
  .brand img { width: auto; height: 62px; }
  main { padding: 28px 14px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  label.wide { grid-column: auto; }
  .section-heading { display: block; }
  .optional { display: inline-block; margin-top: 10px; }
  .card { border-radius: 13px; padding: 22px 16px; }
  .file-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .file-size { grid-column: 1; }
  .remove-file { grid-column: 2; grid-row: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
