/* ============================================
   Address Form Validation Error Styles
   ============================================ */

/* --- Field-level error message --- */
.addr-field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    font-family: Vazirmatn-Light, sans-serif;
    padding: 4px 0 0 0;
    margin: 0;
    line-height: 1.4;
    animation: addrFadeSlideIn 0.25s ease-out;
}

/* --- Input with error state --- */
.form-control.addr-input-error {
    border-bottom-color: #dc3545 !important;
}

textarea.form-control.addr-input-error {
    border-bottom-color: #dc3545 !important;
}

/* --- General form-level error box --- */
.addr-form-error {
    background: #fff5f5;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    font-family: Vazirmatn-Light, sans-serif;
    color: #dc3545;
    text-align: right;
    line-height: 1.6;
    animation: addrFadeSlideIn 0.3s ease-out;
}

.addr-form-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.addr-form-error ul li {
    padding: 2px 0;
    position: relative;
    padding-right: 14px;
}

.addr-form-error ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #dc3545;
    border-radius: 50%;
}

/* --- Transition on inputs --- */
.inpot-box .form-control {
    transition: border-color 0.2s ease;
}

/* --- Animation --- */
@keyframes addrFadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive adjustments --- */
@media (max-width: 576px) {
    .addr-field-error {
        font-size: 11px;
    }

    .addr-form-error {
        font-size: 12px;
        padding: 8px 12px;
    }
}
