.preventivatore {
  max-width: 600px;
  margin: 24px auto;
  padding: 0 16px;
}

.preventivatore--inline {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preventivatore--inline .pv-form-column,
.preventivatore--inline .pv-summary-column {
  width: 100%;
}

.preventivatore .pv-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e6e6e6;
  padding: 24px;
}

.preventivatore .pv-progress {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c6c6c;
  margin-bottom: 16px;
}

.preventivatore .pv-step {
  display: none;
}

.preventivatore .pv-step.is-active {
  display: block;
}

.preventivatore--inline .pv-step {
  display: block;
}

.preventivatore--inline .pv-step + .pv-step {
  margin-top: 24px;
}

.preventivatore .pv-step-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #1f2933;
}

.preventivatore .pv-step-description {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 0.95rem;
}

.preventivatore .pv-options {
  display: grid;
  gap: 12px;
}

.preventivatore .pv-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.preventivatore .pv-option:hover {
  border-color: #b3b3b3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.preventivatore .pv-option input {
  margin: 0;
}

.preventivatore .pv-option-label {
  display: block;
}

.preventivatore .pv-field {
  margin-bottom: 16px;
}

.preventivatore .pv-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2933;
}

.preventivatore .pv-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  background: #ffffff;
}

.preventivatore .pv-input:focus {
  outline: 2px solid #1f7aea;
  outline-offset: 2px;
}

.preventivatore .pv-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}

.preventivatore .pv-result {
  background: #f5f6f8;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.preventivatore .pv-result-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: #111827;
}

.preventivatore .pv-result-intro {
  margin-top: 0;
  margin-bottom: 12px;
  color: #4b5563;
}

.preventivatore .pv-result-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.preventivatore .pv-disclaimer {
  font-size: 0.9rem;
  color: #6b7280;
}

.preventivatore .preventivatore-summary {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.preventivatore--wizard .preventivatore-summary {
  margin-top: 24px;
}

.preventivatore .pv-summary-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #111827;
}

.preventivatore .pv-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.preventivatore .pv-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 0.95rem;
}

.preventivatore .pv-summary-item:last-child {
  border-bottom: none;
}

.preventivatore .pv-summary-item.is-hidden {
  display: none;
}

.preventivatore .pv-summary-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preventivatore .pv-summary-meta {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #6b7280;
  white-space: pre-line;
}

.preventivatore .pv-summary-value {
  font-weight: 600;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}

.preventivatore .pv-summary-discount .pv-summary-value {
  color: #b91c1c;
}

.preventivatore .pv-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d1d5db;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}

.preventivatore .pv-summary-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #1f7aea;
  background: #1f7aea;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preventivatore .pv-summary-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(31, 122, 234, 0.2);
}

.preventivatore .pv-navigation {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.preventivatore .pv-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preventivatore .pv-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.2);
}

.preventivatore .pv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.preventivatore .pv-prev {
  background: #f3f4f6;
  color: #1f2933;
  border-color: #d1d5db;
}

.preventivatore .pv-submit {
  background: #1f7aea;
}

.preventivatore .pv-form-message {
  margin-top: 16px;
  font-size: 0.95rem;
}

.preventivatore .pv-form-message.is-success {
  color: #0f766e;
}

.preventivatore .pv-form-message.is-error {
  color: #b91c1c;
}

.preventivatore .preventivatore-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.preventivatore .preventivatore-modal[aria-hidden="true"] {
  display: none;
}

.preventivatore .preventivatore-modal.is-open,
.preventivatore .preventivatore-modal[aria-hidden="false"] {
  display: block;
}

.preventivatore .preventivatore-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.preventivatore .preventivatore-modal-dialog {
  position: relative;
  max-width: 480px;
  margin: 48px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.preventivatore .preventivatore-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.preventivatore .preventivatore-modal-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: #111827;
}

@media (min-width: 640px) {
  .preventivatore {
    padding: 0;
  }

  .preventivatore .pv-card {
    padding: 32px;
  }

  .preventivatore .pv-navigation {
    justify-content: flex-end;
  }

  .preventivatore .pv-btn {
    flex: initial;
    min-width: 160px;
  }
}

@media (min-width: 768px) {
  .preventivatore--inline {
    flex-direction: row;
    align-items: flex-start;
  }

  .preventivatore--inline .pv-form-column {
    flex: 2;
  }

  .preventivatore--inline .pv-summary-column {
    flex: 1;
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }

  .preventivatore--inline .pv-summary-column .preventivatore-summary {
    position: static;
  }

  .preventivatore--inline .pv-summary-cta-button {
    display: block;
    width: 100%;
    margin-top: 16px;
  }
}
