/* Styles for the public-facing repair form */
.validation-error {
    color: #dc3545;
    font-size: 0.875em;
    display: none;
    margin-top: 4px;
}

input.invalid,
textarea.invalid,
.dropdown-container.invalid .dropdown {
    border-color: #dc3545 !important;
}

.form-group.invalid .validation-error {
    display: block;
}

/* Add any other frontend form styles here */


/* --- Style for Success Popup --- */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* در حالت عادی مخفی است */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    direction: rtl;
}

.popup-overlay.active {
    display: flex; /* با افزودن این کلاس، نمایش داده می‌شود */
    opacity: 1;
}

.popup-content {
    background: #fff;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #eaf6ec;
    color: #28a745;
    font-size: 36px;
    line-height: 60px;
    margin: 0 auto 20px;
    font-weight: bold;
}

.popup-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.popup-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.popup-content .popup-contact {
    margin-top: 15px;
    font-size: 15px;
    color: #666;
}

.popup-content .popup-contact a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.popup-close-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.2s;
    width: 100%;
}

.popup-close-btn:hover {
    background-color: #0056b3;
}

.popup-icon.error-icon {
    background-color: #fde8e8;
    color: #e74c3c;
    font-size: 40px; /* برای نمایش بهتر کاراکتر × */
    line-height: 52px;
        display: flex;
    justify-content: center;
    align-items: center;
}

/* تغییر رنگ دکمه به قرمز */
.popup-close-btn.error-btn {
    background-color: #e74c3c;
}

.popup-close-btn.error-btn:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {

    .popup-content {
        /* کاهش فاصله‌های داخلی برای استفاده بهتر از فضا */
        padding: 25px 20px;
    }

    .popup-icon {
        /* کمی کوچک‌تر کردن آیکون */
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 30px;
        margin-bottom: 15px;
    }

    .popup-content h2 {
        /* تنظیم اندازه عنوان برای خوانایی بهتر */
        font-size: 20px;
    }

    .popup-content p {
        /* تنظیم اندازه متن اصلی */
        font-size: 15px;
    }

    .popup-close-btn {
        /* تنظیم اندازه دکمه */
        padding: 12px;
        font-size: 15px;
        margin-top: 20px;
    }
}