/**
 * استایل‌های دانلود PDF دسکتاپ
 * Mobile Sticky Menu
 */

/* ============================================
   دکمه دانلود
   ============================================ */
.msm-dpdf-wrap {
    display: flex;
    justify-content: center;
}
.msm-dpdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #5caf21;
    border: none;
    transition: background 0.2s;
    line-height: 1.5;
    margin: 0;
    border-radius:10px;
}

.msm-dpdf-btn:hover {
    background: #4e9a1c;
    color:#fff;
}

.msm-dpdf-btn svg {
    flex-shrink: 0;
}

/* ============================================
   Overlay (backdrop تار)
   ============================================ */

.msm-dpdf-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.msm-dpdf-overlay.active {
    display: flex;
}

/* ============================================
   پاپ‌آپ
   ============================================ */

.msm-dpdf-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 380px;
    max-width: 90vw;
    direction: rtl;
    animation: msmDpdfFadeIn 0.25s ease;
    /* بدون سایه طبق درخواست */
}

@keyframes msmDpdfFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* دکمه بستن */
.msm-dpdf-popup__close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    margin:0;
}

.msm-dpdf-popup__close:hover {
    color: #333;
}

/* عنوان */
.msm-dpdf-popup__title {
    margin: 0 0 24px;
    font-size: 18px !important;
    text-align: center;
}

/* ============================================
   مراحل فرم
   ============================================ */

.msm-dpdf-step {
    display: none;
}

.msm-dpdf-step.active {
    display: block;
    animation: msmDpdfSlideIn 0.3s ease;
    margin-top:10px;
}

@keyframes msmDpdfSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فیلد */
.msm-dpdf-field {
    margin-bottom: 16px;
    text-align: center;
}

.msm-dpdf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

/* اینپوت شماره */
.msm-dpdf-input {
    padding: 6px 14px !important;
    border-radius: 10px !important;
    outline: none;
    box-shadow: none !important;
    text-align: center;
    margin:0 !important;
}

.msm-dpdf-input:focus {
    border-color: #5caf21;
}

/* باکس‌های کد */
.msm-dpdf-code-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.msm-dpdf-code-input {
    width: 52px !important;
    height: 52px !important;
    text-align: center;
    font-size: 22px !important;
    font-weight: 700;
    border-radius: 10px !important;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield !important;
    box-shadow: none !important;
    margin: 0;
}

.msm-dpdf-code-input::-webkit-outer-spin-button,
.msm-dpdf-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.msm-dpdf-code-input:focus {
    border-color: #5caf21;
    box-shadow: 0 0 0 3px rgba(92, 175, 33, 0.15);
}

/* خطا */
.msm-dpdf-error {
    color: #E53935;
    font-size: 13px;
    margin: 6px 0 0;
    min-height: 18px;
}

/* دکمه ارسال */
.msm-dpdf-submit {
    display: block;
    width: 100%;
    padding: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #5caf21;
    border: none;
    transition: background 0.2s;
    margin: 0;
}

.msm-dpdf-submit:hover {
    background: #4e9a1c;
}

.msm-dpdf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* لودینگ */
.msm-dpdf-submit.loading {
    color: transparent;
    pointer-events: none;
}

.msm-dpdf-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: msmDpdfSpin 0.6s linear infinite;
}

@keyframes msmDpdfSpin {
    to { transform: rotate(360deg); }
}

/* تایمر */
.msm-dpdf-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    direction: ltr;
}

.msm-dpdf-resend {
    background: none;
    border: none;
    color: #5caf21;
    font-size: 13px;
    padding: 0;
    margin: 0;
}

.msm-dpdf-resend:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* ============================================
   دکمه دانلود مستقیم (بعد از لاگین)
   ============================================ */

/* ============================================
   نمایش شماره موبایل + دکمه ویرایش
   ============================================ */

.msm-dpdf-phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    direction: ltr;
}

.msm-dpdf-phone-number {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    letter-spacing: 1px;
}

.msm-dpdf-phone-edit {
    background: none;
    border: none;
    cursor: pointer;
    color: #5caf21;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.msm-dpdf-phone-edit:hover {
    color: #4e9a1c;
}
