/* تم نقل متغيرات الألوان إلى ملف variables.css الرئيسي */
/* يرجى التأكد من استيراد variables.css قبل هذا الملف */
/* Custom styling for contact page integration */

/* Hero Section Gradient - Same as about.html and blog.html */
.in-sv-hero-section.about-hero-bg {
	position: relative;
	min-height: 70vh;
	overflow: hidden;
	background-image: linear-gradient(90deg, #fff 10%, var(--base-sv-color) 110%);
	background-repeat: no-repeat;
}

/* Hero Image Styling */
.in-sv-hero-section.about-hero-bg .hero-image {
	position: absolute;
	bottom: 0;
	height: 90%;
	width: auto;
	object-fit: contain;
	z-index: 1;
	pointer-events: none;
}

/* الصورة ثابتة في الزاوية اليمنى للغتين */
.in-sv-hero-section.about-hero-bg .hero-image {
	right: 0;
	left: auto;
}



.in-sv-hero-content {
	position: relative;
	z-index: 2;
}

/* Secondary text color in hero section */
.in-sv-hero-section.about-hero-bg .in-sv-hero-content h3,
.in-sv-hero-section.about-hero-bg .in-sv-hero-content h4 {
	color: #2c3e50;
}

/* Center text - remove padding */
.in-sv-hero-content .container {
	padding-left: 15px;
	padding-right: 15px;
}

/* Responsive adjustments for hero image */



.contact-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
}
.contact-info {
  padding: 80px 0;
}

.contact-card {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
}

/* Smooth transitions for hover-card class - same as contact-card */
.contact-card.hover-card {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card h5,
.contact-card p,
.contact-card .text-muted {
  transition: color 0.3s ease;
}

.contact-card:hover,
.contact-card.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background-color: #f3faf2 !important;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #03a9f4, #667eea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.contact-icon i {
  color: #fff !important;
}

.contact-form {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-form-wrapper {
  background: #fff;
  border-radius: 0;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

/* Improved form controls styling */
.contact-form-wrapper .form-control {
  border-radius: 0;
  border: 1px solid #dee2e6;
  padding: 10px 15px;
  transition: border-color 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--base-sv-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--base-sv-color-rgb, 0, 123, 255), 0.15);
  outline: none;
}

.contact-form-wrapper .form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #495057;
}

.contact-form-wrapper .mb-3 {
  margin-bottom: 1.25rem !important;
}

.map-section {
  padding: 80px 0;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.business-hours {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.hours-list {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 0;
  }
  
  .contact-info {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 60px 0;
  }
  
  /* Make form column full width on mobile */
  .contact-section .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Reduce container padding on mobile */
  .contact-section .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .contact-form-wrapper {
    padding: 20px;
    width: 100%;
    margin: 0;
  }
  
  .map-section {
    padding: 60px 0;
  }
  
  .business-hours {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 40px 0;
  }
  
  .contact-info {
    padding: 40px 0;
  }
  
  .contact-form {
    padding: 40px 0;
  }
  
  /* Make form column full width on small mobile */
  .contact-section .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Reduce container padding on mobile for more space */
  .contact-section .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .contact-form-wrapper {
    padding: 15px;
    width: 100%;
    margin: 0;
  }
  
  .map-section {
    padding: 40px 0;
  }
  
  .business-hours {
    padding: 40px 0;
  }
  .in-sv-hero-section.about-hero-bg .hero-image {
    height: 50%;
    max-width: 80%;
    left: -10px;
    object-fit: contain;
    bottom: 0;
  }
}


/* Social icon  Section */
	h2 {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-block-end: 4rem;
}

.social {
  display: flex;
  justify-content: center;
  flex-flow: wrap;
  gap: 1rem;
  list-style: none;
}

.social li {
  position: relative;
  flex-basis: 4.5rem;
}

.social li::after {
  position: absolute;
  /* content: "Tooltip"; */
  content: attr(data-tooltip);
  inset: -45% auto auto 50%;
  z-index: -1;
  translate: -50%;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  /* background: #070707; */
  background: var(--bg, #070707);
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* transition: all 0.3s ease-in-out; */
  transition: inset 0.4s cubic-bezier(0.47, 2, 0.41, 1.5),
    visibility 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.social li:has(a:hover, a:focus-visible)::after {
  opacity: 1;
  visibility: visible;
  inset-block-start: -60%;
}

.social a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  font-size: 1.75rem;
  color: #070707;
  border: 1px solid;
  border-radius: 100%;
  text-decoration: none;
  outline: none;
  overflow: hidden;
  transition: color 0.3s ease-in-out;
}

.social a > i {
  position: relative;
  z-index: 1;
}

.social a::after {
  position: absolute;
  content: "";
  inset: 100% 0 0;
  /* background: #070707; */
  background: var(--bg, #070707);
  pointer-events: none;
  transition: inset 0.3s ease-in-out;
}

.social a:hover,
.social a:focus-visible {
  color: #fff;
}

.social a:hover::after,
.social a:focus-visible::after {
  inset-block-start: 0;
}
.contact-section{
  background-color: var(--base-sv-color);
}

/* Customer Service section styling aligned with page */
/* الوضع العربي (يمين لليسار) */
/* الوضع الإنجليزي (LTR) */
:root[dir="rtl"] #customer-service.customer-service-section {
  background: linear-gradient(to right, #fff 35%, var(--base-sv-color) 100%);
}

/* الوضع العربي (RTL) */
:root[dir="ltr"] #customer-service.customer-service-section {
  background: linear-gradient(to left, #fff 35%, var(--base-sv-color) 100%);
}

/* زيادة حدة التدرج وتقليل اللون الأبيض في قياسات الهاتف */
@media (max-width: 768px) {
  :root[dir="rtl"] #customer-service.customer-service-section {
    background: linear-gradient(to right, #fff 20%, var(--base-sv-color) 100%);
  }
  
  :root[dir="ltr"] #customer-service.customer-service-section {
    background: linear-gradient(to left, #fff 20%, var(--base-sv-color) 100%);
  }
}

@media (max-width: 480px) {
  :root[dir="rtl"] #customer-service.customer-service-section {
    background: linear-gradient(to right, #fff 15%, var(--base-sv-color) 100%);
  }
  
  :root[dir="ltr"] #customer-service.customer-service-section {
    background: linear-gradient(to left, #fff 15%, var(--base-sv-color) 100%);
  }
}

.service-image-wrapper img{
  max-width: 100%;
  height: auto;
}
.service-content-wrapper{
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.service-features .feature-item .feature-icon i{
  line-height: 1;
}
.contact-numbers .btn{
  font-weight: 600;
}

/* Contact page text color overrides */
p,
.text-muted {
  color: #999 !important;
}


/* Change text color when the whole card is hovered - smooth transition */
.contact-card:hover h5 {
  color: #2c3e50 !important;
  transition: color 0.3s ease;
}

.contact-card:hover p,
.contact-card:hover .text-muted {
  color: #495057 !important;
  transition: color 0.3s ease;
}
.submit-btn{
  color: #fff;
  font-weight: 600;
  padding: 15px 28px;
  display: inline-block;
  background-color: var(--base-sv-color);
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}
.submit-btn:hover,
.submit-btn:focus-visible{
  background-color: var(--main-sv-color);
}


        /* Custom styling for contact form button */
        .contact-form-wrapper .in-sv-cta-btn {
            margin: 0;
        }
        
        .contact-form-wrapper .in-sv-cta-btn button {
            color: #fff;
            font-weight: 600;
            padding: 15px 28px;
            display: inline-block;
            background-color: var(--base-sv-color);
            border: none;
            border-radius: 0;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .contact-form-wrapper .in-sv-cta-btn button:hover {
            background-color: var(--main-sv-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .contact-form-wrapper .in-sv-cta-btn button:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(var(--base-sv-color-rgb), 0.3);
        }
        
        /* Custom hover effect for contact buttons similar to social icons */
        .contact-card .btn {
            position: relative;
            border: 2px solid;
            transition: all 0.3s ease-in-out;
            background: #fff !important;
        }
        
        .contact-card .btn-outline-success {
            color: #28a745;
            border-color: #28a745;
        }
        
        .contact-card .btn-outline-success:hover,
        .contact-card .btn-outline-success:focus-visible {
            color: #28a745;
            background: #fff !important;
        }
        
        /* Map button */
        .contact-card .btn-outline-primary {
            color: #007bff;
            border-color: #007bff;
        }
        
        .contact-card .btn-outline-primary:hover,
        .contact-card .btn-outline-primary:focus-visible {
            color: #007bff;
            background: #fff !important;
        }
        
        /* Email button */
        .contact-card .btn-outline-danger {
            color: #dc3545;
            border-color: #dc3545;
        }
        
        .contact-card .btn-outline-danger:hover,
        .contact-card .btn-outline-danger:focus-visible {
            color: #dc3545 !important;
            background: #fff !important;
        }
        
        /* Support button */
        .contact-card .btn-outline-info {
            color: #17a2b8;
            border-color: #17a2b8;
        }
        
        .contact-card .btn-outline-info:hover,
        .contact-card .btn-outline-info:focus-visible {
            color: #17a2b8;
            background: #fff !important;
        }
        
        /* Ensure buttons stay white background even when card is hovered */
        .contact-card:hover .btn {
            background: #fff !important;
            color: inherit !important;
        }
        
        /* Trigger button hover effect when card is hovered */
        .contact-card:hover .btn-outline-success {
            color: #fff !important;
            background: #28a745 !important;
        }
        
        .contact-card:hover .btn-outline-primary {
            color: #fff !important;
            background: #007bff !important;
        }
        
        .contact-card:hover .btn-outline-danger {
            color: #fff !important;
            background: #dc3545 !important;
        }
        
        .contact-card:hover .btn-outline-info {
            color: #fff !important;
            background: #17a2b8 !important;
        }
        
        /* Branches Section Styling */
        .branches-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }
        
        .branches-intro .lead {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #495057;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .branch-card {
            background: #fff;
            border-radius: 15px;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
            text-align: center;
        }
        
        .branch-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            border-color: var(--base-sv-color);
        }
        
        .branch-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .branch-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }
        
        .branch-subtitle {
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 1rem;
        }
        
        .branch-description {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #6c757d;
            margin-bottom: 0;
        }
        
        .map-container {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        /* Small Square Branch Cards */
        .branch-square-card {
            background: #fff;
            border-radius: 8px;
            transition: all 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .branch-square-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            border-color: var(--base-sv-color);
            background-color: #f3faf2;
        }
        
        .branch-icon-small {
            font-size: 1.8rem;
            color: var(--base-sv-color);
            margin-bottom: 0.5rem;
        }
        
        .branch-title-small {
            font-size: 1rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.25rem;
        }
        
        .branch-square-card small {
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        /* جعل الأزرار في نفس الارتفاع في بطاقات التواصل */
        .contact-card h5 {
            flex-shrink: 0;
        }
        
        .contact-card p {
            flex-grow: 1;
            margin-bottom: 0;
        }
        
        .contact-card .btn {
            flex-shrink: 0;
            margin-top: auto;
        }

/* Hide h4 subtitle on mobile devices and resize h2 and button */
@media (max-width: 768px) {
    .in-sv-hero-content .headline-sv {
        margin-top: -30px;
    }
    
    .in-sv-hero-content .headline-sv h2 {
        display: none !important;
    }
    
    .in-sv-hero-content .in-sv-cta-btn a {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }
}

@media (max-width: 480px) {
    .in-sv-hero-content .headline-sv {
        margin-top: -70px;
    }
    
    .in-sv-hero-content .in-sv-cta-btn a {
        font-size: 0.85rem !important;
        padding: 8px 18px !important;
    }
}
        




        