/* Generated by script */

@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
} 
body {
    background: linear-gradient(135deg, #2a2a72 0%, #009ffd 100%);
    font-family: Vazirmatn, Tahoma;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column !important; /* این خط جهت را اصلاح می‌کند */
    align-items: center;
}
/* این کلاس باعث می‌شود محتوا فضای خالی را پر کند تا فوتر پایین برود */
.wrapper {
    flex: 1;
    width: 100%; /* اطمینان از تمام عرض بودن */
}
.card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.7s ease-in-out;
}
.btn-custom {
    background: linear-gradient(90deg, #4B0082 0%, #800080 100%);
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.4);
    padding: 15px;
    color: #fff;
}
.btn-custom:hover {
    background: linear-gradient(90deg, #2E004F 0%, #4B0082 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.6);
    color: white;
}
.btn-outline-custom {
    border-color: #800080;
    color: #fff;
    background: rgb(143 0 181 / 84%) !important;
    transition: all 0.4s ease;
}
.btn-outline-custom:hover {
    background: #800080;
    color: #fff;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.4);
}
.alert-success {
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
    border-radius: 10px;
}
textarea, input[type="text"] {
    resize: vertical;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.stats {
    font-size: 1.2rem;
    color: #e6f0ff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}
.faq-section {
    margin-top: 30px;
}
.accordion-item {
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.accordion-button {
    background: #4B0082;
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.accordion-button:not(.collapsed) {
    background: #800080;
    color: #fff;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}
.accordion-button.collapsed {
    background: #2E004F;
    color: #fff;
}
.accordion-button::after {
    filter: brightness(0) invert(1);
    margin-right: 5px;
}
.accordion-body {
    background: #ffffff;
    color: #333;
    padding: 15px;
    border-radius: 0 0 10px 10px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
}
hr {
    background-color: #fff;
    padding: 0;
    margin: 50px;
}
hr.hr-1 {
    border: 0;
    height: 3px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(128 0 128), rgba(0, 0, 0, 0));
}
.lang-switch {
    position: relative;
    display: block;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}
.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.lang-switch a:hover {
    color: #e6f0ff;
}
.flag {
    margin: 3px;
    vertical-align: middle;
    width: 40px;
  height: 25px;
}
.toast-body {
    color: black;
    font-size: 1rem;
    background: white;
    text-align: center;
}
.content-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    color: #333;
    box-shadow: 0 5px 15px rgb(9 134 224);
    white-space: pre-wrap;
}
#successAlert, #errorAlert {
    transition: all 0.5s ease-in-out;
    transform: translateY(-100%);
    opacity: 1;
}
div#errorAlert {
    margin-top: 1rem;
    margin-bottom: 0;
}
#successAlert.show, #errorAlert.show {
    transform: translateY(0);
    opacity: 1;
}
/* Modern UI/UX Tweaks */
        body {
            background-color: #f8f9fa;
            font-family: 'Vazirmatn', sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        .form-control:focus, .btn:focus {
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
            border-color: #86b7fe;
        }
        .btn {
            transition: all 0.3s ease;
        }
        .btn:hover {
            transform: translateY(-2px);
        }
        .btn:active {
            transform: translateY(0);
        }
        /* Radio Cards for Mobile */
        .radio-card-label {
            border: 2px solid #e9ecef;
            border-radius: 1rem;
            transition: all 0.2s;
            cursor: pointer;
            background: #fff;
        }
        .btn-check:checked + .radio-card-label {
            border-color: #0d6efd;
            background-color: rgba(13, 110, 253, 0.05);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
        }
        .btn-check:checked + .radio-card-label i {
            color: #0d6efd !important;
        }
            .footer-link { transition: color 0.3s; opacity: 0.8; }
    .footer-link:hover { color: #ffc107 !important; opacity: 1; }
    .letter-spacing-lg { letter-spacing: 0.3rem; }
.nav-pills .nav-link { color: #6c757d; transition: all 0.3s ease; }
.nav-pills .nav-link.active { background-color: #0d6efd; color: white !important; box-shadow: 0 4px 10px rgba(13,110,253,0.3); }
textarea:focus { background-color: #fff !important; }
/* استایل‌های اختصاصی صفحه خواندن */
.shadow-inner { box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); border: 1px solid #444; }
.pulse-danger {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.hover-dark:hover { background-color: #e9ecef; color: #212529 !important; }
    /* افکت‌های ظریف و جذاب برای فوتر */
    .footer-link { transition: color 0.2s ease-in-out; opacity: 0.7; }
    .footer-link:hover { color: #ffc107 !important; opacity: 1; }
    .hover-elevate { transition: transform 0.2s; }
    .hover-elevate:hover { transform: translateY(-3px); }
/* استایل‌های بنر نصب PWA */
        .pwa-banner {
            z-index: 1060;
            width: 95%;
            max-width: 400px;
            bottom: 20px;
            /* برای انیمیشن ورود */
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        .pwa-banner.show-banner {
            transform: translateY(0);
            opacity: 1;
        }
        .pwa-icon {
            width: 45px;
            height: 45px;
            object-fit: cover;
        }
        .pwa-later-btn {
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .pwa-later-btn:hover {
            opacity: 0.7;
        }
/* 🟢 خنثی‌سازی کامل انیمیشن و کادر چشمک‌زن */
    .clean-stats-badge {
        animation: none !important;
        -webkit-animation: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
    }

    /* 🟢 استایل اختصاصی FAQ با ایزولاسیون کامل و کنتراست قطعی */
    .faq-container-custom .faq-card {
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        overflow: hidden;
        margin-bottom: 0.75rem;
    }
    .faq-container-custom .faq-card:hover {
        border-color: #cbd5e1 !important;
    }
    .faq-container-custom .faq-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-size: 0.98rem;
        font-weight: 700;
        padding: 1.1rem 1.25rem !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        text-align: right;
    }
    .faq-container-custom .faq-btn:not(.collapsed) {
        color: #0d6efd !important;
        background-color: #f8fafc !important;
        border-bottom: 1px solid #edf2f7 !important;
    }
    .faq-container-custom .faq-btn::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 0.8rem;
        color: #64748b;
        transition: transform 0.2s ease, color 0.2s ease;
        margin-left: 0;
        margin-right: auto;
    }
    .faq-container-custom .faq-btn:not(.collapsed)::after {
        transform: rotate(180deg);
        color: #0d6efd;
    }
    .faq-container-custom .faq-body {
        background-color: #ffffff !important;
        color: #334155 !important;
        padding: 1.1rem 1.25rem !important;
        font-size: 0.92rem;
        line-height: 1.85;
    }