/* ==========================================================================
   Upload Your Documents — the one-time link landing page (86d3pq3ya)

   Kept in its own file so the WordPress page template can wp_enqueue it via
   the registry in functions.php — not a prototype port; this page never
   existed in the prototype. Same containment convention as contact.css
   (.sig-page): everything scopes under .updocs-root.

   Deliberately plain — one card, the site's typography (Nunito Sans body,
   Oswald small-caps labels), no scene, no motion. Guests arrive from an
   email with one job to do.

   Sections
     1. Shell + card
     2. Type
     3. The form (file input, picked-files list, button, states)
     4. Narrow screens (same ~920px convention as the other page CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHELL + CARD
   -------------------------------------------------------------------------- */
.updocs-root {
  --ink: #173049;
  --ink-soft: #2c3f4d;
  --ink-mute: #41586b;
  --ink-faint: #5a7285;
  --rust: #a8432a;
  --teal: #0b6e66;
  --gold: #ffe6ad;
  --cream: #fcf6ec;
  --paper-edge: #b6c6d2;

  min-height: 72vh;
  padding: 64px 20px 96px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, #8ec8ee 0, #accfe9 220px, #c3e0f1 60%, #a9cbe6 100%);
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ink-soft);
}

.updocs-root *,
.updocs-root *::before,
.updocs-root *::after { box-sizing: border-box; }

.updocs-card {
  width: 100%;
  max-width: 640px;
  background: var(--cream);
  border: 1px solid var(--paper-edge);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(23, 48, 73, 0.18);
  padding: 40px 44px 44px;
}

/* --------------------------------------------------------------------------
   2. TYPE
   -------------------------------------------------------------------------- */
.updocs-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.updocs-h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
}

.updocs-h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--teal);
  margin: 0 0 10px;
  outline: none;
}

.updocs-lede { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.updocs-lede a { color: var(--rust); text-decoration: underline; }
.updocs-lede a:hover { color: var(--ink); }

.updocs-note {
  font-size: 14px;
  color: var(--ink-mute);
  background: rgba(11, 110, 102, 0.08);
  border-left: 3px solid var(--teal);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin: 0 0 26px;
}

/* --------------------------------------------------------------------------
   3. THE FORM
   -------------------------------------------------------------------------- */
.updocs-filelabel {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.updocs-fileinput {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px dashed var(--paper-edge);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}

.updocs-fileinput:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.updocs-fileinput::file-selector-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  margin-right: 12px;
  cursor: pointer;
}

/* the picked-files echo under the input */
.updocs-picked { margin: 10px 0 0; font-size: 14px; color: var(--ink-mute); }
.updocs-picked span { display: block; padding: 2px 0; }

/* whole-form failure notice — never silent */
.updocs-err {
  display: none;
  margin: 16px 0 0;
  padding: 10px 14px;
  font-size: 14.5px;
  color: #7c2410;
  background: rgba(168, 67, 42, 0.1);
  border-left: 3px solid var(--rust);
  border-radius: 0 6px 6px 0;
}
.updocs-err.is-on { display: block; }

.updocs-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.updocs-btn:hover { background: #0d857b; }
.updocs-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.updocs-btn:disabled { background: var(--ink-faint); cursor: wait; }

.updocs-small { font-size: 13px; color: var(--ink-faint); margin: 12px 0 0; text-align: center; }

.updocs-done p { font-size: 16px; line-height: 1.6; margin: 0; }

/* visually hidden live region for screen readers */
.updocs-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. NARROW SCREENS
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .updocs-root { padding: 40px 14px 64px; }
  .updocs-card { padding: 28px 22px 32px; }
}
