/* Global Styles */
:root {
  --main-color: #002b45;
  --main2-color: #475569;
}

body {
  direction: rtl;
  font-family: "Cairo", sans-serif;
}

.container-max {
  max-width: 1375px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.container-max.no-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Desktop/Mobile Navigation */
@media (min-width: 1024px) {
  .mobile-only {
    display: none;
  }
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: white;
  z-index: 50;
  padding-top: 6rem;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu.active {
  right: 0;
}

/* Radio Button Styles */
input[type="radio"]:checked + .radio-check {
  width: 1rem;
  height: 1rem;
  background-color: var(--main-color);
  border-radius: 50%;
}

/* Checkbox Styles */
.checkbox {
  appearance: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--main-color);
  border-radius: 0.375rem;
  position: relative;
  cursor: pointer;
}

.checkbox:checked {
  background-color: var(--main-color);
  border-color: transparent;
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.75rem;
  height: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Counter Button Styles */
.counter-btn {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: var(--main-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.counter-btn:hover {
  background-color: #001f33;
}

/* Phone Input Styles */
.iti {
  width: 100%;
  direction: ltr;
}

.iti__flag-container {
  right: 0;
  left: auto;
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: transparent;
  padding: 0 6px 0 8px;
}

.iti__selected-flag {
  padding-left: 6px;
}

input[type="tel"] {
  padding-right: 85px !important;
  padding-left: 6px !important;
  text-align: right;
}

/* Form Field Styles */
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--main-color);
}

/* File Upload Styles */
#uploadedFiles {
  min-height: 2rem;
}

/* Service Counter Styles */
.service-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Content Styles */
.maincontent {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Pricing Table Styles */
.pricing-table {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Form Styles */
#bookingForm {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* RTL Specific Styles */
[dir="rtl"] .iti__flag-container {
  right: auto;
  left: 0;
}

[dir="rtl"] input[type="tel"] {
  padding-right: 6px !important;
  padding-left: 85px !important;
}

/* FAQ Accordion Styles */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--main-color);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--main-color);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-question.active {
  background-color: var(--main-color);
  color: white;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f8fafc;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer p {
  padding: 1rem 1.5rem;
  margin: 0;
  color: var(--main2-color);
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .container-max {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .maincontent {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #bookingForm {
    padding: 1rem;
  }
}

.reveal_animation {
  opacity: 0;
  animation: reveal 0.5s ease-out forwards;
  transition: all 0.5s ease-out;
}

* {
  scroll-behavior: smooth;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@keyframes reveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Define the animation */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Apply the animation to the element */
.rotating-element {
  animation: rotate 5s linear infinite;
}

.heading {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700; /* font-[700] */
  color: #002b45; /* text-main */
}

@media (min-width: 1024px) {
  .heading {
    font-size: 2.5rem; /* lg:text-[40px] */
  }
}

.extraspace {
  margin-top: 1.5rem; /* mt-6 */
}

@media (min-width: 1024px) {
  .extraspace {
    margin-top: 3rem; /* lg:mt-12 */
  }
}

.card {
  background-color: #f2f2f2; /* bg-[#F2F2F2] */
  color: #002b45; /* text-main */
  border-radius: 1rem; /* rounded-2xl */
  padding-top: 2.625rem; /* py-[42px] */
  padding-bottom: 2.625rem;
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .card {
    padding-left: 3rem; /* lg:px-12 */
    padding-right: 3rem;
  }
}

.mini-heading {
  font-weight: 700; /* font-[700] */
  color: #002b45; /* text-main */
  font-size: 1rem; /* text-base */
}

@media (min-width: 1024px) {
  .mini-heading {
    font-size: 1.25rem; /* lg:text-xl */
  }
}

.main-flex {
  display: flex; /* flex */
  align-items: center; /* items-center */
  gap: 0.75rem; /* gap-3 */
}

@media (min-width: 1024px) {
  .main-flex {
    gap: 1.5rem; /* lg:gap-6 */
  }
}

.main-col {
  display: flex; /* flex */
  flex-direction: column; /* flex-col */
  gap: 1rem; /* gap-4 */
}

@media (min-width: 1024px) {
  .main-col {
    gap: 2.25rem; /* lg:gap-9 */
  }
}

.paragraph {
  font-size: 1rem; /* text-base */
  color: #475569; /* text-main2 */
  font-weight: 400; /* font-[400] */
}

.default-button {
  background-color: #002b45; /* bg-main */
  color: white; /* text-white */
  font-size: 1rem; /* text-base */
  padding-left: 1.75rem; /* px-7 */
  padding-right: 1.75rem;
  padding-top: 0.55rem; /* py-3 */
  padding-bottom: 0.55rem;
  border-radius: 9999px; /* rounded-full */
  transition-property: background-color, color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms; /* duration-200 */
}

@media (min-width: 768px) {
  .default-button {
    padding-left: 0.75rem; /* md:px-3 */
    padding-right: 0.75rem;
    padding-top: 0.75rem; /* md:py-3 */
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .default-button {
    padding-left: 3rem; /* lg:px-12 */
    padding-right: 3rem;
    padding-top: 0.75rem; /* lg:py-3 */
    padding-bottom: 0.75rem;
  }
}

.group:hover .default-button {
  background-color: white; /* group-hover:bg-white */
  color: #002b45; /* group-hover:text-main */
}

/* Custom border style for paragraphs */
.paragraph-border {
  border-right: 6px solid #002b45;
  padding-right: 1rem;
}

/* Icon hover styles */
.service-icon {
  color: #002b45;
  transition: color 0.3s ease;
}

.group:hover .service-icon {
  color: white;
}

/* Map Styles */
#map {
  height: 100%;
  width: 100%;
  z-index: 1;
}

.leaflet-container {
  height: 100%;
  width: 100%;
}

.leaflet-control-attribution {
  direction: ltr;
}

.leaflet-popup-content {
  direction: rtl;
  text-align: right;
}

/* Map Modal Styles */
#mapModal {
  direction: rtl;
}

#mapSearchInput {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

#searchResults {
  max-height: 300px;
  overflow-y: auto;
}

#searchResults::-webkit-scrollbar {
  width: 8px;
}

#searchResults::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#searchResults::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.hover\:bg-main:hover p {
  color: #b8b8b8;
}