/* Fix intl-tel-input layout */
.iti {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
}

/* =============================================
   Error message styling for ALL form fields
   ============================================= */

/* Native PrestaShop validation errors (.form-control-feedback) */
.form-group.has-danger .form-control-feedback {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #fdf2f2;
    border-left: 3px solid #e74c3c;
    color: #c0392b;
    font-size: 0.85rem;
    border-radius: 4px;
    clear: both;
}

.form-group.has-danger .form-control-feedback ul {
    margin: 0;
    padding: 0;
}

.form-group.has-danger .form-control-feedback li {
    list-style: none;
    font-weight: 600;
}

/* Module JS inline errors (.custom-inline-error) */
.custom-inline-error {
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    padding: 8px 12px !important;
    background-color: #fdf2f2 !important;
    border-left: 3px solid #e74c3c !important;
    color: #c0392b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    clear: both !important;
}

/* Ensure Select2 doesn't overlap */
.form-group.has-danger .select2-container {
    margin-bottom: 0;
}

/* --- Phone input placeholder visibility --- */
.iti input::placeholder {
    color: #b0b0b0 !important;
    opacity: 1 !important;
    font-weight: 400;
}
.iti input:-ms-input-placeholder { color: #b0b0b0 !important; }
.iti input::-ms-input-placeholder { color: #b0b0b0 !important; }
