.form-container {
    background-color: #f5f5f5 !important; /* خاکستری خیلی کم‌رنگ */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* عرض کامل */
    max-width: 1000px; /* حداکثر عرض محدود برای دسکتاپ */
    height: 350px; /* ارتفاع فرم 600 پیکسل */
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif !important;
    box-sizing: border-box;
    position: relative;
}

/* استایل‌های پاپ‌آپ */
.captcha-popup {
    display: none; /* مخفی به صورت پیش‌فرض */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه نیمه‌شفاف */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif !important;
    transform: translateY(0);
}

.captcha-content h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.captcha-content p {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

#captcha-code {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6200;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

#captcha-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif !important;
}

#captcha-input:focus {
    border-color: #ff6200;
    outline: none;
}

.captcha-content button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif !important;
}

.captcha-content button:first-of-type {
    background-color: #ff6200;
    color: #fff;
}

.captcha-content button:first-of-type:hover {
    background-color: #e55a00;
}

.captcha-content button:last-of-type {
    background-color: #ccc;
    color: #333;
}

.captcha-content button:last-of-type:hover {
    background-color: #bbb;
}

.captcha-error {
    color: #d32f2f;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* بقیه استایل‌های فرم */
.form-container h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Open Sans', sans-serif !important;
}

.form-container p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Open Sans', sans-serif !important;
}

.form-container h1 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Open Sans', sans-serif !important;
}

.success-message, .error-message {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.success-message {
    background-color: #e6f4ea;
    color: #2e7d32;
}

.error-message {
    background-color: #fce4ec;
    color: #d32f2f;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 280px;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Open Sans', sans-serif !important;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    border-color: #ff6200;
    outline: none;
}

.form-group small {
    font-size: 0.8em;
    color: #666;
    margin-top: 3px;
    font-family: 'Open Sans', sans-serif !important;
}

.submit-button {
    background-color: #e4b77c !important; /* خاکستری کم‌رنگ */
    color: #333;
    padding: 16px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1.3em;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin: 20px auto 0 auto !important;
    display: block !important;
    text-align: center !important;
    transition: background-color 0.3s ease;
    font-family: 'Open Sans', sans-serif !important;
}

.submit-button:hover {
    background-color: #c0c0c0 !important; /* خاکستری کمی تیره‌تر برای هاور */
}

/* ریسپانسیو برای دستگاه‌های مختلف */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row .form-group {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .form-container h1 {
        font-size: 1.5em;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group select {
        font-size: 0.9em;
    }

    .submit-button {
        font-size: 1em;
        max-width: 100%;
    }

    .form-container {
        width: 100%; /* عرض کامل در موبایل */
        height: auto; /* ارتفاع خودکار در موبایل */
        max-width: 100%; /* عرض کامل در موبایل */
        min-height: 600px; /* حداقل ارتفاع 600 پیکسل */
        padding: 20px;
    }

    .captcha-content {
        width: 90%;
        max-width: 320px;
        min-width: 260px;
        padding: 15px;
    }

    .captcha-content h2 {
        font-size: 1.3em;
    }

    .captcha-content p {
        font-size: 0.9em;
    }

    .captcha-code {
        font-size: 1.1em;
    }

    .captcha-input {
        font-size: 0.9em;
        padding: 8px;
    }

    .captcha-content button {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .captcha-content {
        max-width: 280px;
        min-width: 240px;
        padding: 10px;
    }

    .captcha-content h2 {
        font-size: 1.2em;
    }

    .captcha-content p {
        font-size: 0.85em;
    }

    .captcha-code {
        font-size: 1em;
    }

    .captcha-input {
        font-size: 0.85em;
        padding: 7px;
    }

    .captcha-content button {
        font-size: 0.85em;
        padding: 7px 14px;
    }
}