:root {
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
    color: #263b50;
    background: #f5f7f8;
    --brand-blue: #002f6c;
    --brand-green: #66a60e;
    --brand-green-dark: #548a08;
    --border: #d4dde4;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-topbar { background: var(--brand-blue); color: #fff; }
.topbar-inner { max-width: 1100px; min-height: 35px; margin: auto; padding: 7px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.topbar-inner span { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.topbar-inner a { text-decoration: none; font-weight: 700; }
.topbar-inner a:hover { text-decoration: underline; }
.site-header { background: #fff; border-bottom: 1px solid #e3e9ec; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px max(28px, calc((100vw - 1100px) / 2)); }
.brand { display: block; width: min(340px, 70vw); line-height: 0; }
.brand img { display: block; width: 100%; height: auto; }
.header-contact { font-size: 13px; font-weight: 700; color: var(--brand-blue); text-decoration: none; white-space: nowrap; }
.header-contact:hover { text-decoration: underline; }
.header-contact span { margin-left: 3px; color: var(--brand-green-dark); }

.main-content { width: min(100% - 40px, 900px); margin: 0 auto; padding: 51px 0 75px; flex: 1; }
.intro { margin-bottom: 29px; }
.eyebrow, .step-label { font-size: 11px; letter-spacing: .16em; font-weight: 800; color: var(--brand-green-dark); margin: 0 0 11px; }
.intro h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -.025em; color: var(--brand-blue); margin: 0 0 13px; }
.intro p:last-child { margin: 0; color: #566b7e; line-height: 1.6; max-width: 670px; }
.upload-card { background: #fff; border: 1px solid #dce4e9; border-top: 4px solid var(--brand-green); border-radius: 8px; box-shadow: 0 14px 38px rgba(0, 47, 108, .06); padding: 32px 40px 38px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #e9eef1; padding-bottom: 20px; margin-bottom: 27px; }
.card-heading h2 { margin: 0; color: var(--brand-blue); font-size: 22px; }
.step-label { margin-bottom: 7px; }
.secure-note { font-size: 12px; color: #356303; background: #f0f7e5; padding: 8px 11px; border-radius: 20px; font-weight: 700; white-space: nowrap; }

.field { margin-bottom: 21px; }
.field label, .label { display: block; font-size: 13px; color: #22384d; font-weight: 700; margin-bottom: 9px; }
.required { color: #a23128; }
.optional { font-size: 11px; color: #758595; font-weight: 400; margin-left: 4px; }
input[type=email], input:not([type]), textarea { width: 100%; border: 1px solid var(--border); border-radius: 5px; padding: 13px 15px; background: #fff; outline: none; color: #263b50; }
input:focus, textarea:focus, .recipient-button:focus, .drop-zone:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0, 47, 108, .13); }
input::placeholder, textarea::placeholder { color: #8d9ba7; }
textarea { resize: vertical; min-height: 90px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.recipient-control { display: flex; align-items: center; gap: 12px; }
.recipient-button { flex: 1; text-align: left; background: #fff; color: #4d6174; border: 1px solid var(--border); border-radius: 5px; padding: 13px 15px; }
.recipient-button:after { content: '⌄'; float: right; font-size: 18px; line-height: 14px; color: var(--brand-blue); }
.recipient-count { font-size: 12px; color: #687b8c; white-space: nowrap; }

.drop-zone { border: 2px dashed #a8bdcd; border-radius: 7px; background: #f8fafc; min-height: 168px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; text-align: center; position: relative; padding: 22px; color: #536b80; }
.drop-zone.dragover { border-color: var(--brand-green-dark); background: #f4faeb; }
.drop-zone.is-locked { opacity: .6; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { font-size: 30px; color: var(--brand-green-dark); line-height: 1; }
.drop-zone strong { color: var(--brand-blue); font-size: 16px; }
.drop-zone small { color: #687e90; font-size: 12px; margin-top: 3px; }
.file-select { display: inline !important; color: var(--brand-blue) !important; text-decoration: underline; cursor: pointer; font-size: inherit !important; }
.file-list { list-style: none; padding: 0; margin: 13px 0 0; }
.file-list li { padding: 10px 12px; border: 1px solid #dce5eb; border-radius: 5px; display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
.file-meta { min-width: 0; flex: 1; }
.file-name { display: block; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.file-state { display: block; color: #647b8d; font-size: 12px; margin-top: 3px; }
.file-actions { display: flex; gap: 6px; }
.small-button { border: 0; background: #edf2f5; color: var(--brand-blue); border-radius: 5px; padding: 6px 9px; font-size: 12px; }
.small-button:hover { background: #e1eaf0; }
.progress-track { display: block; width: 100%; height: 5px; border: 0; border-radius: 4px; margin-top: 7px; overflow: hidden; accent-color: var(--brand-green); }
.progress-track::-webkit-progress-bar { background: #e2e9ec; }
.progress-track::-webkit-progress-value { background: var(--brand-green); }
.progress-track::-moz-progress-bar { background: var(--brand-green); }
.total-size { font-size: 12px; color: #607687; text-align: right; margin: 10px 0 0; }
.turnstile-container { margin-top: 15px; }
.form-actions { display: flex; gap: 12px; margin-top: 27px; }
.primary-button, .secondary-button { border-radius: 5px; padding: 13px 21px; font-weight: 700; font-size: 14px; }
.primary-button { border: 1px solid var(--brand-green); background: var(--brand-green); color: var(--brand-blue); }
.primary-button:hover { background: #78b725; border-color: #78b725; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; }
.secondary-button { border: 1px solid #aebdca; background: #fff; color: var(--brand-blue); }
.secondary-button:hover { background: #f0f5f8; }
.message { padding: 12px 15px; border-radius: 5px; margin-bottom: 20px; background: #eaf2fa; color: #173f70; font-size: 14px; line-height: 1.5; }
.message.error { background: #fff0ee; color: #963027; }
.message.success { background: #f0f7e5; color: #356303; }
#confirmation { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#confirmation[hidden] { display: none; }
#confirmation .secondary-button { padding: 8px 13px; background: transparent; border-color: currentColor; color: inherit; }

.recipient-dialog { width: min(100% - 32px, 480px); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-top: 4px solid var(--brand-green); border-radius: 8px; padding: 24px 27px; box-shadow: 0 26px 80px rgba(0, 35, 76, .25); }
.recipient-dialog::backdrop { background: rgba(0, 35, 76, .55); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; }
.dialog-heading h2 { font-size: 22px; margin: 0; color: var(--brand-blue); }
.recipient-dialog p { color: #607687; font-size: 13px; margin: 9px 0 0; }
.icon-button { background: none; border: 0; font-size: 25px; line-height: 1; color: var(--brand-blue); }
.recipient-options { margin-top: 12px; }
.recipient-option { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; cursor: pointer; }
.recipient-option input { accent-color: var(--brand-green-dark); width: 17px; height: 17px; margin: 0; }
.dialog-actions { text-align: right; margin-top: 13px; }
.site-footer { background: var(--brand-blue); color: #e4edf6; font-size: 12px; padding: 25px max(28px, calc((100vw - 1100px) / 2)); display: flex; justify-content: space-between; gap: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .site-header { padding: 10px 20px; min-height: 83px; }
    .brand { width: min(275px, 75vw); }
    .header-contact { display: none; }
    .topbar-inner { padding: 7px 20px; }
    .topbar-inner span { font-size: 10px; }
    .main-content { width: min(100% - 24px, 900px); padding: 35px 0 55px; }
    .upload-card { padding: 24px 18px; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    .card-heading { align-items: start; }
    .secure-note { font-size: 10px; }
    .site-footer { padding: 22px; flex-direction: column; }
}
