﻿/* Social Icons */
.social-contact-info .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-contact-info .social-icon {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

    .social-contact-info .social-icon:hover {
        transform: translateY(-3px);
    }

    .social-contact-info .social-icon i {
        font-size: 20px;
        margin-left: 8px;
    }

    .social-contact-info .social-icon.telegram {
        background: #0088cc;
    }

    .social-contact-info .social-icon.whatsapp {
        background: #25D366;
    }

    .social-contact-info .social-icon.linkedin {
        background: #0077B5;
    }

    .social-contact-info .social-icon.twitter {
        background: #1DA1F2;
    }
/* Working Hours */
.working-hours .hours-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.working-hours .hour-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

    .working-hours .hour-item:last-child {
        border-bottom: none;
    }
/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Form Validation */
.field-validation-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
/* Contact Info Cards */
.single-contact-info {
    transition: transform 0.3s;
    height: 100%;
}

    .single-contact-info:hover {
        transform: translateY(-5px);
    }
/* Responsive Design */
@media (max-width: 768px) {
    .social-contact-info .social-links {
        justify-content: center;
    }

    .language-switcher {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        text-align: center;
    }

    .working-hours .hour-item {
        flex-direction: column;
        text-align: center;
    }
}
/* RTL Support */
[dir="rtl"] .social-contact-info .social-icon i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .language-switcher {
    left: auto;
    right: 20px;
}

[dir="rtl"] .input-validation-error {
    background-position: left calc(0.375em + 0.1875rem) center;
}

.animate__animated {
    animation-duration: 0.5s;
}

/* Form control icons */
.form-control-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

[dir="rtl"] .form-control-icon {
    left: auto;
    right: 10px;
}

.form-control {
    padding-right: 40px;
}

[dir="rtl"] .form-control {
    padding-left: 40px;
    padding-right: 12px;
}

/* Character counter */
.char-counter {
    font-size: 12px;
    margin-top: 5px;
}

/* Success message styles */
.alert-success {
    border-right: 4px solid #28a745;
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    border-right: 4px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-control-icon {
        display: none;
    }

    .form-control {
        padding: 10px;
    }

    /* استایل‌های مخصوص اعتبارسنجی شماره تلفن */
    .operator-badge {
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 12px;
        display: inline-block;
    }

    .number-info {
        background: #f8f9fa;
        padding: 8px;
        border-radius: 6px;
        border-right: 3px solid #dee2e6;
    }

        .number-info span.text-muted {
            font-size: 11px;
            color: #6c757d;
        }

    /* مکان‌نمای آبی برای فیلد فعال */
    #ContactForm_PhoneNumber:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* استایل برای فیلد معتبر */
    #ContactForm_PhoneNumber.is-valid {
        border-color: #28a745;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

    /* استایل برای فیلد نامعتبر */
    #ContactForm_PhoneNumber.is-invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

    /* دکمه کپی */
    .copy-number {
        transition: all 0.3s ease;
    }

        .copy-number:hover {
            transform: translateY(-2px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

    /* انیمیشن برای تغییر وضعیت */
    @keyframes pulse-valid {
        0% {
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        }
    }

    #ContactForm_PhoneNumber.is-valid {
        animation: pulse-valid 0.5s;
    }

    /* پشتیبانی RTL */
    [dir="rtl"] #ContactForm_PhoneNumber.is-valid,
    [dir="rtl"] #ContactForm_PhoneNumber.is-invalid {
        background-position: left calc(0.375em + 0.1875rem) center;
    }

    /* نمایش پیشنهادات */
    .phone-suggestions {
        position: absolute;
        z-index: 1000;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
        max-height: 200px;
        overflow-y: auto;
    }

    .phone-suggestion {
        padding: 8px 12px;
        cursor: pointer;
        border-bottom: 1px solid #f8f9fa;
    }

        .phone-suggestion:hover {
            background: #f8f9fa;
        }

        .phone-suggestion:last-child {
            border-bottom: none;
        }

 
    .form-control-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    [dir="rtl"] .form-control-icon {
        left: auto;
        right: 10px;
    }

    /* فاصله برای آیکون‌ها */
    .form-control {
        padding-right: 40px;
    }

    [dir="rtl"] .form-control {
        padding-left: 40px;
        padding-right: 12px;
    }

    /* شمارنده کاراکتر */
    .char-counter {
        font-size: 12px;
        margin-top: 5px;
    }

    /* اطلاعات اپراتور */
    .operator-info {
        font-size: 12px;
        padding: 3px 8px;
        background: #f8f9fa;
        border-radius: 4px;
        display: inline-block;
    }

    /* انیمیشن‌ها */
    @keyframes pulse-valid {
        0% {
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        }
    }

    .is-valid {
        animation: pulse-valid 0.5s;
    }

 