/* Form di iscrizione Danzamania 2026
   Coerente con danzamania.info: sfondo ciano->verde,
   card bianca rounded-lg + ombra, titoli gray-800, chip bianchi,
   primary-btn blu. Corpo in Montserrat (il sito usa sans di sistema).
   Mobile-friendly e accessibile: testo leggibile, target touch >= 44px. */

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;   /* gray-800 */
  background-color: #08AEEA;
  background-image: linear-gradient(0deg, #08AEEA 0%, #2AF598 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.page-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 12px 56px;
}

.card {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.reg {
  padding: 30px 24px 24px;
}

.reg__head {
  text-align: center;
  padding: 32px 24px 0;
}

.reg__title {
  margin: 0;
  color: #111827;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .reg__title { font-size: 38px; }
}

.reg__sub {
  margin: 10px auto 24px;
  max-width: 560px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}

/* Banner in cima: per chi è già iscritto (non perdere tempo a compilare) */
.reg__banner {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.reg__banner a {
  color: #d97706;
  font-weight: 700;
  text-decoration: underline;
}

/* Sezioni */
.reg__sec { margin: 0 0 30px; }

.reg__h2 {
  margin: 0 0 14px;
  color: #111827;
  font-weight: 800;
  font-size: 20px;
}

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

.reg__field {
  display: block;
  margin-bottom: 14px;
}
.reg__grid .reg__field { margin-bottom: 0; }

.reg__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.reg__input,
select.reg__input {
  width: 100%;
  height: 50px;
  line-height: 1.2;
  padding: 12px 14px;
  border: 1.5px solid #9ca3af;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.reg__input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.reg__input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.reg__input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #ef4444;
}

.reg__hint {
  font-size: 15px;
  color: #4b5563;
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Opzioni corso (scelta multipla) */
.reg__opts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .reg__opts { grid-template-columns: 1fr 1fr; }
}
.reg__opt-group {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}
.reg__opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2937;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.reg__opt:hover { border-color: #9ca3af; }
.reg__opt:has(input:checked) {
  border-color: #08AEEA;
  background: #ecfeff;
}
.reg__opt input {
  margin: 2px 0 0;
  accent-color: #2563eb;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

/* Consensi, come i details FAQ: grigi, rounded-lg. Target >= 44px */
.reg__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2937;
  cursor: pointer;
}
.reg__consent input {
  margin: 3px 0 0;
  accent-color: #08AEEA;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.reg__consent a { color: #1d4ed8; text-decoration: underline; }
.reg__consent--required {
  background: #f0fdf4;
  border-color: #86efac;
}

.reg__note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  margin: 14px 0 0;
}

/* CTA, come primary-btn del sito */
.reg__submit {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 16px 18px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.reg__submit:hover { background: #1d4ed8; }
.reg__submit:active { transform: scale(.99); }
.reg__submit:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}