/* ─────────────────────────────────────────────────────────────────────────────
   Amelia Booking — Modal custom iscrizione eventi
   Inserire in: /wp-content/themes/tuo-child-theme/style.css
   ───────────────────────────────────────────────────────────────────────────── */

#amelia-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

div#am-cf-14 {
    display: none !important;
}

#amelia-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 36px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#amelia-modal h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #000;
  line-height: 1.3;
}

#amelia-modal p {
  margin: 0 0 28px;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.5;
}

#amelia-modal-chiudi {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #000;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

#amelia-modal-chiudi:hover {
  color: #000;
}

/* ── Bottoni ── */
#amelia-btn-gruppo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amelia-btn-primario,
.amelia-btn-secondario {
  width: 100%;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.amelia-btn-primario {
    background: #e71583;
  color: #fff;
  border-color: transparent;
}

.amelia-btn-primario:hover, .amelia-btn-primario:focus {
  background:#e71583;
  border-color: transparent;
	color: #fff;
}

.amelia-btn-primario:disabled {
  background: #e7e7e7;
  border-color: #e7e7e7;
  cursor: not-allowed;
}

.amelia-btn-secondario {
  background: white;
  color: #e71583;
  border-color: #e71583;
}

.amelia-btn-secondario:hover, .amelia-btn-secondario:focus {
  background: #e71583;
	color:#fff;
	border-color: transparent;
}

.amelia-btn-secondario:disabled {
  color: #eee;
  border-color: #e7e7e7;
  cursor: not-allowed;
}

/* ── Step matricola ── */
#amelia-step-matricola h2 {
  margin-bottom: 20px;
}

#amelia-input-matricola {
  width: 100%;
  padding: 12px 16px;
  box-shadow: 0 0 0 1px #e7e7e7;
  border-radius: 6px!important;
  font-size: 1rem;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
}

#amelia-input-matricola:focus {
  border-color: #2c5282;
}

#amelia-errore {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

#amelia-errore a {
  color: #c53030;
  font-weight: 600;
}

#amelia-caricamento {
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-style: italic;
}

#amelia-btn-matricola-gruppo {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

#amelia-btn-matricola-gruppo .amelia-btn-secondario {
  flex: 0 0 auto;
  width: auto;
  padding: 14px 18px;
}

#amelia-btn-matricola-gruppo .amelia-btn-primario {
  flex: 1;
}

.amelia-posti-badge {margin-top:15px}

/* ── Mobile ── */
@media (max-width: 480px) {
  #amelia-modal {
    padding: 32px 24px 28px;
  }

  #amelia-btn-matricola-gruppo {
    flex-direction: column-reverse;
  }

  #amelia-btn-matricola-gruppo .amelia-btn-secondario {
    width: 100%;
  }
}
