@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2');
}

#saleh-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#saleh-popup-overlay.saleh-popup-visible {
    opacity: 1;
    visibility: visible;
}

#saleh-appointment-popup {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    direction: rtl;
    font-family: 'Vazir', sans-serif;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#saleh-popup-overlay.saleh-popup-visible #saleh-appointment-popup {
    transform: translateY(0);
}

#saleh-close-popup {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#saleh-close-popup:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.saleh-popup-icon {
    width: 70px;
    height: 70px;
    background: #004a99;
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.saleh-popup-icon svg {
    width: 35px;
    height: 35px;
}

#saleh-appointment-popup h2 {
    color: #001a33;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

#saleh-appointment-popup p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

#saleh-phone {
    width: 100%;
    height: 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 18px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    letter-spacing: 2px;
}

#saleh-phone:focus {
    border-color: #004a99;
    box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.1);
}

#saleh-submit {
    width: 100%;
    height: 55px;
    background: #004a99;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 74, 153, 0.3);
}

#saleh-submit:hover {
    background: #003a7a;
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(0, 74, 153, 0.4);
}

#saleh-submit:active {
    transform: translateY(0);
}

#saleh-msg {
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

#saleh-msg.success { color: #10b981; }
#saleh-msg.error { color: #ef4444; }

/* Sticky Trigger Button */
#saleh-sticky-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #004a99;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 74, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#saleh-sticky-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    background: #003a7a;
}

#saleh-sticky-trigger svg {
    width: 30px;
    height: 30px;
}

/* Responsive */
@media (max-width: 480px) {
    #saleh-sticky-trigger {
        display: flex !important; /* اطمینان از نمایش */
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    #saleh-sticky-trigger svg {
        width: 24px;
        height: 24px;
        display: block !important;
    }
    #saleh-appointment-popup {
        padding: 30px 20px;
        margin: 0 15px;
    }
    #saleh-appointment-popup h2 { font-size: 20px; }
}
