/* V4 = V1 (paper, corporate, white space) + V3's mesh gradient, used only in two dark panels.
   Loaded after ../styles.css; only the differences live here. */

/* gradient headline accent, darker than V3's so it reads on paper */
.grad {
  background: linear-gradient(90deg, #006c85, #0a8fb3 45%, #2a5fb8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* dark panels carrying the mesh shader */
.mesh-panel { position: relative; overflow: hidden; isolation: isolate; background: #06101f; }
.mesh-panel > .mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.mesh-panel::after { /* soft vignette keeps edges calm */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 50%, rgba(3,8,18,0.65));
}
.instrument.mesh-panel { border-color: rgba(120,180,255,0.18); box-shadow: 0 30px 70px -30px rgba(10,40,90,0.55); }
.instrument #globe { position: relative; }

/* RFQ: gradient card on the left, paper form on the right */
.rfq { align-items: stretch; background: var(--paper); }
.rfq-left { border-radius: 16px; color: #eef3fb; align-self: start; position: sticky; top: 96px; }
.rfq-left-in { position: relative; padding: 36px 32px; display: flex; flex-direction: column; }
.rfq-left .label { color: rgba(206,220,240,0.6); }
.rfq-left h2 { color: #fff; }
.rfq-left p:not(.label) { color: rgba(206,220,240,0.78) !important; }
.rfq-left .contact-lines { margin-top: auto; padding-top: 40px; }
.rfq-left .contact-lines a { color: #8fdcff; }
.form { background: #fbf9f4; }

/* drag-and-drop upload */
.drop-field { display: grid; gap: 7px; }
.drop-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 26px 16px; border: 1.5px dashed var(--rule-2); border-radius: 12px; background: #f6f3ec;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,127,153,0.15); }
.dropzone.over { border-color: var(--accent); border-style: solid; background: rgba(0,127,153,0.06); transform: scale(1.01); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dz-main { font-size: 15px; color: var(--ink); }
.dz-main u { color: var(--accent); text-underline-offset: 3px; }
.dz-sub { font-size: 11px; color: var(--ink-3); }
.dropzone.invalid { border-color: #b3261e; }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-list li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; border: 1px solid var(--rule); border-radius: 10px; background: #fff;
  animation: fileIn .25s ease;
}
@keyframes fileIn { from { opacity: 0; transform: translateY(4px); } }
.file-list .thumb { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; font: 500 10px var(--mono); color: var(--ink-3); }
.file-list .meta { min-width: 0; }
.file-list .name { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-list .size { font: 400 11px var(--mono); color: var(--ink-3); }
.file-list button {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3);
  font-size: 18px; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.file-list button:hover { background: var(--paper-2); color: #b3261e; }
.file-total { font: 400 11px var(--mono); color: var(--ink-3); }

@media (max-width: 1020px) {
  .rfq-left { position: relative; top: 0; }
  .rfq-left-in { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .rfq-left { border-radius: 14px; }
  .rfq-left-in { padding: 28px 20px; }
  .rfq-left .contact-lines { padding-top: 24px; }
}
