/* ═══════════════════════════════════════════════════════════════════════════
   Preventivatore Dentale Albania – preventivatore.css
   Usa le stesse CSS variables del tema pda-theme.
   ═══════════════════════════════════════════════════════════════════════════ */

.pda-wrap {
  --navy:      #1B2A4A;
  --teal:      #0F7173;
  --teal-l:    #E0F4F4;
  --teal-mid:  #C4EBEB;
  --green:     #166534;
  --green-bg:  #DCFCE7;
  --green-mid: #BBF7D0;
  --amber-bg:  #FEF3C7;
  --line:      #E2E8F0;
  --body:      #2D3748;
  --muted:     #64748B;
  --bg:        #FAFBFC;
  --white:     #FFFFFF;
  --red:       #DC2626;
  --red-bg:    #FEE2E2;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --radius:    10px;
  --shadow:    0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(15,113,115,.14);

  font-family: var(--sans);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ── UTILITY ──────────────────────────────────────────────────────────── */
.pda-hidden { display: none !important; }

/* ── PROGRESS BAR ─────────────────────────────────────────────────────── */
.pda-progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.pda-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #22D3EE);
  border-radius: 2px;
  width: 0%;
  transition: width .5s ease;
}

/* ── STEP ─────────────────────────────────────────────────────────────── */
.pda-step { animation: pdaFadeIn .3s ease; }
@keyframes pdaFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── STEP HEADER ─────────────────────────────────────────────────────── */
.pda-step-header { margin-bottom: 28px; }
.pda-step-num {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-l); padding: 3px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 10px;
}
.pda-title {
  font-family: var(--serif); font-size: clamp(22px, 4vw, 30px);
  color: var(--navy); margin: 0 0 8px; line-height: 1.2;
}
.pda-subtitle { font-size: 15px; color: var(--muted); margin: 0; }

/* ── CATEGORY CARDS ──────────────────────────────────────────────────── */
.pda-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pda-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; text-align: left; transition: all .2s;
}
.pda-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pda-card.active { border-color: var(--teal); background: var(--teal-l); box-shadow: var(--shadow-md); }
.pda-card-icon { font-size: 24px; line-height: 1; }
.pda-card-label { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.pda-card-desc  { font-size: 12px; color: var(--muted); }

/* ── SUB-QUESTIONS ───────────────────────────────────────────────────── */
.pda-subq { margin-bottom: 20px; animation: pdaFadeIn .25s ease; }
.pda-field-group { margin-bottom: 20px; }
.pda-field-label {
  display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 10px;
}

/* ── CHIPS ───────────────────────────────────────────────────────────── */
.pda-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pda-chip {
  padding: 8px 16px; border: 2px solid var(--line); border-radius: 8px;
  background: var(--white); cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--navy); transition: all .15s; text-align: left;
}
.pda-chip:hover { border-color: var(--teal); background: var(--teal-l); }
.pda-chip.active { border-color: var(--teal); background: var(--teal); color: var(--white); }

.pda-chip-rich { display: flex; flex-direction: column; gap: 2px; }
.pda-chip-lbl  { font-size: 13px; font-weight: 700; }
.pda-chip-desc { font-size: 11px; font-weight: 400; opacity: .8; }

/* ── STEP FOOTER / BUTTONS ───────────────────────────────────────────── */
.pda-step-footer { margin-top: 28px; }
.pda-two-btn { display: flex; gap: 12px; }
.pda-btn-primary {
  display: inline-block; background: var(--teal); color: var(--white);
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15,113,115,.3);
}
.pda-btn-primary:hover { background: #0a5a5c; transform: translateY(-1px); }
.pda-btn-secondary {
  display: inline-block; background: var(--white); color: var(--muted);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 14px 20px; border-radius: 8px; border: 2px solid var(--line); cursor: pointer;
  transition: border-color .15s;
}
.pda-btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

/* ── RESULT BOX (step 2) ─────────────────────────────────────────────── */
.pda-result-box {
  background: var(--white); border: 2px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px;
}
.pda-result-voci { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pda-result-voce {
  font-size: 14px; color: var(--body); padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.pda-result-totali { display: grid; grid-template-columns: repeat(3, 1fr); }
.pda-result-col {
  padding: 20px 16px; text-align: center; border-right: 1px solid var(--line);
}
.pda-result-col:last-child { border-right: none; }
.pda-col-alba  { background: #F0FDF4; }
.pda-col-ita   { background: var(--bg); }
.pda-col-save  { background: var(--amber-bg); }
.pda-col-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pda-col-price { font-family: var(--serif); font-size: clamp(20px, 4vw, 28px); color: var(--navy); }
.pda-col-alba  .pda-col-price { color: var(--teal); }
.pda-col-ita   .pda-col-price { color: var(--muted); }
.pda-col-save  .pda-col-price { color: #CA8A04; }
.pda-save-price { font-weight: 700; }
.pda-save-pct { font-size: 14px; font-weight: 700; color: var(--green); }
.pda-result-disclaimer { font-size: 12px; color: var(--muted); padding: 12px 20px; margin: 0; border-top: 1px solid var(--line); background: var(--bg); font-style: italic; }

.pda-result-cta { text-align: center; }
.pda-result-cta-text { font-size: 15px; color: var(--body); margin-bottom: 16px; font-weight: 600; }

/* ── FORM STEP 3 ─────────────────────────────────────────────────────── */
.pda-form-fields { display: flex; flex-direction: column; gap: 18px; }
.pda-field { display: flex; flex-direction: column; gap: 6px; }
.pda-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.pda-input {
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 15px; color: var(--body);
  transition: border-color .15s; background: var(--white);
}
.pda-input:focus { outline: none; border-color: var(--teal); }
.pda-input::placeholder { color: #CBD5E1; }

.pda-consent { gap: 10px; }
.pda-label-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--body); cursor: pointer; line-height: 1.5;
}
.pda-label-check input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); width: 16px; height: 16px; }
.pda-label-check a { color: var(--teal); }

.pda-error { font-size: 12px; color: var(--red); font-weight: 600; }
.pda-err-global {
  margin-top: 16px; padding: 12px 16px; background: var(--red-bg);
  border-radius: 8px; font-size: 13px; color: var(--red);
}
.pda-err-global a { color: var(--red); }

/* ── THANK YOU ───────────────────────────────────────────────────────── */
.pda-thankyou { text-align: center; padding: 24px 0; }
.pda-ty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-bg); border: 3px solid var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--green); margin: 0 auto 16px;
}
.pda-ty-title { font-family: var(--serif); font-size: 28px; color: var(--navy); margin: 0 0 10px; }
.pda-ty-text  { font-size: 16px; color: var(--body); margin-bottom: 24px; }
.pda-ty-recap {
  background: var(--teal-l); border: 1.5px solid var(--teal-mid);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 28px; text-align: left;
}
.pda-ty-detail { font-size: 14px; color: var(--body); padding: 4px 0; }
.pda-ty-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-bottom: 28px; }
.pda-ty-step { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--body); }
.pda-ty-step-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.pda-ty-link { font-size: 14px; color: var(--teal); font-weight: 600; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pda-cards { grid-template-columns: 1fr; }
  .pda-result-totali { grid-template-columns: 1fr; }
  .pda-result-col { border-right: none; border-bottom: 1px solid var(--line); }
  .pda-two-btn { flex-direction: column-reverse; }
  .pda-btn-primary, .pda-btn-secondary { width: 100%; text-align: center; }
}
