/* f-upload: "Send a list or BOQ" page (inc/f-upload.php, assets/js/f-upload.js) */
.sgt-f .f-upload .up-wrap { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter) 0; }
.sgt-f .f-upload .up-crumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: var(--t-ui); color: var(--muted); margin-bottom: 12px; }
.sgt-f .f-upload .up-crumbs a { color: var(--navy); display: inline-flex; align-items: center; min-height: 44px; }
.sgt-f .f-upload .up-crumbs a::after { content: "/"; margin-left: 8px; color: var(--muted); }
.sgt-f .f-upload .up-head { margin-bottom: 20px; }
.sgt-f .f-upload .up-kicker { font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.sgt-f .f-upload .up-head h1 { font-size: var(--t-h1); }
.sgt-f .f-upload .up-lead { margin-top: 8px; max-width: 70ch; line-height: 1.6; font-size: var(--t-body); color: var(--muted); }

.sgt-f .f-upload .up-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sgt-f .f-upload .up-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; scroll-margin-top: 140px; }
.sgt-f .f-upload .up-card h2 { font-size: var(--t-h2); }
.sgt-f .f-upload .up-req { margin: 4px 0 16px; color: var(--muted); font-size: var(--t-ui); }

/* Alert above the form (summary or form-level error) */
.sgt-f .f-upload .up-alert { background: #fdecef; border: 1px solid #f3b8c3; color: var(--err); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 16px; font-weight: 600; line-height: 1.5; }

/* Fields: label above, hint, control, error */
.sgt-f .f-upload .fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.sgt-f .f-upload .lbl { font-size: var(--t-body); font-weight: 700; color: var(--ink); }
.sgt-f .f-upload .opt { font-weight: 400; color: var(--muted); }
.sgt-f .f-upload .hint { font-size: var(--t-ui); color: var(--muted); line-height: 1.4; }
.sgt-f .f-upload .fld :is(input[type=text], input[type=email], input[type=tel], textarea) { width: 100%; min-height: 48px; font-size: 16px; line-height: 1.4; border: 1px solid #c9cedb; border-radius: var(--r-s); padding: 11px 12px; background: #fff; color: var(--ink); }
.sgt-f .f-upload .fld textarea { min-height: 112px; resize: vertical; }
.sgt-f .f-upload .fld :is(input, textarea):focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--navy); }
.sgt-f .f-upload .fld.is-err :is(input[type=text], input[type=email], input[type=tel], textarea) { border-color: var(--err); border-width: 2px; padding: 10px 11px; }
.sgt-f .f-upload .err { font-size: var(--t-ui); font-weight: 600; color: var(--err); line-height: 1.4; }
.sgt-f .f-upload .err:empty { display: none; }
.sgt-f .f-upload .up-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; align-items: start; }

/* File field: plain input without JS; drop area + chosen-file row with JS (.is-js) */
.sgt-f .f-upload .fld--file input[type=file] { min-height: 48px; font-size: 16px; padding: 10px 0; max-width: 100%; }
.sgt-f .f-upload .up-form:not(.is-js) .drop { display: none; }
.sgt-f .f-upload .up-form.is-js .fld--file input[type=file] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.sgt-f .f-upload .fld--file { position: relative; }
.sgt-f .f-upload .drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 148px; padding: 20px 16px; border: 2px dashed #b9c2d6; border-radius: var(--r); background: var(--navy-tint); color: var(--ink-2); text-align: center; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.sgt-f .f-upload .drop:hover, .sgt-f .f-upload .drop.is-over { border-color: var(--navy); background: #dde7f4; }
.sgt-f .f-upload .fld--file:focus-within .drop, .sgt-f .f-upload .fld--file:focus-within .picked { box-shadow: var(--ring); border-color: var(--navy); }
.sgt-f .f-upload .fld--file.is-err .drop, .sgt-f .f-upload .fld--file.is-err .picked { border-color: var(--err); }
.sgt-f .f-upload .drop-ic { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.sgt-f .f-upload .drop-ic .i { width: 24px; height: 24px; }
.sgt-f .f-upload .drop-t { font-size: var(--t-body); line-height: 1.4; }
.sgt-f .f-upload .drop-t b { color: var(--ink); }
.sgt-f .f-upload .drop-t u { color: var(--navy); font-weight: 600; text-underline-offset: 2px; }
/* Phones and tablets: no dragging, so the area just says "Choose a file" */
@media (hover: none) {
  .sgt-f .f-upload .drop-drag { display: none; }
  .sgt-f .f-upload .drop-t u { display: inline-block; font-weight: 700; }
  .sgt-f .f-upload .drop-t u::first-letter { text-transform: uppercase; }
}
.sgt-f .f-upload .picked { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 8px 8px 14px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; }
.sgt-f .f-upload .picked-ic { color: var(--navy); }
.sgt-f .f-upload .picked-ic .i { width: 24px; height: 24px; }
.sgt-f .f-upload .picked-t { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.sgt-f .f-upload .picked-t b { color: var(--ink); }
.sgt-f .f-upload .picked-t span { color: var(--muted); font-size: var(--t-ui); white-space: nowrap; }
.sgt-f .f-upload .picked-x { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r-s); color: var(--navy); font-weight: 700; font-size: var(--t-ui); }
.sgt-f .f-upload .picked-x:hover { background: var(--navy-tint); }

/* Honeypot: off screen, not display:none (some bots skip hidden fields) */
.sgt-f .f-upload .up-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.sgt-f .f-upload .up-send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.sgt-f .f-upload .up-send .btn { min-width: 200px; }
.sgt-f .f-upload .up-progress { font-size: var(--t-ui); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Success */
.sgt-f .f-upload .up-done { outline: none; }
.sgt-f .f-upload .up-done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin-bottom: 12px; }
.sgt-f .f-upload .up-done-ic .i { width: 28px; height: 28px; stroke-width: 2.4; }
.sgt-f .f-upload .up-ref { margin-top: 6px; font-size: var(--t-body); }
.sgt-f .f-upload .up-ref b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sgt-f .f-upload .up-next { margin: 16px 0 20px; display: grid; gap: 10px; list-style: none; }
.sgt-f .f-upload .up-next li { position: relative; padding-left: 20px; line-height: 1.5; }
.sgt-f .f-upload .up-next li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.sgt-f .f-upload .up-next b { color: var(--ink); }
.sgt-f .f-upload .up-done-acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* Side: how it works, other ways to send */
.sgt-f .f-upload .up-side { display: grid; gap: 16px; }
.sgt-f .f-upload .up-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.sgt-f .f-upload .up-box h2 { font-size: var(--t-h3); margin-bottom: 12px; }
.sgt-f .f-upload .up-steps { display: grid; gap: 14px; }
.sgt-f .f-upload .up-steps li { display: flex; gap: 12px; align-items: flex-start; }
.sgt-f .f-upload .up-steps .n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: var(--t-ui); }
.sgt-f .f-upload .up-steps div { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.sgt-f .f-upload .up-steps b { color: var(--ink); }
.sgt-f .f-upload .up-steps span { color: var(--ink-2); font-size: var(--t-ui); }
.sgt-f .f-upload .up-alt { display: grid; gap: 4px; }
.sgt-f .f-upload .up-alt h2 { margin-bottom: 6px; }
.sgt-f .f-upload .up-alt-a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-s); color: var(--ink-2); }
.sgt-f .f-upload .up-alt-a:hover { background: var(--navy-tint); text-decoration: none; }
.sgt-f .f-upload .up-alt-a > .i { color: var(--navy); width: 22px; height: 22px; }
.sgt-f .f-upload .up-alt-a span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: var(--t-ui); }
.sgt-f .f-upload .up-alt-a b { color: var(--navy); font-size: var(--t-body); }
.sgt-f .f-upload .up-wa > .i, .sgt-f .f-upload .up-wa b { color: var(--wa); }

@media (max-width: 900px) {
  .sgt-f .f-upload .up-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sgt-f .f-upload .up-wrap { padding: 12px 16px 0; }
  .sgt-f .f-upload .up-card { padding: 16px; }
  .sgt-f .f-upload .up-row { grid-template-columns: minmax(0, 1fr); }
  .sgt-f .f-upload .up-send .btn { width: 100%; }
  .sgt-f .f-upload .up-done-acts .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sgt-f .f-upload .drop { transition: none; }
}
