@font-face {
    font-family: 'Gandom';
    src: url('/wp-content/plugins/persian-elementor/assets/css/font/Gandom/Gandom.woff2') format('woff2');
    font-display: swap;
}

* {
    font-family: 'Gandom', sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 600px;
    width: 95%;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    margin: 20px auto;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h2 {
    text-align: center;
    color: #2e7d32;
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: #2e7d32;
    border-radius: 2px;
}

label {
    display: block;
    margin-top: 20px;
    color: #424242;
    font-size: 14px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    margin-top: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus {
    outline: none;
    border-color: #66bb6a;
    background: white;
    box-shadow: 0 0 0 3px rgba(105, 195, 110, 0.2);
}

button {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
}

.message {
    margin-top: 15px;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container {
    margin: 25px 0;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-image {
    height: 50px;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

#captchaInput {
    flex: 1;
    min-width: 150px;
}

.refresh-captcha {
    cursor: pointer;
    color: #2e7d32;
    font-size: 14px;
    white-space: nowrap;
}


/***************************************************************************************************************/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9); /* پس‌زمینه کمی روشن‌تر از سیاه مطلق */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.spinner {
    border: 6px solid rgba(50, 50, 50, 0.4); /* حاشیه خارجی تیره‌تر */
    border-top: 6px solid #00bcd4; /* رنگ قسمت متحرک اسپینر */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 20px;
}

/* انیمیشن تایپ شدن متن */
@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

/* انیمیشن خط چشمک‌زن حذف شده است */
/* @keyframes blink-caret {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: white;
    }
} */

#loaderMessage {
    font-size: 18px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    /* انیمیشن blink-caret حذف شده است */
    animation: typing 5s steps(100, end) forwards;
    color: white; /* رنگ متن سفید */
    /* border-right: .15em solid white; <-- این خط حذف شده است */
    display: inline-block;
    padding-bottom: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* این قانون اطمینان می‌دهد که اگر display: flex تنظیم نشده باشد، مخفی بماند */
.loading-overlay:not([style*="display: flex"]) {
    display: none;
}

/***************************************************************************************************************/

button.loading {
    color: transparent !important;
}

button.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


@media (max-width: 480px) {
    .container {
        padding: 25px;
    }

    .captcha-container {
        flex-direction: column;
    }

    .captcha-image {
        width: 100%;
        height: auto;
    }
}

#modalBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modalContent {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}


@keyframes blink {
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.alert-box {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeeba;
    border-radius: 12px;
    padding: 20px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    margin-top: 25px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

#phone {
    direction: ltr !important;
    text-align: left !important;
}

input[type="email"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}