/* Plumbix note: shared visual styling for preventivo wizard. */
/* Preventivo guidato Plumbix */
.prev-page-wrap {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.prev-hero {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, #eef3fc 0%, #f8fbff 60%, #fff 100%);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid #e2eaf4;
  margin-bottom: 28px;
}

.prev-hero h1 {
  font-size: 1.75rem;
  margin: 0 0 10px;
  color: #0e4ea8;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prev-hero p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.prev-gate {
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: var(--radius-lg, 20px);
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 6px 28px rgba(26, 102, 217, 0.07);
}

.prev-gate i.gate-icon {
  font-size: 3rem;
  color: #1a66d9;
  margin-bottom: 16px;
}

.prev-gate h2 { margin: 0 0 10px; }
.prev-gate p { color: #64748b; margin-bottom: 24px; }
.prev-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.prev-card {
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.prev-progress {
  height: 6px;
  background: #e8eef5;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.prev-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a66d9, #0e4ea8);
  border-radius: 6px;
  transition: width 0.35s ease;
}

.prev-step-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 20px;
  font-weight: 600;
}

.prev-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1e293b;
}

.prev-step-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
}

.prev-punti-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eef6ff;
  border: 1px solid #b8d4f5;
  border-radius: 12px;
  color: #0e4ea8;
  font-size: 0.9rem;
}

.prev-punti-box strong { display: block; }

.prev-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prev-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 48px;
  border: 2px solid #e2eaf4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  font-size: 0.9rem;
  font-weight: 500;
  background: #fafbfd;
}
.prev-option:focus-within { border-color: #1a66d9; box-shadow: 0 0 0 3px rgba(26, 102, 217, 0.1); }

.prev-option:hover { border-color: #bdd4fc; background: #f0f6ff; }
.prev-option.selected { border-color: #1a66d9; background: #eef3fc; }
.prev-option input { accent-color: #1a66d9; }

.prev-field input,
.prev-field textarea,
.prev-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
}

.prev-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.prev-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e8eef5;
}

.prev-btn {
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.prev-btn:focus-visible { outline: 2px solid #1a66d9; outline-offset: 2px; }

.prev-btn-primary {
  background: #1a66d9;
  color: #fff;
}

.prev-btn-primary:hover { background: #0e4ea8; }
.prev-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2eaf4;
}

.prev-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Risultati */
.prev-results {
  max-width: 960px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.prev-results-header {
  background: linear-gradient(120deg, #1a66d9, #0e4ea8);
  color: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.prev-results-header h2 { margin: 0 0 8px; font-size: 1.4rem; }
.prev-results-header p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.prev-summary-box {
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.prev-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.prev-actions-bar .prev-btn { flex: 1; min-width: 180px; justify-content: center; }

.prev-products-section {
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.prev-offer-banner {
  background: #fffbeb;
  border: 1px solid #f0d78c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.prev-support-cta {
  background: #f0f6ff;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.prev-support-cta h3 { margin: 0 0 8px; color: #0e4ea8; }
.prev-support-cta p { color: #64748b; font-size: 0.88rem; margin-bottom: 16px; }

.prev-saved-list {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2eaf4;
}

.prev-saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.prev-saved-item a { color: #1a66d9; font-weight: 600; text-decoration: none; }

@media (max-width: 768px) {
  .prev-hero { padding: 28px 16px; }
  .prev-hero h1 { font-size: 1.4rem; }
  .prev-gate { padding: 28px 18px; }
  .prev-step-options { grid-template-columns: 1fr; }
  .prev-option-btn { min-height: 48px; }
}

@media (max-width: 600px) {
  .prev-actions-bar { flex-direction: column; }
  .prev-actions-bar .prev-btn { min-width: 100%; min-height: 44px; }
  .prev-offer-banner { font-size: 0.85rem; padding: 12px 14px; }
  .prev-form input,
  .prev-form select,
  .prev-form textarea { font-size: 16px; min-height: 44px; }
}
