/* =========================================================================
   Paintlin's — customer upload page (layered on styles.css tokens)
   ========================================================================= */

.nav-links--static { list-style: none; display: flex; gap: 18px; padding: 0; }
.nav-links--static a { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav-links--static a:hover { color: var(--coral-deep); }

.upload-page { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 8vw, 88px); }
.upload-head { text-align: center; margin-bottom: clamp(28px, 4vw, 40px); }
.upload-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 14px 0; }
.upload-head .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin-inline: auto; }

/* ---------- tips ---------- */
/* ---------- read-the-guide callout ---------- */
.read-first {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 22px; text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, #FFF3EE, #FFE7DF);
  border: 1px solid var(--coral); border-left: 5px solid var(--coral-deep);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease;
}
.read-first:hover { box-shadow: var(--shadow); }
.read-first-ic { flex: none; font-size: 1.5rem; line-height: 1; }
.read-first-txt { font-size: .96rem; line-height: 1.4; }
.read-first-txt strong { display: block; font-family: var(--font-display); color: var(--coral-deep); font-size: 1.05rem; margin-bottom: 2px; }
.read-first-go { flex: none; margin-left: auto; color: var(--coral-deep); font-weight: 700; font-size: 1.3rem; }

.tips {
  background: linear-gradient(160deg, #fff, #FFF6EA);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px); margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.tips-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: 16px; }
.tip-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tip { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .98rem; }
.tip-ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--c, var(--coral)); color: #fff; font-size: 1rem; line-height: 1;
}

/* ---------- form card ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 38px); box-shadow: var(--shadow); display: grid; gap: 20px;
}
/* the grid display above overrides the UA [hidden] rule — restore it so gated cards can hide */
.form-card[hidden] { display: none; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .capture-style legend {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
}
.optional { color: var(--ink-soft); font-weight: 400; font-family: var(--font-body); }
.field input[type="text"], .field input[type="email"] {
  font-family: var(--font-body); font-size: 1rem; padding: .75em 1em;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus-visible { outline: none; border-color: var(--coral-deep); box-shadow: 0 0 0 4px rgba(200,68,59,.13); }

.capture-style { border: 0; padding: 0; margin: 0; display: grid; gap: 9px; }
.capture-style legend { margin-bottom: 4px; }
.radio { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 400; color: var(--ink); cursor: pointer; }
.radio input { accent-color: var(--coral-deep); width: 18px; height: 18px; }
.radio em { color: var(--ink-soft); font-style: normal; font-size: .9em; }

/* ---------- dropzone ---------- */
.dropzone {
  border: 2.5px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(28px, 5vw, 46px) 20px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--coral); background: #fff; outline: none; }
.dropzone.is-drag { border-color: var(--coral-deep); background: #FFF3F0; transform: scale(1.01); }
.dropzone.has-file { cursor: default; border-style: solid; border-color: var(--line); background: #fff; padding: 16px; text-align: left; }

.dz-idle { display: grid; place-items: center; gap: 6px; }
.dz-ic { width: 44px; height: 44px; fill: none; stroke: var(--coral-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dz-main { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.dz-sub { color: var(--ink-soft); font-size: .92rem; }
.dz-link { color: var(--coral-deep); font-weight: 600; text-decoration: underline; }

.dz-file { display: flex; align-items: center; gap: 16px; }
.dz-preview { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; background: #000; flex: none; }
.dz-meta { flex: 1; min-width: 0; }
.dz-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-size { color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }
.dz-remove {
  flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 1rem; line-height: 1;
}
.dz-remove:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- progress ---------- */
.progress[hidden] { display: none; }
.progress-track { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--sun)); transition: width .25s ease; }
.progress-label { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- submit ---------- */
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.submit-row .btn { font-size: 1.05rem; }
.form-msg { font-weight: 500; flex-basis: 100%; min-height: 1.1em; }
.form-msg.is-ok { color: #1f7a3d; }
.form-msg.is-err { color: var(--coral-deep); }
.reassure { color: var(--ink-soft); font-size: .9rem; }

/* ---------- what happens next ---------- */
.next-mini { margin-top: 34px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
.next-mini h2 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 14px; }
.ministeps { list-style: none; padding: 0; display: grid; gap: 12px; }
.ministeps li { position: relative; padding-left: 26px; color: var(--ink); }
.ministep-dot { position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 999px; background: var(--c, var(--coral)); }

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .tip-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .dz-preview { width: 84px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar, .dropzone { transition: none; }
}
