:root {
  --ls-bg: #2f3542;
  --ls-bg-accent: #242833;
  --ls-panel: #ffffff;
  --ls-panel-border: rgba(255, 255, 255, 0.08);
  --ls-primary: #0b5ed7;
  --ls-primary-hover: #0a58ca;
  --ls-text: #1f2937;
  --ls-muted: #6b7280;
  --ls-section-border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body.preventivo-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 35%),
    linear-gradient(180deg, var(--ls-bg-accent) 0%, var(--ls-bg) 100%);
  color: var(--ls-text);
}

.preventivo-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.preventivo-panel {
  background: var(--ls-panel);
  border: 1px solid var(--ls-panel-border);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .preventivo-panel {
    padding: 2.5rem 2.5rem 2rem;
  }
}

.form-logo {
  display: block;
  margin: 0 auto 1.5rem;
}

.preventivo-panel h1 {
  color: #111827;
  letter-spacing: 0.02em;
}

.preventivo-subtitle {
  color: var(--ls-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.form-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--ls-section-border);
}

.form-section:first-of-type {
  border-top: 0;
  padding-top: 0.5rem;
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
}

.form-illustration {
  margin: 0.5rem 0 1rem;
}

.form-label {
  font-weight: 600;
  color: #374151;
}

.form-text {
  color: var(--ls-muted);
}

.form-control,
.form-select {
  border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#custom-format-fields {
  margin-top: 0.25rem;
}

.form-actions {
  padding-top: 0.5rem;
}

.btn-primary {
  background-color: var(--ls-primary);
  border-color: var(--ls-primary);
  min-width: 190px;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ls-primary-hover);
  border-color: var(--ls-primary-hover);
}

.btn-outline-secondary {
  min-width: 190px;
  font-weight: 600;
}

#uploaded-file-list .list-group-item {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  border-color: var(--ls-section-border);
}

body.thankyou-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 35%),
    linear-gradient(180deg, var(--ls-bg-accent) 0%, var(--ls-bg) 100%);
}

.thankyou-panel {
  background: var(--ls-panel);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 3rem 2rem;
}

.upload-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.upload-intro {
  margin-bottom: 1rem;
  color: #374151;
  font-weight: 600;
}

.upload-dropzone {
  position: relative;
  border: 2px dashed #6ea8fe;
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone--active {
  border-color: #0d6efd;
  background: #f3f8ff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.upload-dropzone--has-files {
  border-style: solid;
  border-color: #9ec5fe;
}

.upload-dropzone--error {
  border-color: #dc3545;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 180px;
  padding: 1.5rem;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.upload-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7f1ff;
  color: #0d6efd;
}

.upload-dropzone-icon svg {
  width: auto;
  height: 38px;
  max-width: 38px;
  fill: currentColor;
}

.upload-dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
}

.upload-dropzone-meta {
  color: #6b7280;
  font-size: 0.95rem;
}

.upload-note {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.upload-error:empty {
  display: none !important;
}

.upload-error {
  margin-top: 0.75rem;
  color: #dc3545;
  font-size: 0.95rem;
  font-weight: 600;
}

.uploaded-files-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
}

.uploaded-files-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #1f2937;
}

.uploaded-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uploaded-file-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 500;
}

.uploaded-file-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.uploaded-file-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d6efd;
  flex-shrink: 0;
}

