/* =======================================================
   ✨ الحل النهائي: منع التمرير على الخلفية عند ظهور الـ Modal
   ======================================================= */
body.no-scroll {
    overflow: hidden !important;
}

/* BASE & RESET STYLES */
body, html { margin: 0; padding: 0; font-family: 'Inter', 'Poppins', 'Raleway', 'Arial', sans-serif; background: #000; color: #fff; overflow-x: hidden; }
*, *:before, *:after { box-sizing: border-box; }
a { color: #fff; text-decoration: none; }
:root { --brand-blue: #00BFFF; --brand-gold: #FFD700; --brand-white: #FFFFFF; --glass-border: 1px solid rgba(255, 255, 255, 0.18); }

/* CAROUSEL WRAPPER STYLES (Desktop Mode Default) */
#fullpage-carousel-wrapper { 
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 1; 
    width: 600vw; 
    height: 100vh; 
    display: flex; 
    flex-direction: row; 
    transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1); 
}
.carousel-section { 
    width: 100vw; 
    height: 100vh; 
    flex-shrink: 0; 
    overflow: hidden; 
}

/* Fix for Google Translate Banner Conflict */
body { top: 0 !important; position: relative !important; }
.goog-te-banner-frame { display: none !important; }

/* =========================================
   1. Contact Section & Clients Styles
   ========================================= */
#contact-section .main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
}
#contact-section .background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    filter: blur(8px);
    -webkit-filter: blur(8px);
}
#contact-section .video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}
#contact-section .clients-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    padding: 2rem;
    text-align: center;
    transition: filter 1.2s ease-in-out, transform 1.2s ease-in-out;
}
#contact-section .clients-content.blurred {
    filter: blur(12px) brightness(40%);
    transform: scale(0.95);
}
#contact-section .clients-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
#contact-section .client-row {
    display: flex;
    justify-content: center;
    align-items: center;
}
#contact-section .client-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}
#contact-section .client-item img {
    height: 95px;
    object-fit: contain;
    filter: brightness(0) invert(1) grayscale(1);
    opacity: 0.6;
    transition: all 0.4s ease-out;
}
#contact-section .client-item:hover img {
    opacity: 1;
    filter: none;
    transform: scale(1.1);
}
#contact-section .section-title {
    position: absolute;
    bottom: 60px;
    left: 47px;
    z-index: 5;
    text-align: left;
}
#contact-section .section-title h1 {
    font-family: 'Racing Sans One', cursive;
    font-size: 55px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    transition: opacity 0.4s ease-in-out;
}
#contact-section .contact-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
}
#contact-section .contact-container {
    width: 100%;
    max-width: 1152px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 160px;
}
#contact-section .contact-info-col, #contact-section .contact-form-col {
    opacity: 0;
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
#contact-section .contact-info-col {
    transform: translateX(-100%);
}
#contact-section .contact-form-col {
    transform: translateX(100%);
}
#contact-section .contact-info-col.is-visible, #contact-section .contact-form-col.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   2. Form Elements & Buttons Styles
   ========================================= */
.form-input, #bookingModal .form-input, #complaintModal .form-input {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #6b7280 !important;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: white;
    transition: border-color 0.3s;
    border-radius: 0;
}
.form-input:focus, #bookingModal .form-input:focus, #complaintModal .form-input:focus {
    outline: none;
    border-bottom-color: #ffffff !important;
}
.form-input-error {
    border-bottom-color: #ef4444 !important;
}
.form-select, #bookingModal .form-select, #complaintModal .form-select {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #6b7280 !important;
    color: white;
    padding-right: 2rem;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}
.form-select:focus, #bookingModal .form-select:focus, #complaintModal .form-select:focus {
    outline: none;
    border-bottom-color: #ffffff !important;
}
select option {
    background: #1f2937;
    color: white;
}
.form-button, #bookingModal .form-button, #complaintModal .form-button, #bookingModal .time-slot {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: background-color 0.3s, opacity 0.3s;
}
.form-button:hover, #bookingModal .form-button:hover, #complaintModal .form-button:hover, #bookingModal .time-slot:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}
.form-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-textarea, #bookingModal .form-textarea, #complaintModal .form-textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: white;
    transition: border-color 0.3s;
}
.form-textarea:focus, #bookingModal .form-textarea:focus, #complaintModal .form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}
.spinner {
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   3. Booking Modal & Flatpickr Styles
   ========================================= */
#bookingModal, 
#complaintModal {
    transition: opacity 0.3s ease;
}
#bookingModal .modal-content, 
#complaintModal .modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.95);
    opacity: 0;
}
#bookingModal .modal-content.active, 
#complaintModal .modal-content.active {
    transform: scale(1);
    opacity: 1;
}
.flatpickr-calendar {
    background: transparent;
    border: none;
    color: white;
    width: 100% !important;
    box-shadow: none !important;
}
.flatpickr-month {
    color: white;
    fill: white;
}
.flatpickr-weekday {
    color: #9ca3af;
    font-weight: 500;
}
.flatpickr-day {
    color: white;
    border: 1px solid transparent;
    font-weight: 400;
}
.flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}
.flatpickr-day.today {
    border-color: #6b7280;
}
.flatpickr-day.selected {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.flatpickr-day.flatpickr-disabled {
    color: rgba(255, 255, 255, 0.2);
}
#bookingModal .numInputWrapper span, #bookingModal .flatpickr-time {
    display: none !important;
}
#bookingModal .time-slot.selected {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* =======================================================
   ✨ (النسخة النهائية والمعدلة) تعديلات شاملة لنسخة الموبايل
 ======================================================= */
@media (max-width: 991px) {
    /* --- 1. تحويل السلايدر إلى تمرير عمودي --- */
    #fullpage-carousel-wrapper {
        position: static; 
        width: 100vw; 
        height: auto; 
        display: block; 
        transform: none !important; 
        transition: none !important; 
    }
    .carousel-section { 
        width: 100vw; 
        height: auto; 
        min-height: 100vh;
        flex-shrink: 0; 
        overflow: visible;
        padding-top: 0; 
        padding-bottom: 0; 
    }
    body, html {
        overflow-x: hidden;
        overflow-y: auto !important; 
    }

    /* --- 2. تعديلات قسم التواصل (ليناسب الشاشة كاملة) --- */
    #contact-section .main-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #contact-section .section-title {
        order: 1; 
        position: static;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    #contact-section .clients-content {
        order: 2; 
        display: block !important; 
        position: static;
        opacity: 1;
        filter: none;
        transform: none;
        width: 100%;
    }
    #contact-section .client-row {
        flex-wrap: wrap;
        gap: 20px;
    }
    #contact-section .contact-overlay {
        order: 3;
        position: static;
        pointer-events: auto;
        padding: 0;
        margin-top: 1.5rem;
        width: 100%; 
    }

    #contact-section .section-title h1 { font-size: 2rem; }
    
    #contact-section .client-item {
        flex-basis: 28%;
        flex-grow: 1;
        max-width: 31%;
        padding: 0 8px;
    }
    #contact-section .client-item img {
        height: 70px;
        width: 100%;
    }

    #contact-section .contact-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    #contact-section .contact-info-col,
    #contact-section .contact-form-col {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    #contact-section .contact-form-col { order: 1; }
    #contact-section .contact-info-col { order: 2; }
    
    .contact-heading-mobile {
        font-family: 'Raleway', sans-serif;
        font-weight: 700;
        font-size: 1.5rem;
        text-transform: uppercase;
        color: #fff;
        text-align: center;
        margin-bottom: 1rem;
    }

    #contact-section .contact-info-col h2:not(.contact-heading-mobile) { display: none; }
    
    #contact-section .clients-content.blurred {
        filter: none;
        transform: none;
    }

    /* ✨ (توحيد تصميم الموديل) تعديل ليناسب شاشة الموبايل */
    #bookingModal .modal-content, 
    #complaintModal .modal-content {
        position: relative;
        width: 95vw;
        max-width: 450px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 1.75rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    #complaintModal .modal-content {
         max-width: 550px;
    }

    /* ✨ (توحيد تصميم الموديل) زر إغلاق الموديل على الموبايل */
    #bookingModal #closeBookingModalBtn, 
    #complaintModal #closeComplaintModalBtn {
        position: absolute; 
        top: 12px;          
        right: 12px;         
        z-index: 55;
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        border-radius: 50%; 
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
        transition: background-color 0.3s ease;
    }
    
    #bookingModal #closeBookingModalBtn:hover, 
    #complaintModal #closeComplaintModalBtn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    
    @media (max-width: 400px) {
      .contact-info-col .flex {
        flex-direction: column;
      }
      .contact-info-col .flex .w-1\/2 {
        width: 100%;
      }
    }
}


/* ================================================
   FLOATING ACTION BUTTON (FAB) STYLES - مُلصق ومرتفع
================================================ */

/* Desktop styles */
.binghatti-floating {
  position: fixed;
  bottom: 100px;
  right: -10px; 
  display: flex;
  flex-direction: column;
  gap: 10px; 
  z-index: 9999;
}
.binghatti-floating a,
.translate-btn {
  width: 70px; 
  height: 32px; 
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 8px; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
  color: white;
  cursor: pointer;
  position: relative;
}
.binghatti-floating a:hover,
.translate-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 102, 0, 0.15);
}
.binghatti-floating a img,
.translate-btn > img {
  width: 18px; 
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Menus Styling (Language Menu) */
.language-menu {
  position: absolute;
  top: 50%;
  right: 105%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row-reverse;
  gap: 8px; 
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.language-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(-25px); 
}
.language-menu a {
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  width: 30px; 
  height: 30px;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.language-menu a:hover {
  transform: scale(1.15);
}
.language-menu a img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.3); 
  filter: none !important;
}

/* Mobile Version */
@media (max-width: 768px) {
  .binghatti-floating {
    flex-direction: column;
    right: -5px; 
    bottom: 60px;
    gap: 6px;
    left: auto; 
  }
  .binghatti-floating a,
  .translate-btn {
    width: 60px; 
    height: 28px;
    border-radius: 6px;
  }
  .binghatti-floating a img,
  .translate-btn > img {
    width: 16px; 
    height: 16px;
  }
  .language-menu {
    right: 105%;
    gap: 6px;
  }
  .language-menu.show {
      transform: translateY(-50%) translateX(-15px); 
  }
  .language-menu a {
    width: 32px; 
    height: 32px; 
  }
}

