/* Percorso guidato: domande grandi al centro, step progressivi */

body.percorso-guidato-page::before,
body.percorso-guidato-page::after {
  display: none;
}

body.percorso-guidato-page .wrap {
  max-width: 68rem;
  min-height: 100vh;
  padding-top: 1.5rem;
}

.pg-head {
  margin-bottom: 1.2rem;
}

.pg-head .page-title {
  margin-bottom: 0;
}

.pg-wizard {
  margin-top: 0.5rem;
}

.pg-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.pg-step {
  display: none;
  padding: 1.25rem 1.15rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 14, 24, 0.5);
  box-shadow: 0 0 36px rgba(0, 170, 230, 0.08);
}

.pg-step.is-visible {
  display: block;
}

.pg-question {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #eaf9ff;
}

.pg-question-sub {
  margin: 0 0 0.75rem;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: rgba(175, 220, 240, 0.88);
}

.pg-options {
  display: grid;
  gap: 0.6rem;
}

.pg-option {
  display: block;
  cursor: pointer;
}

.pg-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pg-option span {
  display: block;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 10px;
  font-size: clamp(0.98rem, 2.1vw, 1.2rem);
  line-height: 1.4;
  color: rgba(220, 245, 255, 0.95);
  background: rgba(8, 20, 34, 0.55);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pg-option input:checked + span {
  border-color: rgba(0, 240, 255, 0.62);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.pg-option input:focus-visible + span {
  outline: 2px solid rgba(0, 240, 255, 0.9);
  outline-offset: 3px;
}

.pg-text-wrap textarea {
  width: 100%;
  min-height: 8.8rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.24);
  background: rgba(8, 18, 30, 0.7);
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.5;
  resize: vertical;
}

.pg-text-wrap textarea:focus-visible {
  outline: 2px solid rgba(0, 240, 255, 0.85);
  outline-offset: 2px;
}

.pg-form-footer {
  display: none;
  margin-top: 0.35rem;
  padding: 0 0.15rem;
}

.pg-form-footer.is-active {
  display: block;
}

.pg-form-footer .pg-submit {
  margin-top: 0.55rem;
}

.pg-next,
.pg-submit {
  margin-top: 0.8rem;
  padding: 0.78rem 1rem;
  border: none;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: #041019;
  background: linear-gradient(165deg, #94f3ff 0%, #00d7eb 100%);
}

.pg-next[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pg-contact-grid {
  display: grid;
  gap: 0.72rem;
}

.pg-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pg-field span {
  font-size: 0.78rem;
  color: rgba(170, 225, 245, 0.85);
}

.pg-field input {
  width: 100%;
  padding: 0.67rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(8, 18, 30, 0.74);
  color: var(--text);
  font-size: 1rem;
}

.pg-field input:focus-visible {
  outline: 2px solid rgba(0, 240, 255, 0.85);
  outline-offset: 2px;
}

.pg-field--message textarea {
  width: 100%;
  min-height: 8.8rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.24);
  background: rgba(8, 18, 30, 0.7);
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.pg-field--message textarea:focus-visible {
  outline: 2px solid rgba(0, 240, 255, 0.85);
  outline-offset: 2px;
}

.pg-hp {
  position: absolute;
  left: -10000px;
}

.pg-status {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.92rem;
  border-radius: 8px;
}

.pg-status--error {
  color: rgba(255, 175, 185, 0.98);
  background: rgba(80, 20, 32, 0.45);
  border: 1px solid rgba(255, 120, 140, 0.35);
}

.pg-status--ok {
  color: rgba(130, 255, 190, 0.92);
  background: rgba(20, 60, 40, 0.4);
  border: 1px solid rgba(100, 255, 170, 0.3);
}

html[data-theme="light"] .pg-step {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 106, 120, 0.22);
  box-shadow: 0 8px 28px rgba(0, 70, 90, 0.08);
}

html[data-theme="light"] .pg-question {
  color: #0d2833;
}

html[data-theme="light"] .pg-question-sub {
  color: rgba(20, 55, 70, 0.82);
}

html[data-theme="light"] .pg-option span,
html[data-theme="light"] .pg-text-wrap textarea,
html[data-theme="light"] .pg-field input,
html[data-theme="light"] .pg-field--message textarea {
  color: #14303b;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 106, 120, 0.26);
}

@media (min-width: 760px) {
  .pg-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-field--full {
    grid-column: 1 / -1;
  }
}
