/* ==============================
 * 5. Lazy load images
 * ============================== */
.box-thumbnail {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    z-index: 0;
}

.box-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-thumbnail .placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.box-thumbnail .placeholder:has(> .show) {
    cursor: inherit !important;
    background: transparent !important;
    animation: none !important;
    opacity: 1 !important;
}

.lozad.fade {
    animation-name: fade;
    animation-duration: 2s;
}

.lozad {
    visibility: hidden;
}

.lozad.show {
    visibility: visible;
}

.custom-noti {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 320px;
    background: #FFFFFF;
    color: #1E1E1E;
    border-radius: 12px;
    border-left: 4px solid #D72229;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    z-index: 999;
    display: none;
    animation: notiSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1), notiFadeOut 0.4s ease 4.6s forwards;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-noti:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.btn-primary{
    font-weight: 500;
    background: #f79e21;
    background: linear-gradient(90deg, rgba(247, 158, 33, 1) 0, rgba(240, 106, 34, 1) 50%, rgba(232, 34, 36, 1) 100%);
    border-radius: 30px;
    border: 0;
    outline: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-popup .modal-body{
    position: relative;
    padding: 0;
}

.modal-popup .modal-content {
    background: none;
    border: none;
}

.modal-popup .btn-close{
    top: 5px;
    right: 5px;
    position: absolute;
    outline: none;
}

.has-error input,
.has-error text,
.has-error select,
.has-error .form-control,
.has-error .form-select{ border: 1px solid #FF0000 !important;}

@keyframes notiSlideIn {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes notiFadeOut {
    to { transform: translateX(-120%); opacity: 0; }
}

@media (max-width: 768px) {
    .custom-noti {
        bottom: 8.4rem;
        left: 12px;
        right: 12px;
        max-width: none;
        font-size: 13px;
        padding: 12px 16px;
    }
}