/**
 * Evento — Frontend form styles
 * Customize appearance by editing this file.
 */

#iscrizioni {
  scroll-margin-top: 100px;
}

.od-form-wrap,
.od-form-wrap * {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.od-form {
  max-width: 900px;
}

.od-grid {
  display: grid;
  gap: 20px;
}

.od-form .od-field {
  margin-bottom: 0;
}

.od-grid--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .od-grid--2 {
    grid-template-columns: 1fr;
  }
}

.od-label,
.od-label--question,
.od-section-title,
.od-info-title {
  font-family: "Lets Play", Sans-serif !important;
}

.od-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111;
}

.od-label--question {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: #111;
}

.od-field--full {
  grid-column: 1 / -1;
}

.od-field input:not([type="checkbox"]):not([type="radio"]),
.od-field select,
.od-field textarea {
  width: 100%;
  background: #eef2f7 !important;
  border: 1px solid transparent !important;
  padding: 14px 20px;
  border-radius: 22px;
  font-size: 14px;
  color: #111;
  line-height: 1.45;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.od-field textarea {
  min-height: 110px;
  resize: vertical;
  border-radius: 18px;
  font-family: inherit;
}

.od-hp {
  display: none !important;
}

.od-field input:not([type="checkbox"]):not([type="radio"]):focus,
.od-field select:focus,
.od-field textarea:focus {
  border-color: #c5d4e8 !important;
  outline: none;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.od-custom-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 22px 0 8px;
}

.od-custom-field {
  margin-bottom: 0;
}

.od-info-title {
  font-size: 25px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.45;
}

.od-info-text {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.od-info-text p {
  margin: 0 0 0.75em;
}

.od-info-text p:last-child {
  margin-bottom: 0;
}

.od-info-text a {
  color: #1e40af;
}

.od-info-text ul,
.od-info-text ol {
  margin: 0.4em 0 0.75em;
  padding-left: 1.25em;
}

.od-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.od-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
  cursor: pointer;
}

.od-choice input[type="checkbox"],
.od-choice input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #AFA583;
}

.od-choice--single {
  margin-top: 4px;
  font-size: 15px;
}

.od-section-title {
  margin: 28px 0 14px;
  font-size: 25px !important;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.01em;
}

.od-section-title--for-select {
  display: block;
}

.od-section-title--inline {
  margin: 0;
}

.od-children-section {
  background: #FFF;
  padding: 16px;
  margin: 8px 0 18px;
}

.od-children-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.od-children-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.od-child-block {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.od-child-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.od-child-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.od-child-block__title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.od-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
}

.od-privacy input {
  margin-top: 4px;
}

.od-privacy--marketing {
  margin-top: 0;
}

.od-required {
  color: #dc2626;
  font-weight: 700;
}

.od-field input.od-input--invalid {
  border-color: #dc2626;
  background: #fef2f2;
}

#od-child-age-alert {
  margin-top: 12px;
}

.od-cancel-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  max-width: 640px;
}

.od-cancel-box__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.od-cancel-box__intro {
  margin: 0 0 16px;
  line-height: 1.6;
  color: #374151;
}

.od-cancel-box__details {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #374151;
  line-height: 1.6;
}

.od-btn--danger {
  background-color: #dc2626 !important;
  color: #fff !important;
  border: none !important;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.od-btn--danger:hover,
.od-btn--danger:focus {
  background-color: #b91c1c !important;
  color: #fff !important;
}

/* Reset aggressivo per bottoni — sovrascrive stili del tema WordPress */
.od-form-wrap button.od-btn,
.od-form-wrap input.od-btn,
.od-form-wrap .od-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  margin: 0;
  border: none !important;
  border-radius: 6px;
  box-shadow: none !important;
  outline: none;
  background-image: none !important;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.od-form-wrap button.od-btn:focus,
.od-form-wrap button.od-btn:focus-visible,
.od-form-wrap .od-btn:focus,
.od-form-wrap .od-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* CTA buttons — customize .od-btn--primary and .od-btn--visit */
.od-form-wrap .od-cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.od-form-wrap .od-cta-row > .od-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: auto !important;
}

.od-btn--primary {
  background-color: #AFA583 !important;
  color: #fff !important;
  border-radius: 30px !important;
}

.od-btn--primary:hover,
.od-btn--primary:focus {
  background-color: #E5B693 !important;
  color: #fff !important;
}

.od-btn--visit {
  background-color: #fafafa !important;
  color: #DD5A56 !important;
  font-size: 13px !important;
  border-radius: 30px !important;
}

.od-btn--visit:hover,
.od-btn--visit:focus {
  background-color: #f3f4f6 !important;
  color: #d4a898 !important;
}

.od-btn--add-child {
  min-height: 40px;
  padding: 8px 14px;
  background-color: #AFA583 !important;
  color: #FFF !important;
  border: 1px solid #bfdbfe !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  border-radius: 30px !important;
}

.od-btn--add-child:hover:not(:disabled),
.od-btn--add-child:focus:not(:disabled) {
  background-color: #E5B693 !important;
  color: #FFF !important;
  border-radius: 30px !important;
}

.od-btn--remove-child {
  min-height: 32px;
  padding: 6px 12px;
  background-color: transparent !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  font-size: 12px !important;
  border-radius: 30px !important;
}

.od-btn--remove-child:hover,
.od-btn--remove-child:focus {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
}

.od-btn--full {
  flex: 1 1 100%;
  width: 100%;
}

.od-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .od-form-wrap .od-cta-row {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .od-form-wrap .od-cta-row > .od-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .od-children-section__header {
    flex-direction: column;
    align-items: stretch;
  }
}

.od-visit-intro {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.6;
  color: #374151;
}

.od-back-row {
  margin: 0 0 14px;
}

.od-back-link {
  display: inline-block;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  min-height: auto;
}

.od-back-link:hover,
.od-back-link:focus {
  color: #1d4ed8;
}

.od-thankyou {
  background: #059669;
  color: #fff;
  padding: 18px;
  border-radius: 10px;
  margin: 0 0 18px;
}

.od-thankyou__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.od-thankyou__text {
  font-size: 14px;
  line-height: 1.6;
}

.od-alert {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.od-alert--error {
  margin-bottom: 18px;
}

.od-empty {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
