/**
 * Professional Operator Registration Form Styles
 * Stili personalizzati per il form di registrazione
 */

/* Container principale dei campi professionali */
#professional_operator_fields {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

#professional_operator_fields h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Stili per i campi del form */
#professional_operator_fields .woocommerce-form-row {
    margin-bottom: 15px;
}

#professional_operator_fields label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

#professional_operator_fields .required {
    color: #d00;
    font-weight: bold;
}

#professional_operator_fields input[type="text"],
#professional_operator_fields input[type="email"],
#professional_operator_fields input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#professional_operator_fields input[type="text"]:focus,
#professional_operator_fields input[type="email"]:focus,
#professional_operator_fields input[type="tel"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* Stili per il selettore tipo di account */
#reg_user_type {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#reg_user_type:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

/* Placeholder styling */
#professional_operator_fields input::placeholder {
    color: #999;
    font-style: italic;
}

/* Clear fix per i campi affiancati */
.clear {
    clear: both;
}

/* Responsive: su mobile i campi sono full width */
@media (max-width: 768px) {
    #professional_operator_fields .form-row-first,
    #professional_operator_fields .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    #professional_operator_fields {
        padding: 15px;
    }
}

/* Stili per campi con errori */
#professional_operator_fields input.woocommerce-invalid {
    border-color: #d00;
}

#professional_operator_fields input.woocommerce-invalid:focus {
    box-shadow: 0 0 5px rgba(221, 0, 0, 0.2);
}

/* Animazione per la comparsa dei campi professionali */
#professional_operator_fields {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
