/**
 * Estilos para campos de identificación en My Account
 */

/* Sección de identificación en My Account */
.doo-account-identification-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.doo-account-identification-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #005a87);
    border-radius: 8px 8px 0 0;
}

.doo-account-identification-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Campos de formulario en My Account */
.doo-account-identification-section .woocommerce-form-row {
    margin-bottom: 15px;
}

.doo-account-identification-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
    font-size: 14px;
}

.doo-account-identification-section input,
.doo-account-identification-section select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #23282d;
}

.doo-account-identification-section input:focus,
.doo-account-identification-section select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}

.doo-account-identification-section .description {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Validación en tiempo real */
.doo-account-identification-section input.error,
.doo-account-identification-section select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.doo-account-identification-section .validation-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

.doo-account-identification-section .validation-success {
    display: block;
    color: #1a7431;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
    .doo-account-identification-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .doo-account-identification-section input,
    .doo-account-identification-section select {
        padding: 8px 10px;
        font-size: 16px; /* Evita zoom en iOS */
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras para WooCommerce */
.woocommerce-account .doo-account-identification-section {
    margin: 20px 0;
}

.woocommerce-account .doo-account-identification-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Estilos específicos para el formulario de detalles de cuenta */
.woocommerce-account .woocommerce-form-row--doo_identification_section {
    margin-bottom: 30px;
}

.woocommerce-account .woocommerce-form-row--doo_identification_section h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Estilos específicos para el formulario nativo de WooCommerce */
.woocommerce-account .woocommerce-form-row--billing_nif,
.woocommerce-account .woocommerce-form-row--billing_id_type {
    margin-bottom: 20px;
}

.woocommerce-account .woocommerce-form-row--billing_nif label,
.woocommerce-account .woocommerce-form-row--billing_id_type label {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-account .woocommerce-form-row--billing_nif input,
.woocommerce-account .woocommerce-form-row--billing_id_type select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #23282d;
}

.woocommerce-account .woocommerce-form-row--billing_nif input:focus,
.woocommerce-account .woocommerce-form-row--billing_id_type select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
} 