/* ═══════════════════════════════════════════════
   Donna Fugata Event Manager – Public CSS
   ═══════════════════════════════════════════════ */

:root {
  --dfe-primary:  #1e3a5f;
  --dfe-accent:   #3b82f6;
  --dfe-green:    #10b981;
  --dfe-yellow:   #f59e0b;
  --dfe-red:      #ef4444;
  --dfe-grey:     #64748b;
  --dfe-bg:       #f8fafc;
  --dfe-border:   #e2e8f0;
  --dfe-radius:   10px;
  --dfe-shadow:   0 2px 12px rgba(0,0,0,.08);
}

/* ── Wrap ────────────────────────────────────── */
.dfe-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  font-size: 15px;
  color: #1e293b;
}

/* ── Step ────────────────────────────────────── */
.dfe-step-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--dfe-border);
}
.dfe-step-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--dfe-primary);
  display: inline;
}
.dfe-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--dfe-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 10px;
  font-size: 14px;
}
.dfe-step-subtitle { color: var(--dfe-grey); margin: 8px 0 0; font-size: 14px; }

/* ── Campi ───────────────────────────────────── */
.dfe-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .dfe-field-row { grid-template-columns: 1fr; } }

.dfe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.dfe-field label { font-weight: 600; font-size: 14px; }
.dfe-field input,
.dfe-field select,
.dfe-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--dfe-border);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.dfe-field input:focus,
.dfe-field select:focus {
  border-color: var(--dfe-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.dfe-field-error { color: var(--dfe-red); font-size: 12px; min-height: 16px; }
.required { color: var(--dfe-red); }

/* ── Slot workshop ───────────────────────────── */
.dfe-slot-section { margin-bottom: 32px; }
.dfe-slot-title {
  background: var(--dfe-bg);
  border: 1px solid var(--dfe-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dfe-period-badge {
  margin-left: auto;
  background: var(--dfe-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

.dfe-workshops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .dfe-workshops-grid { grid-template-columns: 1fr; } }

.dfe-ws-card {
  border: 2px solid var(--dfe-border);
  border-radius: var(--dfe-radius);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  display: block;
}
.dfe-ws-card input[type="checkbox"] { display: none; }
.dfe-ws-card:hover { border-color: var(--dfe-accent); }
.dfe-ws-card.selected,
.dfe-ws-card:has(input:checked) {
  border-color: var(--dfe-accent);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.dfe-ws-card--full { opacity: .75; cursor: default; }
.dfe-ws-card--full:hover { border-color: var(--dfe-border); }

.dfe-ws-card__inner { padding: 16px; }
.dfe-ws-logo { height: 36px; object-fit: contain; margin-bottom: 10px; }
.dfe-ws-card__title { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--dfe-primary); }
.dfe-ws-speaker, .dfe-ws-company { font-size: 13px; margin: 3px 0; color: var(--dfe-grey); }
.dfe-ws-desc { font-size: 13px; color: #475569; margin-top: 8px; line-height: 1.5; }

.dfe-ws-card__meta { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.dfe-room-badge {
  font-size: 12px; padding: 3px 8px;
  border-radius: 20px; font-weight: 600;
}
.dfe-room-badge--grande  { background: #dbeafe; color: #1d4ed8; }
.dfe-room-badge--piccola { background: #d1fae5; color: #065f46; }

.dfe-avail-badge {
  font-size: 12px; padding: 3px 8px;
  border-radius: 20px; font-weight: 600;
}
.dfe-avail-badge--available  { background: #d1fae5; color: #065f46; }
.dfe-avail-badge--waitlist   { background: #fef3c7; color: #92400e; }
.dfe-avail-badge--cancelled  { background: #fee2e2; color: #991b1b; }

.dfe-slot-conflict-msg { font-size: 13px; margin-top: 6px; }

/* ── Stadio ──────────────────────────────────── */
.dfe-stadium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 600px) { .dfe-stadium-grid { grid-template-columns: 1fr 1fr; } }

.dfe-stadium-card {
  border: 2px solid var(--dfe-border);
  border-radius: var(--dfe-radius);
  cursor: pointer;
  transition: border-color .2s;
}
.dfe-stadium-card input { display: none; }
.dfe-stadium-card:has(input:checked) {
  border-color: var(--dfe-accent);
  background: #eff6ff;
}
.dfe-stadium-card--full { opacity: .65; cursor: default; }
.dfe-stadium-card__inner {
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.dfe-time { color: var(--dfe-grey); font-size: 12px; }

/* ── Riepilogo ───────────────────────────────── */
.dfe-summary {
  background: var(--dfe-bg);
  border: 1px solid var(--dfe-border);
  border-radius: var(--dfe-radius);
  padding: 20px;
}
.dfe-summary-row { padding: 8px 0; border-bottom: 1px solid var(--dfe-border); font-size: 14px; }
.dfe-summary-row:last-child { border: none; }
.dfe-summary-label { font-weight: 600; color: var(--dfe-grey); min-width: 140px; display: inline-block; }

/* ── Pulsanti step ───────────────────────────── */
.dfe-step-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--dfe-border);
}
.dfe-btn-next, .dfe-btn-submit {
  background: var(--dfe-primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.dfe-btn-next:hover, .dfe-btn-submit:hover { background: #2563eb; transform: translateY(-1px); }
.dfe-btn-prev {
  background: transparent;
  color: var(--dfe-grey);
  border: 1.5px solid var(--dfe-border);
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.dfe-btn-prev:hover { border-color: var(--dfe-grey); }

/* ── Success / Error ─────────────────────────── */
.dfe-success-panel {
  text-align: center;
  padding: 48px 24px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--dfe-radius);
}
.dfe-success-icon { font-size: 56px; margin-bottom: 12px; }
.dfe-error-panel {
  padding: 16px 20px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--dfe-radius);
  color: #991b1b;
}

/* ── Confirmation page ───────────────────────── */
.dfe-qr-card {
  max-width: 520px;
  margin: 32px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--dfe-shadow);
  padding: 32px;
  text-align: center;
}
.dfe-qr-image-wrap img {
  border: 3px solid var(--dfe-primary);
  border-radius: 10px;
  margin: 8px 0;
}
.dfe-qr-hint { font-size: 13px; color: var(--dfe-grey); }
.dfe-confirmation-section { text-align: left; margin-top: 20px; }
.dfe-conf-ws-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--dfe-border);
}
.dfe-conf-ws-dot { font-size: 18px; margin-top: 2px; }
.dfe-conf-ws-slot, .dfe-conf-ws-room { font-size: 12px; color: var(--dfe-grey); }
.dfe-waitlist-note { color: #92400e; font-size: 12px; }
.dfe-conf-footer { margin-top: 24px; }
.dfe-btn-qr {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background: var(--dfe-primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ── Chiuso ──────────────────────────────────── */
.dfe-closed { padding: 24px; background: var(--dfe-bg); border-radius: var(--dfe-radius); text-align: center; color: var(--dfe-grey); }
