/* ═══════════════════════════════════════════════
   PIZZA TOURNAMENT – Frontend CSS
   Font: Playfair Display + DM Sans
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --pt-orange:   #e8621a;
  --pt-gold:     #ffc324;
  --pt-dark:     #1a1a1a;
  --pt-cream:    #faf7f2;
  --pt-border:   #e6ddd0;
  --pt-success:  #16a34a;
  --pt-error:    #dc2626;
  --pt-radius:   14px;
  --pt-shadow:   0 8px 40px rgba(0,0,0,.10);
  --pt-font:     'DM Sans', sans-serif;
  --pt-serif:    'Playfair Display', Georgia, serif;
}

/* ── FORM WRAP ── */
.pt-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--pt-font);
  color: var(--pt-dark);
}

/* ── HERO ── */
.pt-form-hero {
  text-align: center;
  padding: 48px 20px 32px;
  background: linear-gradient(135deg, var(--pt-dark) 0%, #2d2d2d 100%);
  border-radius: var(--pt-radius) var(--pt-radius) 0 0;
  position: relative;
  overflow: hidden;
}
.pt-form-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,98,26,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,195,36,.2) 0%, transparent 40%);
}
.pt-form-hero-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.pt-form-title {
  font-family: var(--pt-serif);
  font-size: 32px;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}
.pt-form-subtitle {
  color: var(--pt-gold);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  letter-spacing: .4px;
  position: relative;
}

/* ── STEPS INDICATOR ── */
.pt-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 0;
  background: var(--pt-cream);
  border-left: 1px solid var(--pt-border);
  border-right: 1px solid var(--pt-border);
}
.pt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pt-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: #ddd;
  color: #999;
  transition: all .3s;
}
.pt-step.active .pt-step-num,
.pt-step.done .pt-step-num {
  background: var(--pt-orange);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(232,98,26,.2);
}
.pt-step-lbl {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
  white-space: nowrap;
  transition: color .3s;
}
.pt-step.active .pt-step-lbl { color: var(--pt-orange); }
.pt-step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin: 0 8px;
  margin-bottom: 18px;
  max-width: 80px;
  transition: background .3s;
}
.pt-step-line.done { background: var(--pt-orange); }

/* ── FORM STEPS ── */
.pt-form-step {
  background: var(--pt-cream);
  padding: 28px 32px 32px;
  border: 1px solid var(--pt-border);
  border-top: none;
  border-radius: 0 0 var(--pt-radius) var(--pt-radius);
}

/* ── FIELDS ── */
.pt-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 540px) {
  .pt-field-row { grid-template-columns: 1fr; }
  .pt-form-step { padding: 20px 18px 24px; }
}
.pt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pt-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  letter-spacing: .2px;
}
.pt-required { color: var(--pt-orange); }
.pt-field input {
  padding: 12px 15px;
  border: 1.5px solid #d8cfc4;
  border-radius: 10px;
  font-family: var(--pt-font);
  font-size: 15px;
  color: var(--pt-dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.pt-field input:focus {
  border-color: var(--pt-orange);
  box-shadow: 0 0 0 3px rgba(232,98,26,.12);
}
.pt-field input.error { border-color: var(--pt-error); }

/* ── BUTTONS ── */
.pt-btn-next,
.pt-btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--pt-orange), #d4501a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--pt-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(232,98,26,.35);
}
.pt-btn-next:hover, .pt-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(232,98,26,.45);
}
.pt-btn-next:active, .pt-btn-submit:active { transform: translateY(0); }

.pt-step-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.pt-step-nav .pt-btn-next { margin-top: 0; flex: 1; }
.pt-step-nav .pt-btn-submit { margin-top: 0; flex: 1; }
.pt-btn-back {
  padding: 14px 24px;
  background: transparent;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  font-family: var(--pt-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #666;
  transition: border-color .2s, color .2s;
}
.pt-btn-back:hover { border-color: #888; color: #333; }

/* ── PHOTO UPLOAD ── */
.pt-photo-section { display: flex; flex-direction: column; gap: 20px; }
.pt-photo-instructions {
  background: #fff;
  border: 1px solid var(--pt-border);
  border-radius: 10px;
  padding: 16px 20px;
}
.pt-photo-instructions h3 { font-size: 16px; margin: 0 0 8px; }
.pt-photo-instructions p { font-size: 13px; color: #555; margin: 0 0 8px; }
.pt-photo-instructions ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pt-photo-instructions li { font-size: 13px; color: #444; }

.pt-photo-upload-area {
  position: relative;
  border: 2px dashed #c8b89a;
  border-radius: var(--pt-radius);
  background: #fff;
  transition: border-color .2s, background .2s;
  overflow: hidden;
  min-height: 160px;
}
.pt-photo-upload-area.drag-over {
  border-color: var(--pt-orange);
  background: rgba(232,98,26,.04);
}
.pt-photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.pt-photo-drop-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  pointer-events: none;
}
.pt-photo-icon { font-size: 40px; margin-bottom: 10px; }
.pt-photo-drop-ui p { margin: 4px 0; font-size: 14px; }
.pt-photo-hint { color: #888; font-size: 13px !important; }
.pt-photo-formats { color: #aaa; font-size: 11px !important; }

.pt-photo-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pt-photo-preview img {
  max-height: 200px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--pt-shadow);
  object-fit: cover;
}
#pt-remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* ── RIEPILOGO ── */
.pt-summary-title { font-size: 18px; margin: 0 0 20px; }
.pt-summary-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--pt-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
@media (max-width: 480px) { .pt-summary-grid { grid-template-columns: 1fr; } }
.pt-summary-photo-wrap { display: flex; align-items: flex-start; justify-content: center; }
.pt-summary-photo {
  width: 100px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 2px solid var(--pt-border);
}
.pt-summary-data { display: flex; flex-direction: column; gap: 10px; }
.pt-summary-row { display: flex; flex-direction: column; gap: 2px; }
.pt-summary-key { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.pt-summary-val { font-size: 14px; color: var(--pt-dark); font-weight: 500; }

.pt-privacy-check {
  background: #fff7ed;
  border: 1px solid #fde8cc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 4px;
}
.pt-privacy-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
}
.pt-privacy-check a { color: var(--pt-orange); }

/* ── MESSAGES ── */
.pt-form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.pt-form-message.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.pt-form-message.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── SUCCESS PANEL ── */
.pt-success-panel {
  text-align: center;
  padding: 56px 32px;
  background: var(--pt-cream);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
}
.pt-success-icon { font-size: 64px; margin-bottom: 16px; }
.pt-success-panel h2 {
  font-family: var(--pt-serif);
  font-size: 28px;
  margin: 0 0 10px;
}
.pt-success-reg-number {
  display: inline-flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--pt-gold);
  border-radius: 12px;
  padding: 14px 28px;
  margin: 16px 0;
  gap: 4px;
}
.pt-success-reg-number span { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.pt-success-reg-number strong { font-size: 22px; font-family: 'Courier New', monospace; color: var(--pt-dark); }
.pt-btn-card {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: var(--pt-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s;
}
.pt-btn-card:hover { background: #333; color: #fff; }

/* ══════════════════════════════════════════════
   PARTICIPANT DIGITAL CARD
══════════════════════════════════════════════ */
.pt-participant-card {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--pt-font);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--pt-shadow);
  border: 1px solid var(--pt-border);
}
.pt-card-error {
  text-align: center;
  padding: 40px;
  color: var(--pt-error);
  font-size: 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
}

/* Card header */
.pt-card-header {
  background: linear-gradient(135deg, var(--pt-dark) 0%, #333 100%);
  padding: 24px 32px;
  position: relative;
  overflow: hidden;
}
.pt-card-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,195,36,.15) 0%, transparent 70%);
  pointer-events: none;
}
.pt-card-tournament-name {
  font-family: var(--pt-serif);
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}
.pt-card-meta {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 5px;
}

/* Card body */
.pt-card-body {
  display: grid;
  grid-template-columns: 160px 1fr 130px;
  background: var(--pt-cream);
  padding: 0;
}
@media (max-width: 600px) {
  .pt-card-body { grid-template-columns: 1fr; }
}

/* Photo */
.pt-card-photo-wrap {
  position: relative;
  background: #e8e0d4;
}
.pt-card-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.pt-card-photo-placeholder {
  width: 160px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: #e8e0d4;
}
@media (max-width: 600px) {
  .pt-card-photo, .pt-card-photo-placeholder { width: 100%; height: 220px; }
}
.pt-card-status {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--status-color, #16a34a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  letter-spacing: .3px;
}

/* Info */
.pt-card-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.pt-card-name {
  font-family: var(--pt-serif);
  font-size: 24px;
  color: var(--pt-dark);
  margin: 0 0 8px;
  line-height: 1.2;
}
.pt-card-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}
.pt-card-icon { font-size: 16px; flex-shrink: 0; }
.pt-card-reg { background: #fff; padding: 6px 12px; border-radius: 8px; border: 1px dashed #c8b89a; }
.pt-card-reg strong { color: var(--pt-dark); font-family: 'Courier New', monospace; }

/* QR */
.pt-card-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: #fff;
  border-left: 1px dashed #ddd;
}
@media (max-width: 600px) { .pt-card-qr { border-left: none; border-top: 1px dashed #ddd; } }
.pt-card-qr-inner { text-align: center; }
.pt-card-qr-img {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 6px;
}
.pt-card-qr-label { font-size: 10px; color: #888; line-height: 1.4; }

/* Card footer */
.pt-card-footer {
  background: #fff;
  border-top: 1px solid var(--pt-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.pt-card-footer span { font-size: 12px; color: #888; }
.pt-share-btn {
  padding: 8px 18px;
  background: var(--pt-dark);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--pt-font);
  transition: background .2s;
}
.pt-share-btn:hover { background: #333; }

/* ════════════════════════════════════════════════
   STEP HEADING
════════════════════════════════════════════════ */
.pt-step-heading {
  margin-bottom: 24px;
}
.pt-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: var(--pt-orange);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.pt-step-heading h3 {
  font-family: var(--pt-serif);
  font-size: 22px;
  color: var(--pt-dark);
  margin: 0 0 4px;
}
.pt-step-heading p {
  font-size: 14px;
  color: #78716c;
  margin: 0;
}

/* ════════════════════════════════════════════════
   FIELD HINT (sotto label)
════════════════════════════════════════════════ */
.pt-field-hint {
  display: block;
  font-size: 11px;
  color: #a8a29e;
  font-weight: 400;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════
   WHATSAPP INFO BOX (step 1)
════════════════════════════════════════════════ */
.pt-wa-info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--pt-radius);
  padding: 16px;
  margin: 20px 0;
}
.pt-wa-info-icon { font-size: 24px; flex-shrink: 0; }
.pt-wa-info-text strong { display: block; font-size: 13px; color: #14532d; margin-bottom: 4px; }
.pt-wa-info-text p { font-size: 13px; color: #15803d; margin: 0; line-height: 1.5; }

/* ════════════════════════════════════════════════
   PHOTO RULES (step 2)
════════════════════════════════════════════════ */
.pt-photo-rules { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.pt-photo-rule { font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.pt-photo-rule.ok { background: #f0fdf4; color: #15803d; }
.pt-photo-rule.no { background: #fef2f2; color: #b91c1c; }

/* ════════════════════════════════════════════════
   PAYMENT OPTIONS (step 3)
════════════════════════════════════════════════ */
.pt-payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.pt-payment-option { cursor: pointer; display: block; }
.pt-payment-option input[type="radio"] { display: none; }

.pt-payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius);
  background: #fff;
  transition: border-color .2s, background .2s;
}
.pt-payment-option:hover .pt-payment-card,
.pt-payment-option.selected .pt-payment-card {
  border-color: var(--pt-orange);
  background: #fff7f0;
}
.pt-payment-card-left { display: flex; align-items: center; gap: 14px; }
.pt-payment-icon { font-size: 28px; }
.pt-payment-details { display: flex; flex-direction: column; }
.pt-payment-details strong { font-size: 15px; color: var(--pt-dark); }
.pt-payment-details span { font-size: 13px; color: #78716c; margin-top: 2px; }

.pt-payment-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .4px;
}
.pt-payment-badge.online { background: #dbeafe; color: #1d4ed8; }
.pt-payment-badge.free   { background: #dcfce7; color: #15803d; }

/* Stripe element */
.pt-stripe-form {
  background: #fafaf9;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 18px;
  margin-bottom: 20px;
}
.pt-stripe-info {
  font-size: 11px;
  color: #78716c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pt-stripe-element {
  padding: 12px;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s;
}
.pt-stripe-element.StripeElement--focus { border-color: var(--pt-orange); }
.pt-stripe-error { color: var(--pt-error); font-size: 12px; margin-top: 6px; min-height: 16px; }

/* Kit info box */
.pt-kit-info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--pt-radius);
  padding: 16px;
  margin-top: 16px;
}
.pt-kit-icon { font-size: 24px; flex-shrink: 0; }
.pt-kit-details strong { display: block; font-size: 13px; color: #7c2d12; margin-bottom: 6px; }
.pt-kit-details ul { margin: 0; padding: 0 0 0 4px; list-style: none; }
.pt-kit-details ul li { font-size: 13px; color: #9a3412; padding: 2px 0; }

/* ════════════════════════════════════════════════
   SUMMARY — payment row badges
════════════════════════════════════════════════ */
.pt-summary-val.badge-online {
  background: #dbeafe; color: #1d4ed8;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.pt-summary-val.badge-insedesel {
  background: #fff7ed; color: #c2410c;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}

/* ════════════════════════════════════════════════
   CHECKBOX LABEL
════════════════════════════════════════════════ */
.pt-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #44403c;
  line-height: 1.5;
}
.pt-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--pt-orange);
}

/* ════════════════════════════════════════════════
   SUCCESS PANEL — nuovi elementi
════════════════════════════════════════════════ */
.pt-success-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 20px;
}
.pt-success-payment-badge.paid    { background: #dcfce7; color: #15803d; }
.pt-success-payment-badge.in-sede { background: #fff7ed; color: #c2410c; }

/* WhatsApp CTA box */
.pt-wa-cta-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--pt-radius);
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}
.pt-wa-cta-icon { font-size: 32px; flex-shrink: 0; }
.pt-wa-cta-content { flex: 1; }
.pt-wa-cta-content h3 { font-family: var(--pt-serif); font-size: 18px; color: #14532d; margin: 0 0 6px; }
.pt-wa-cta-content > p { font-size: 13px; color: #15803d; margin: 0 0 16px; line-height: 1.5; }

.pt-wa-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.pt-wa-step  { display: flex; align-items: flex-start; gap: 10px; }
.pt-wa-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #16a34a; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pt-wa-step-text { font-size: 13px; color: #166534; line-height: 1.4; }

.pt-wa-message-box {
  background: #fff;
  border: 1px dashed #86efac;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.pt-wa-message-text {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-line;
}
.pt-wa-copy-btn {
  background: transparent;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--pt-font);
  color: #15803d;
  cursor: pointer;
  transition: background .15s;
}
.pt-wa-copy-btn:hover { background: #dcfce7; }

.pt-wa-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  margin-bottom: 12px;
}
.pt-wa-open-btn:hover { background: #15803d; color: #fff; }

.pt-wa-cta-note {
  font-size: 12px;
  color: #4ade80;
  margin: 0;
}

/* Hero meta */
.pt-form-hero-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pt-form-hero-meta span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

/* Fee amount highlight */
.pt-fee-amount { color: var(--pt-orange); }

/* ════════════════════════════════════════════════
   PAYMENT INLINE (step 1)
════════════════════════════════════════════════ */
.pt-payment-inline {
  background: #fafaf9;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 16px 18px;
  margin: 20px 0;
}
.pt-payment-inline-label {
  font-size: 13px;
  color: var(--pt-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}
.pt-payment-inline-opts {
  display: flex;
  gap: 10px;
}
.pt-pay-opt { cursor: pointer; flex: 1; display: block; }
.pt-pay-opt input[type="radio"] { display: none; }
.pt-pay-opt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius);
  background: #fff;
  transition: border-color .18s, background .18s;
}
.pt-pay-opt.selected .pt-pay-opt-card,
.pt-pay-opt:hover    .pt-pay-opt-card {
  border-color: var(--pt-orange);
  background: #fff7f0;
}
.pt-pay-opt-icon { font-size: 22px; flex-shrink: 0; }
.pt-pay-opt-text { display: flex; flex-direction: column; }
.pt-pay-opt-text strong { font-size: 13px; color: var(--pt-dark); }
.pt-pay-opt-text small  { font-size: 11px; color: #78716c; margin-top: 1px; }

/* ════════════════════════════════════════════════
   WA PREVIEW HINT (step 1)
════════════════════════════════════════════════ */
.pt-wa-preview-hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--pt-radius);
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}
.pt-wa-preview-icon { font-size: 22px; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   SUMMARY – photo ok badge
════════════════════════════════════════════════ */
.pt-summary-photo-ok {
  text-align: center;
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 6px;
}
.pt-btn-go-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: var(--pt-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.pt-btn-go-wa:hover {
  background: #15803d;
  transform: translateY(-1px);
}
.pt-btn-go-wa .pt-btn-arrow { font-size: 18px; }

/* ════════════════════════════════════════════════
   WHATSAPP GATEWAY PANEL
════════════════════════════════════════════════ */
.pt-wa-gateway {
  animation: ptFadeIn .3s ease;
}
@keyframes ptFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.pt-wa-gateway-header {
  text-align: center;
  margin-bottom: 24px;
}
.pt-wa-gateway-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.pt-wa-gateway-title {
  font-family: var(--pt-serif);
  font-size: 26px;
  color: var(--pt-dark);
  margin: 0 0 8px;
}
.pt-wa-gateway-sub {
  font-size: 14px;
  color: #57534e;
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
  margin-inline: auto;
}

/* Messaggio preview */
.pt-wa-msg-preview {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--pt-radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.pt-wa-msg-preview-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #15803d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pt-wa-msg-bubble {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 12px 12px 12px 0;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--pt-dark);
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.pt-wa-copy-small {
  background: transparent;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 5px 14px;
  font-family: var(--pt-font);
  font-size: 12px;
  color: #15803d;
  cursor: pointer;
  transition: background .15s;
}
.pt-wa-copy-small:hover { background: #dcfce7; }

/* CTA principale */
.pt-wa-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: #25D366;
  color: #fff;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  letter-spacing: .2px;
}
.pt-wa-main-btn:hover {
  background: #20b558;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}
.pt-wa-main-btn:active {
  transform: translateY(0);
}

/* Numero visibile */
.pt-wa-number-display {
  text-align: center;
  font-size: 13px;
  color: #78716c;
  margin-bottom: 24px;
}

/* Cosa succede dopo */
.pt-wa-what-next {
  background: #fafaf9;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.pt-wa-what-next-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #78716c;
  margin-bottom: 14px;
}
.pt-wa-what-next-steps { display: flex; flex-direction: column; gap: 12px; }
.pt-wa-wn-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #44403c;
  line-height: 1.5;
}
.pt-wa-wn-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pt-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Link torna indietro */
.pt-wa-back-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #a8a29e;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--pt-font);
  padding: 6px;
  transition: color .15s;
}
.pt-wa-back-link:hover { color: var(--pt-dark); }

/* ════════════════════════════════════════════════
   WA GATEWAY – aggiornamenti v1.3
════════════════════════════════════════════════ */

/* Bottone disabilitato (numero non configurato) */
.pt-wa-main-btn--disabled {
  background: #9CA3AF !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: .7;
}
.pt-wa-main-btn--disabled:hover {
  transform: none !important;
}

/* Debug box (visibile solo con ?pt_debug=1) */
.pt-wa-debug-msg {
  margin-top: 24px;
  background: #1e1b4b;
  border-radius: 10px;
  padding: 16px;
}
.pt-wa-debug-label {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.pt-wa-debug-pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #e0e7ff;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  line-height: 1.7;
}

/* Testo sottobottone più pulito */
.pt-wa-number-display {
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  margin-top: 10px;
  margin-bottom: 20px;
}
.pt-wa-number-display strong { color: #1C1917; }

/* ════════════════════════════════════════════════
   CARD – PREMI
════════════════════════════════════════════════ */
.pt-card-prizes {
  border-top: 1px solid var(--pt-border);
  padding: 20px 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
}
.pt-card-prizes-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
  letter-spacing: .2px;
}
.pt-card-prizes-list { display: flex; flex-direction: column; gap: 12px; }
.pt-card-prize-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
}
.pt-card-prize-medal { font-size: 24px; flex-shrink: 0; line-height: 1; }
.pt-card-prize-info  { flex: 1; min-width: 0; }
.pt-card-prize-name  { font-weight: 700; font-size: 14px; color: var(--pt-dark); }
.pt-card-prize-cat   { font-size: 11px; color: var(--pt-orange); font-weight: 600; margin-top: 2px; }
.pt-card-prize-event { font-size: 11px; color: #78716c; margin-top: 2px; }
.pt-card-prize-amount {
  font-weight: 700;
  font-size: 15px;
  color: #15803d;
  flex-shrink: 0;
  white-space: nowrap;
}
.pt-card-prize-trophy {
  font-size: 11px;
  color: #78716c;
  flex-shrink: 0;
  align-self: center;
}

/* ════════════════════════════════════════════════
   CARD – STATUS CLASSES
════════════════════════════════════════════════ */
.pt-card-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.pt-status-confirmed { background:#dcfce7; color:#15803d; }
.pt-status-pending   { background:#fef9c3; color:#854d0e; }
.pt-status-cancelled { background:#fee2e2; color:#991b1b; }

/* ════════════════════════════════════════════════
   CARD – LOGOUT BUTTON
════════════════════════════════════════════════ */
.pt-logout-btn {
  float: right;
  padding: 4px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-family: var(--pt-font);
  cursor: pointer;
  transition: background .15s;
}
.pt-logout-btn:hover { background: rgba(255,255,255,.2); color:#fff; }

/* Payment badge in card */
.pt-card-payment-badge { color: #92400e; }
