/* أنماط عامة */
body {
    font-family: 'Tajawal', sans-serif;
}
.nav-name{
    color: #000;
}
.hero-section {
    background: linear-gradient(rgba(58, 57, 57, 0.7), rgba(104, 103, 103, 0.7)), url('assets/images/bground1.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}
/* مؤشر التحميل */
.loading-spinner-container {
    text-align: center;
    padding: 3rem;
    width: 100%;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid rgba(13, 110, 253, 0.2);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* بطاقات الخدمات */
.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.service-card img {
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #0d6efd;
    background: #f8f9fa; /* لون خلفية مؤقت أثناء التحميل */
}
/* في style.css */
#serviceModal .alert-danger {
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
}

#serviceModal .is-invalid {
    border: 2px solid #dc3545 !important;
    background-image: url("data:image/svg+xml,...");
}
/* آراء العملاء */
.testimonial-card {
    border-left: 4px solid #0d6efd;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateX(10px);
}

/* الفيديو */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الرسوم المتحركة */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animated-icon {
    animation: pulse 2s infinite;
}

/* المودال المخصص */
.success-modal .modal-content {
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}
.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 12px;
    direction: rtl;
}

.d-none {
    display: none !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    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);
}
/* أنماط حقل البحث */
.search-container {
    position: relative;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    height: 55px;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: 2px solid #e3f2fd;
    background: #f8f9fa;
    transition: all 0.3s ease;
    padding-left: 50px;
}

.search-input:focus {
    border-color: #0d6efd;
    box-shadow: none;
    background: #fff;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: transparent;
    border: none;
    pointer-events: none;
}

.search-icon svg {
    color: #6c757d;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon svg {
    color: #0d6efd;
}

@media (max-width: 768px) {
    .search-input {
        font-size: 1rem;
        padding-left: 45px;
    }
    
    .search-icon {
        left: 15px;
    }
}
/* تحسينات المودال */
.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

.share-btn {
    border-radius: 25px;
    transition: all 0.3s;
    padding: 8px 20px;
}

.share-btn:hover {
    background: #0d6efd !important;
    color: white !important;
}

.modal-body video {
    border-radius: 12px;
    background: #000;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}
.alert-danger {
    border-radius: 8px;
    padding: 1rem;
    background: #fee;
    border: 2px solid #fcc;
}

#modalVideo {
    border-radius: 12px;
    background: #000;
}

.share-btn {
    transition: all 0.3s;
    border-radius: 25px;
}

.share-btn:hover {
    transform: translateY(-2px);
}
.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.bi-facebook:hover { color: #1877f2 !important; }
.bi-instagram:hover { color: #e4405f !important; }
.bi-whatsapp:hover { color: #25d366 !important; }
/* تصميم النموذج الحديث - نسخة لطيفة */
.modern-form {
    border-radius: 25px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.modern-form .card-body {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem !important;
}

.form-floating label {
    color: #6c757d;
    padding-right: 3.5rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-select:focus~label {
    color: #0d6efd;
    transform: translateY(-10%) scale(0.85);
}

.form-control-lg {
    height: calc(3.5rem + 2px);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
}

.form-control-lg:focus {
    border-color: #85b6ff;
    box-shadow: 0 0 12px rgba(133, 182, 255, 0.3);
}

.form-control-lg::placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.form-select-lg {
    border-radius: 15px !important;
    border: 2px solid #e9ecef;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg...");
}

.glow-on-hover {
    position: relative;
    transition: all 0.3s ease-in-out;
    padding: 1rem 2.5rem;
    font-weight: 500;
    border: none;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    overflow: hidden;
}

.glow-on-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.2);
    opacity: 0.95;
}

.glow-on-hover:active {
    transform: translateY(0);
}

.form-floating i {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    transition: color 0.25s ease;
    font-size: 1.1rem;
}

.form-floating>.form-control:focus~label i,
.form-floating>.form-select:focus~label i {
    color: #0d6efd;
}

/* تأثيرات خاصة للعناصر */
textarea.form-control-lg {
    resize: none;
    min-height: 120px !important;
    padding-top: 1.5rem !important;
}

/* ظلال ناعمة للبطاقة */
.modern-form {
    box-shadow: 0 12px 40px -10px rgba(13, 110, 253, 0.08);
}

/* تعديلات الهاتف */
@media (max-width: 768px) {
    .modern-form {
        margin: 0 0.5rem;
        border-radius: 20px;
    }
    
    .modern-form .card-body {
        padding: 2rem !important;
    }
    
    .form-control-lg {
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .glow-on-hover {
        width: 100%;
    }
}

/* تنسيقات إضافية للوضوح */
.form-text.text-muted {
    color: #868e96 !important;
    font-size: 0.9em;
}

select.form-select-lg option {
    padding: 1rem !important;
    border-bottom: 1px solid #f1f3f5;
}