*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Public Sans', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; color: #1b2738; }
button { font-family: inherit; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
@keyframes ag-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page { min-height: 100vh; background: #eef0f2; display: flex; flex-wrap: wrap; align-items: stretch; }
.brand { flex: 1 1 420px; background: #0f335f; color: #eef2f7; padding: 56px clamp(32px,5vw,72px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
/* Two-column desktop: .page stretches the brand panel to full height, so the logo
   sits top and the footer bottom. When the columns stack (narrow screens) the panel
   sizes to its content instead of forcing 100vh, avoiding a big gap under the logo. */
@media (max-width: 980px) { .brand { justify-content: flex-start; } }
.brand h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: clamp(34px,4.2vw,50px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(245,130,31,0.16); color: #f6b27a; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 26px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ec07e; box-shadow: 0 0 0 4px rgba(78,192,126,0.18); }
.brand p.lead { font-size: 16.5px; line-height: 1.62; color: #c3d2e5; margin: 0; }
.checklist-title { font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #88a2c4; margin: 0 0 16px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #d7e1ef; }
.checklist .check { width: 21px; height: 21px; border-radius: 50%; background: rgba(78,192,126,0.16); color: #6fd49a; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.brand-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }

.main { flex: 2 1 560px; padding: clamp(36px,4.5vw,72px) clamp(28px,5vw,80px); display: flex; align-items: center; justify-content: center; }
.card { width: 100%; max-width: 620px; }
.card h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 32px; letter-spacing: -0.01em; margin: 0 0 8px; color: #14233e; }
.card .sub { font-size: 15.5px; color: #6b7585; margin: 0 0 30px; line-height: 1.55; }
.invite-banner { margin-bottom: 22px; padding: 13px 16px; border-radius: 11px; background: #eef3fb; border: 1px solid #d3ddf0; color: #1b2738; font-size: 15px; }
.invite-banner strong { color: #0f335f; }
.name-row { display: flex; gap: 14px; margin-bottom: 22px; }
.name-row .field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.name-row label { font-size: 13px; font-weight: 600; color: #3a4658; }
.name-row input { width: 100%; padding: 12px 14px; border: 1px solid #d3d9e0; border-radius: 11px; font-size: 15px; color: #1b2738; background: #fff; transition: border-color .15s, box-shadow .15s; }
.name-row input:focus { outline: none; border-color: #0f335f; box-shadow: 0 0 0 3px rgba(15,51,95,0.12); }
.name-row input.invalid { border-color: #d98a8a; background: #fdf6f6; }
@media (max-width: 460px) { .name-row { flex-direction: column; gap: 14px; } }
.dropzone { border: 2px dashed #cfd6df; border-radius: 16px; background: #f8fafc; padding: 46px 24px; display: flex; flex-direction: column; align-items: center; gap: 13px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: #f5821f; background: #fdf3e8; }
.dropzone:hover { border-color: #0f335f; background: #f3f7fd; }
.dropzone .icon { width: 58px; height: 58px; border-radius: 14px; background: #eaf0f8; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #0f335f; }
.dropzone .browse { color: #f5821f; text-decoration: underline; text-underline-offset: 2px; }
.hint { font-size: 13px; color: #8a93a1; }
.error { margin-top: 16px; padding: 12px 15px; border-radius: 10px; background: #fcecec; border: 1px solid #f3c9c9; color: #a3373a; font-size: 13.5px; line-height: 1.5; display: flex; gap: 9px; }
.filelist { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.filelist-head { display: flex; align-items: baseline; justify-content: space-between; }
.file { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid #e6e9ee; border-radius: 11px; background: #fff; }
.file .badge { width: 40px; height: 40px; border-radius: 8px; background: #0f335f; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file .name { font-size: 14.5px; font-weight: 600; color: #1b2738; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .size { font-size: 12px; color: #98a0ac; }
.file .remove { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: #98a0ac; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.btn-primary { margin-top: 26px; width: 100%; padding: 16px; border: none; border-radius: 12px; background: rgb(17,152,94); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(17,152,94,.3); transition: background .15s; }
.btn-primary:hover { background: rgb(14,128,79); }
.reassure { text-align: center; font-size: 12px; color: #98a0ac; margin: 14px 0 0; }
.center-state { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px; animation: ag-rise .3s ease; }
.spinner { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #e7eaef; border-top-color: #f5821f; animation: ag-spin .8s linear infinite; }
.progress-track { height: 9px; border-radius: 999px; background: #e7eaef; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: #f5821f; border-radius: 999px; transition: width .25s ease; }
.success-check { width: 78px; height: 78px; border-radius: 50%; background: rgba(78,192,126,.14); display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.success-check .inner { width: 54px; height: 54px; border-radius: 50%; background: #2e9d63; color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.confirm-box { display: inline-flex; flex-direction: column; gap: 4px; padding: 18px 30px; border: 1px solid #e1e5ea; border-radius: 14px; background: #fff; margin-bottom: 30px; }
.confirm-num { font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: .04em; color: #0f335f; }
.hidden { display: none !important; }
