/* ===========================
   REGISTRATI — Form tecnico
   =========================== */

.form-panel .panel-section {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Fieldset: contenitori logici */
.panel-section fieldset {
  border: 1px solid rgba(125, 231, 255, 0.22);
  border-radius: 1.1rem;
  padding: 1.6rem;
  background: linear-gradient(
    160deg,
    rgba(4, 14, 22, 0.72),
    rgba(2, 8, 14, 0.72)
  );
  display: grid;
  gap: 1.1rem;
}

/* Legend = intestazione semantica */
.panel-section legend {
  font-size: 1.05rem;
  color: #66fcf1;
  padding: 0 0.6rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Label */
.panel-section label {
  font-size: 0.95rem;
  color: #d6f3ff;
  display: block;
}

/* Input base */
.panel-section input[type="text"],
.panel-section input[type="email"],
.panel-section input[type="url"],
.panel-section input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(125, 231, 255, 0.28);
  background: rgba(0, 0, 0, 0.48);
  color: #f5fcff;
  -webkit-text-fill-color: #f5fcff;
  caret-color: #f5fcff;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.panel-section input[type="password"]:-webkit-autofill,
.panel-section input[type="password"]:-webkit-autofill:hover,
.panel-section input[type="password"]:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5fcff;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6) inset;
  caret-color: #f5fcff;
}

/* Focus: chiaro, non teatrale */
.panel-section input:focus-visible {
  border-color: #66fcf1;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(157, 239, 255, 0.22);
  outline: none;
}

/* Checkbox inline */
.panel-section .checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #d6f3ff;
}

.panel-section .checkbox-inline input {
  width: auto;
  accent-color: #66fcf1;
}

/* Bottone disabilitato */
.panel-section button.cta-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.4);
}

/* Feedback errori (se presente lato PHP/JS) */
.panel-section .form-error {
  color: #ffb4b4;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .panel-section fieldset {
    padding: 1.2rem;
  }

  .panel-section label {
    font-size: 0.9rem;
  }

  .panel-section input {
    font-size: 0.95rem;
  }
}
