/* Essential Stationeries Co.: look shared by the Upload (/parent_upload) and Partner (/partner) pages.
   Same header, buttons and footer as the landing page; self-contained, so it does not need site.css. */
:root{
  --blue-900:#0E3887;--blue-700:#2A4C9B;--blue-050:#F5F8FF;--ink:#0E3887;--yellow:#FFD34B;--teal:#10BBD4;
  --muted:#5B6C9E;--border:#E7ECFF;--field:#E1E8FF;--ok:#118C4F;--bad:#B00020
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--blue-050);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;
  min-height:100vh;display:flex;flex-direction:column}
a{color:var(--blue-900);text-decoration:none}
a:hover{text-decoration:underline}
.muted{color:var(--muted)}
.ok{color:var(--ok);font-weight:700}
.err{color:var(--bad);font-weight:700}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.container{max-width:1440px;margin-inline:auto;padding-inline:clamp(16px,3vw,40px);width:100%}

/* Header (same as the landing page) */
.topbar{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--border)}
.topbar-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;color:var(--blue-900)}
.brand:hover{text-decoration:none}
.brand-logo{display:block;height:44px;width:auto;max-width:100%}
@media (max-width:640px){.brand-logo{height:36px}}
.brand-mark{width:36px;height:36px;border-radius:9px;background:var(--blue-900);display:grid;place-items:center;color:#fff;flex:none}
.brand-mark svg{width:22px;height:22px}
.top-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}

/* Buttons: square, with an offset shadow that moves toward the button when it is pressed */
.btn{--sh:var(--blue-900);display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:0 22px;min-height:48px;border-radius:0;border:2px solid var(--blue-900);background:#fff;color:var(--blue-900);
  font:inherit;font-size:clamp(14px,2.8vw,16px);font-weight:800;line-height:1.15;cursor:pointer;white-space:nowrap;
  box-shadow:4px 4px 0 var(--sh);transition:transform .08s ease,box-shadow .08s ease}
.btn:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--sh);text-decoration:none}
.btn:active{transform:translate(4px,4px);box-shadow:0 0 0 var(--sh)}
.btn:focus-visible,.sr:focus-visible + .btn{outline:3px solid rgba(14,56,135,.35);outline-offset:3px}
.btn-primary{background:var(--yellow);color:#2b2b2b}
.btn-outline{background:#fff;color:var(--blue-900)}
.btn-accent{background:var(--teal);color:var(--blue-900)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:4px 4px 0 var(--sh)}
.btn-lg{min-height:52px;padding:0 36px}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

/* Page heading and the two-column layout: form on the left, "What happens next" on the right */
main{flex:1 0 auto;padding-top:44px;padding-bottom:48px}
h1{margin:0 0 8px;font-size:clamp(30px,4vw,44px);line-height:1.1;font-weight:900;letter-spacing:-.01em;color:var(--blue-900)}
.lead{margin:0 0 32px;max-width:68ch;font-size:18px;color:var(--muted)}
.page-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:32px;align-items:start}

.card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:0 6px 18px rgba(14,56,135,.06)}

/* Fields stay rounded, like the landing page */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
.form-grid .full{grid-column:1 / -1}
label{display:block;font-weight:700;margin-bottom:6px}
.inp{display:block;width:100%;height:48px;padding:0 12px;border:1px solid var(--field);border-radius:10px;background:#fff;color:#1f2a44;font:inherit;font-size:16px}
.inp::placeholder{color:#7f8aa8}
.inp:focus{outline:0;border-color:var(--blue-900);box-shadow:0 0 0 3px rgba(14,56,135,.18)}
textarea.inp{height:120px;padding:12px;resize:vertical}
select.inp{appearance:none;-webkit-appearance:none;padding-right:38px;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6C9E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") right 12px center/18px no-repeat}

/* Upload area */
.drop{position:relative;border:2px dashed #C9D6FF;border-radius:12px;background:#FAFCFF;padding:20px;display:grid;gap:14px}
.drop-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
#filesBox{display:grid;gap:10px}
#filesBox:empty{display:none}
.file{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px dashed #C9D6FF;border-radius:10px;padding:10px 12px;background:#fff}
.file > :first-child{min-width:0;overflow-wrap:anywhere}
.file > :last-child{flex:none}

.actions{margin-top:24px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
#status{min-width:0;overflow-wrap:anywhere}

/* What happens next: the same steps and tiles as the landing page, as a vertical timeline */
.next{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 6px 18px rgba(14,56,135,.06)}
.step{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:14px;align-items:start;position:relative;padding-bottom:20px}
.step:last-child{padding-bottom:0}
.step:not(:last-child)::after{content:"";position:absolute;left:23px;top:54px;bottom:6px;width:2px;background:#DCE5FF}
.tile{grid-row:1 / span 2;width:48px;height:48px;border-radius:10px;background:var(--blue-900);color:#fff;display:grid;place-items:center}
.tile.days{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.tile.days b{font-size:23px;font-weight:900}
.tile.days span{font-size:9px;font-weight:700;letter-spacing:.04em;margin-top:2px}
.step h3{margin:2px 0 2px;font-size:18px;line-height:1.25;font-weight:800;color:var(--blue-900)}
.step p{margin:0;font-size:15px;line-height:1.4;color:var(--muted)}
.step--accent{background:#FFF8DB;border:1px solid var(--yellow);border-radius:12px;padding:12px;align-items:center;margin-top:4px}
.step--accent::after{display:none}

/* Footer (same as the landing page) */
.site-footer{background:#0f2f74;color:#dfe7ff;flex:none}
.footer-grid{display:grid;gap:18px;grid-template-columns:1.2fr .8fr;padding-top:28px;padding-bottom:32px}
.site-footer h3{margin:0 0 6px;font-size:20px;font-weight:800;color:#fff}
.site-footer .foot-label{font-weight:700;margin-bottom:8px;color:#fff}
.site-footer a{color:#fff;text-decoration:underline}
.site-footer .fine{font-size:13px;color:#C5D3FF;margin-top:12px}
.site-footer .contact-row{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.site-footer .ico{display:inline-flex;flex:none;color:var(--yellow)}

/* Tablet and phone */
@media (max-width:1000px){
  .page-grid{grid-template-columns:1fr}
}
@media (max-width:800px){
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  main{padding-top:24px;padding-bottom:32px}
  .lead{font-size:16px;margin-bottom:20px}
  .topbar{position:static}
  .topbar-row{display:grid;gap:12px;padding-top:12px;padding-bottom:14px}
  .top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;align-items:stretch}
  .top-actions .btn{white-space:normal;text-align:center;min-height:44px;padding:6px;font-size:13px;line-height:1.15}
  .card{padding:20px}
  .form-grid{grid-template-columns:1fr;gap:18px}
  .drop{padding:16px;gap:12px}
  .drop-top{display:grid;gap:12px}
  .drop-top .btn{width:100%}
  .file{font-size:14px}
  .actions{display:grid;gap:12px}
  .actions .btn{width:100%}
  .next{margin-top:0;padding:16px}
  .step{padding-bottom:16px}
  .step:not(:last-child)::after{bottom:4px}
  .step h3{font-size:17px}
  .step p{font-size:14px}
  .footer-grid{gap:22px;padding-bottom:36px}
  .site-footer .contact-row{margin-bottom:8px}
  .site-footer .contact-row a{overflow-wrap:anywhere}
}