/* ============================================================
   30-lead-uploads.css — file-attachment widget for the public
   lead forms. Used on the home-page hero quick-quote and the
   full quote section. Drop site photos, council letters, or
   pre-approved plans straight onto the form before submitting.
   ============================================================ */

.lead-upload {
  border: 2px dashed var(--c-line);
  border-radius: 12px;
  padding: 18px;
  background: var(--c-card);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
  position: relative;
}
.lead-upload.is-dragging {
  border-color: var(--c-blue);
  background: rgba(30, 58, 95, 0.05);
}
.lead-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.lead-upload-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.lead-upload-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.lead-upload-copy {
  flex: 1;
  min-width: 0;
}
.lead-upload-copy strong {
  display: block;
  color: var(--c-ink);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.lead-upload-copy span {
  display: block;
  color: var(--c-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* List of staged files appears below the drop zone after selection */
.lead-upload-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-size: 0.88rem;
}
.lead-upload-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.lead-upload-item-info {
  flex: 1;
  min-width: 0;
}
.lead-upload-item-name {
  color: var(--c-ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.lead-upload-item-size {
  color: var(--c-muted);
  font-size: 0.78rem;
}
.lead-upload-item-remove {
  background: transparent;
  border: 0;
  color: var(--c-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.lead-upload-item-remove:hover {
  color: var(--c-ink);
  background: rgba(0, 0, 0, 0.06);
}
.lead-upload-item-remove:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}
.lead-upload-item.is-error {
  background: rgba(179, 38, 30, 0.06);
  border-color: rgba(179, 38, 30, 0.3);
}
.lead-upload-item.is-error .lead-upload-item-name { color: #b3261e; }

@media (max-width: 480px) {
  .lead-upload { padding: 14px; }
  .lead-upload-icon { font-size: 1.3rem; }
  .lead-upload-copy strong { font-size: 0.88rem; }
  .lead-upload-copy span { font-size: 0.78rem; }
}
