/* Container */
.malavoroutenti-register-container-regform {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}
.malavoroutenti-register-wrapper-regform {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Verdana', sans-serif;
    box-sizing: border-box;
}
.malavoroutenti-register-wrapper-regform h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2271b1;
    font-size: 24px;
}

/* Form Steps */
.step-regform {
    display: none;
}
.step-regform.step-active-regform {
    display: block;
}

/* Progress Bar */
.progress-container-regform {
    margin-bottom: 25px;
}
.progress-steps-numbers-regform {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.step-number-regform {
    text-align: center;
    flex: 1;
}
.step-circle-regform {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #cbdafc;
    color: #2271b1;
    line-height: 30px;
    font-weight: bold;
    margin: auto;
}
.step-number-regform.active-regform .step-circle-regform {
    background: #2271b1;
    color: #fff;
}
.step-label-regform {
    font-size: 11px;
    margin-top: 5px;
}

/* Form Fields */
.form-group-regform {
    margin-bottom: 20px;
}
.form-group-regform label {
    display: block;
    margin-bottom: 6px;
    margin-top: 8px;
    color: #555;
}
.form-group-regform input,
.form-group-regform select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Password */
.password-wrapper-regform {
    position: relative;
    border-radius: 25px;
    border: 1px solid #ccc;
    background: white;
    box-sizing: border-box;
    margin-bottom: 10px; /* uniforma lo spacing */
}

.password-wrapper-regform input {
    border: none;
    border-radius: 25px;
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: transparent;
    height: 45px;
    margin: 0;
}

.toggle-password-regform {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #888;
}

/* Password Strength */
.password-strength-bar-regform {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}
#password-strength-fill-regform {
    height: 100%;
    width: 0%;
    background-color: red;
    transition: width 0.3s ease, background-color 0.3s ease;
}
#password-strength-label-regform {
    margin-top: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Riepilogo */
.summary-regform p {
    margin: 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

/* Bottoni */
.form-actions-regform {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
.button-prev-regform,
.button-next-regform,
.button-submit-regform {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.button-prev-regform {
    background: #ccc;
}
.button-next-regform,
.button-submit-regform {
    background: #2271b1;
    color: white;
    border-radius: 25px;
}
.button-next-regform:hover,
.button-submit-regform:hover {
    background: #2271b1;
    border-radius: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps-numbers-regform {
        font-size: 12px;
    }
    .step-circle-regform {
        width: 26px;
        height: 26px;
        line-height: 26px;
    }
}
.password-checklist-regform {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}
.password-checklist-regform li {
  padding-left: 24px;
  margin-bottom: 6px;
  position: relative;
}
.password-checklist-regform li::before {
  content: '❌';
  position: absolute;
  left: 0;
  color: #d9534f;
}
.password-checklist-regform li.valid-regform::before {
  content: '✅';
  color: #28a745;
  font-size: 13px;
}
.password-checklist-regform li.invalid-regform {
  color: #d9534f;
  font-size: 13px;
}
.password-checklist-regform li.valid-regform {
  color: #28a745;
  font-size: 13px;
}
.error-message-regform {
  background-color: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a94442;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
}

/* Messaggio errore principale sopra la progress bar */
.main-error-message-regform {
    background-color: #ffe5e5;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

/* Messaggi sotto il campo email */
.error-msg-regform {
    margin-top: 8px;
    color: red;
    font-size: 14px;
}
.success-msg-regform {
    margin-top: 8px;
    color: green;
    font-size: 14px;
}

.button-regform {
    background: #2271b1;
    border-radius: 25px;
    color: white;
    border: none;
}
/* Uniforma larghezza bottoni step 4 */
.form-actions-regform .button-regform,
.form-actions-regform .button-prev-regform {
    flex: 1;
}
.radio-group-regform {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.radio-group-regform label {
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  gap: 8px;
  color: #333;
}
.radio-group-regform input[type="radio"] {
  accent-color: #0073aa;
  width: 18px;
  height: 18px;
}
@media (max-width: 480px) {
  .radio-group-regform {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
