/* ============================================================================
   ups-upload.css — Customer Upload Portal skin (body.ups-upload).
   Loaded AFTER ups.css (via upload.html {% block head %}) so it overrides the
   older upload rules still living in ups.css. Matches the approved mockup
   docs/rebrand-mockups/ups_blue_upload_v2.html. Reskin only: every upload.js
   hook (ids: dropZone/fileInput/fileList/uploadForm/name/email/submitBtn/…,
   classes: .drop-hint, .upload-file-list, .progress-container) is preserved.
   Tokens (--blue/--gold/--paper/--ink/--u-display/--u-script…) come from body.ups.
   ============================================================================ */

/* Top bar: /upload uses the shared _ups_header.html masthead (styled by ups.css
   .ups-mast) for consistency with the other marketing pages. */

/* ---------- hero (welcome + bleed photo) ---------- */
body.ups-upload .ups-hero{position:relative;overflow:hidden;background-color:var(--paper);background-image:none;border-bottom:1px solid var(--line)}
body.ups-upload .ups-hero::after{content:none}
body.ups-upload .ups-hero .hero-in{position:relative;max-width:1520px;margin:0 auto;padding:44px 30px 40px;min-height:520px;display:flex;flex-direction:column;justify-content:center}
body.ups-upload .intro{max-width:43%;position:relative;z-index:2;padding-right:2.5rem}
body.ups-upload .ups-hero h1{font-family:var(--u-display);font-weight:900;font-size:clamp(3.2rem,6vw,5rem);line-height:.9;letter-spacing:-.035em;color:#111F2C;margin:0}
body.ups-upload .quote{margin:1.7rem 0 0;padding:0;border:0}
body.ups-upload .quote p{font-size:clamp(1.2rem,2vw,1.6rem);font-weight:500;color:#182634;line-height:1.3;max-width:none}
body.ups-upload .quote .q{color:var(--blue);font-family:var(--u-display);font-weight:900;font-size:2.4em;line-height:0}
body.ups-upload .quote .q-open{position:relative;top:.38em;margin-right:.04em}
body.ups-upload .quote .q-close{position:relative;top:.46em;margin-left:.02em}
body.ups-upload .sigwrap{margin-top:1.7rem}
body.ups-upload .sigwrap .sig{font-family:var(--u-script);font-size:3.5rem;color:var(--blue);line-height:.7}
body.ups-upload .sigwrap .who{font-family:var(--u-display);font-size:.92rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue-2);margin-top:.55rem}
body.ups-upload .hero-photo{position:absolute;top:0;bottom:0;left:55%;right:calc((100% - 100vw)/2);z-index:1}
body.ups-upload .hero-photo img{width:100%;height:100%;object-fit:cover;object-position:60% 50%}
body.ups-upload .hero-photo::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,var(--paper) 1%,rgba(231,237,243,.85) 14%,rgba(231,237,243,0) 40%)}

/* ---------- form (two columns: name+email | files, send full width) ---------- */
body.ups-upload .form-section{background:var(--paper);padding:34px 30px 60px}
body.ups-upload .form-wrap{max-width:1520px;margin:0 auto}
body.ups-upload .upload-form{display:block}
body.ups-upload .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px 42px;align-items:stretch}
body.ups-upload .form-left{display:flex;flex-direction:column;gap:26px}
body.ups-upload .form-right{display:flex;flex-direction:column}
body.ups-upload .form-field{display:block}
body.ups-upload .form-field label,body.ups-upload .form-right>label{display:block;font-family:var(--u-display);font-weight:700;font-size:1.05rem;letter-spacing:.03em;text-transform:uppercase;color:var(--blue);margin:0 0 11px}
body.ups-upload .field-required{color:var(--req)}
body.ups-upload .form-field input{width:100%;background:#fff;border:1.5px solid #9FC0DC;border-radius:8px;padding:17px;margin:0;font-family:var(--u-body);font-size:1.05rem;color:var(--ink);transition:.15s}
body.ups-upload .form-field input::placeholder{color:#9aa9b6}
body.ups-upload .form-field input:hover{border-color:#6fa3ce}
body.ups-upload .form-field input:focus{outline:none;border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(4,104,176,.14)}

/* drop zone */
body.ups-upload .drop-zone{flex:1;position:relative;border:2px dashed #6FA3CE;border-radius:8px;background:#fff;padding:36px 20px;text-align:center;cursor:pointer;transition:.16s;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;color:var(--ink)}
body.ups-upload .drop-zone:hover,body.ups-upload .drop-zone.hover,body.ups-upload .drop-zone.dragover{border-color:var(--blue);background:#F4F9FD;box-shadow:0 0 0 3px rgba(4,104,176,.12)}
body.ups-upload .drop-zone.has-files{min-height:0;padding:22px 20px}
body.ups-upload .drop-zone-icon{width:52px;height:52px;color:var(--blue);margin-bottom:2px;display:grid;place-items:center;background:none;border:0;box-shadow:none}
body.ups-upload .drop-zone-icon svg{width:100%;height:100%}
body.ups-upload .drop-hint{font-family:var(--u-body);font-size:1.2rem;color:var(--ink);font-weight:500;text-transform:none;letter-spacing:0}
body.ups-upload .drop-browse{font-size:1.2rem;color:var(--blue);font-weight:500}
body.ups-upload .drop-meta{display:none}

/* file list (rendered by upload.js) */
body.ups-upload .upload-file-list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left}
body.ups-upload .upload-file-item{display:flex;align-items:center;gap:.7rem;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px}
body.ups-upload .upload-file-icon{width:34px;height:34px;flex:none;border-radius:6px;background:var(--sky);color:var(--blue);display:grid;place-items:center}
body.ups-upload .upload-file-name{color:var(--ink);font-weight:600;font-size:.9rem;word-break:break-word}
body.ups-upload .upload-file-size{font-family:var(--u-mono);font-size:.7rem;color:var(--muted)}
body.ups-upload .upload-file-actions{display:flex;align-items:center;gap:.4rem;flex:none;margin-left:auto}
body.ups-upload .upload-file-preview,body.ups-upload .upload-file-remove{width:30px;height:30px;flex:none;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);display:grid;place-items:center;padding:0;cursor:pointer;transition:.15s}
body.ups-upload .upload-file-preview:hover{color:var(--blue);border-color:var(--blue)}
body.ups-upload .upload-file-remove:hover{color:var(--req);border-color:var(--req)}

/* progress (upload.js toggles inline display) */
body.ups-upload .progress-container{display:none;margin-top:16px;height:10px;border-radius:999px;background:#d7e2ec;position:relative;overflow:hidden}
body.ups-upload #progressBar{height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--blue-bright));border-radius:999px;transition:width .3s}
body.ups-upload .progress-text{position:absolute;inset:0;top:0;display:grid;place-items:center;font-family:var(--u-mono);font-size:.66rem;color:var(--blue-2)}

/* submit + disclaimer */
body.ups-upload .upload-submit{display:block;width:100%;margin-top:28px;background:var(--blue);color:#fff;border:none;border-radius:8px;font-family:var(--u-display);font-weight:700;font-size:1.55rem;padding:20px;cursor:pointer;box-shadow:0 12px 26px -12px rgba(4,104,176,.7);transition:.16s}
body.ups-upload .upload-submit:hover{background:var(--blue-bright)}
body.ups-upload .upload-submit:active{transform:translateY(1px)}
body.ups-upload .upload-submit:disabled{opacity:.55;cursor:not-allowed}
body.ups-upload .upload-disclaimer{text-align:center;color:#4A5B6C;font-size:1rem;line-height:1.65;max-width:78ch;margin:24px auto 0}

/* keep the wide container in sync with the site footer on this page */
body.ups-upload .ups-foot .foot-in,body.ups-upload .ups-foot .foot-bar-in{max-width:1520px}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media(max-width:1024px){
  body.ups-upload .hero-photo{left:50%}
  body.ups-upload .intro{max-width:46%}
}

/* tablet portrait / large phone: stack the form to one column */
@media(max-width:760px){
  /* mobile keeps the desktop-style bleed: photo fades into the hero, no frame */
  body.ups-upload .ups-hero .hero-in{min-height:300px;padding:22px 14px 22px;align-items:flex-start}
  body.ups-upload .intro{max-width:44%;padding-right:.5rem}
  body.ups-upload .ups-hero h1{font-size:clamp(1.9rem,9.5vw,2.5rem)}
  body.ups-upload .quote{margin-top:.9rem}
  body.ups-upload .quote p{font-size:1rem;max-width:none}
  body.ups-upload .sigwrap{margin-top:1.1rem}
  body.ups-upload .sigwrap .sig{font-size:2.9rem}
  body.ups-upload .hero-photo{left:46%;right:0}
  body.ups-upload .hero-photo img{object-position:50% 22%}
  body.ups-upload .hero-photo::after{background:linear-gradient(90deg,var(--paper) 0%,rgba(231,237,243,.5) 6%,rgba(231,237,243,0) 16%)}

  body.ups-upload .form-section{padding:26px 18px 44px}
  body.ups-upload .form-grid{grid-template-columns:1fr;gap:22px}
  body.ups-upload .drop-zone{min-height:170px;padding:40px 18px}
  body.ups-upload .upload-submit{font-size:1.4rem;margin-top:24px}
  body.ups-upload .upload-disclaimer{font-size:.95rem}
}

@media(max-width:420px){
  body.ups-upload .intro{max-width:46%}
  body.ups-upload .ups-hero h1{font-size:clamp(1.85rem,11vw,2.3rem)}
  body.ups-upload .quote p{font-size:.95rem}
  body.ups-upload .sigwrap .sig{font-size:2.6rem}
}
