/* Arabic Fonts */
@font-face {
  font-family: "Alqalam";
  src: url("../fonts/alqalam.ttf") format("truetype");
  font-weight: normal;
  font-display: swap;
}

/* English Fonts */
@font-face {
  font-family: "Emperatriz";
  src: url("../fonts/Emperatriz-Bold.otf") format("opentype");
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: "Emperatriz";
  src: url("../fonts/Emperatriz-Regular.otf") format("opentype");
  font-weight: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-brown: #74583c;
  --premium-blue: #8795B0;
  --pale-beige: #d5b4a0;
  --cycladic-white: #fdfcfa;
  --sea-glass: #a8c4b0;
  --champagne: #f7e7ce;
  --soft-blush: #f4e6e1;
  --text-dark: #2c2c2c;
  --text-light: #666;
}

body {
  font-family: "Emperatriz", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--cycladic-white);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(135, 149, 176, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 101;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.language-toggle button {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.language-toggle button.active {
  background: var(--premium-blue);
  color: white;
}

/* Specific font families for language buttons */
.language-toggle button:first-child {
  font-family: "Emperatriz", serif;
  font-weight: 600;
}

.language-toggle button:last-child {
  font-family: "Alqalam", serif;
  font-weight: normal;
  font-size: 1.5rem;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--cycladic-white) 0%,
    var(--champagne) 100%
  );
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="arch" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M0 20V10a10 10 0 0 1 20 0v10" fill="none" stroke="%23d5b4a0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23arch)"/></svg>')
    repeat;
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
  position: relative;
}

.hero-text h1 {
  font-family: "Emperatriz", "Crimson Text", serif;
  font-size: 4.5rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-brown), var(--premium-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero-text .tagline {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text .subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  max-width: 500px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-primary {
  background: var(--premium-blue);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(135, 149, 176, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(135, 149, 176, 0.5);
  background: linear-gradient(135deg, var(--premium-blue), var(--primary-brown));
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.hero-visual {
  background: linear-gradient(135deg, var(--soft-blush), var(--pale-beige));
  border-radius: 30px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  animation: fadeInRight 1s ease-out 0.3s both;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.trust-indicators {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.8s both;
  justify-content: flex-start;
}

.trust-item {
  text-align: center;
  opacity: 0.7;
}

.trust-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-brown);
  display: block;
}

.trust-item .label {
  font-size: 0.9rem;
  color: var(--text-light);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section {
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-title {
  font-family: "Emperatriz", "Crimson Text", serif;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--premium-blue);
  font-weight: bold;
  line-height: 1.1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  justify-items: center;
}

.services-grid .service-card {
  max-width: 1200px;
  width: 100%;
}

.service-card {
  background: linear-gradient(135deg, var(--cycladic-white), var(--champagne));
  border-radius: 30px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(135, 149, 176, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-brown), var(--sea-glass));
}

.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.service-card:hover::after {
  top: -20%;
  right: -20%;
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 80px rgba(135, 149, 176, 0.15);
  border-color: rgba(135, 149, 176, 0.4);
}

.service-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.service-image {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--pale-beige), var(--champagne));
  position: relative;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-brown);
  background: linear-gradient(135deg, var(--soft-blush), var(--pale-beige));
}

.service-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(116, 88, 60, 0.1) 100%
  );
  pointer-events: none;
}

/* Fallback styling for when icons don't load */
[data-feather]:empty::before {
  content: "●";
  font-size: 24px;
  color: var(--primary-brown);
}

.usp-icon i:empty::before {
  content: "✦";
  font-size: 48px;
  color: var(--primary-brown);
}

.service-icon svg,
.service-item-icon svg {
  display: block;
}

/* Ensure icons have proper dimensions even when loading */
.service-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-brown), #8b6f47);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2.5rem;
  box-shadow: 0 20px 50px rgba(116, 88, 60, 0.5);
  position: relative;
  transform: rotate(-3deg);
}
.service-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  pointer-events: none;
}
.service-icon img {
  width: 65px;
  height: 65px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
  font-family: "Emperatriz", "Crimson Text", serif;
  font-size: 2.4rem;
  margin: 0;
  color: var(--primary-brown);
  line-height: 1.2;
  font-weight: bold;
}

.service-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.service-grid-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  justify-items: center;
  align-items: center;
}

.service-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(213, 180, 160, 0.2);
  width: 200px;
  height: 120px;
  box-sizing: border-box;
  text-align: center;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
  border-color: var(--primary-brown);
}

.service-item-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-brown), #8b6f47);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 20px rgba(116, 88, 60, 0.3);
}
.service-item-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  pointer-events: none;
}
.service-item-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.service-item-text {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.3;
}

.doctors-section {
  background: linear-gradient(135deg, var(--cycladic-white), var(--champagne));
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doctors-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(116, 88, 60, 0.05) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(213, 180, 160, 0.1) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  justify-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.doctor-card {
  background: var(--cycladic-white);
  border-radius: 30px;
  padding: 0;
  text-align: left;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 500px;
  display: grid;
  grid-template-columns: 400px 1fr;
}

.doctor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-brown),
    var(--sea-glass),
    var(--primary-brown)
  );
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.05);
}

.doctor-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 30px 0 0 30px;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.doctor-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--pale-beige), var(--champagne));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
}

.doctor-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.doctor-content {
  padding: 3rem;
  position: relative;
}

.doctor-header {
  position: relative;
  margin-bottom: 2rem;
}

.celebrity-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--premium-blue);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(116, 88, 60, 0.3);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctor-name-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  color: white;
  z-index: 5;
}

.doctor-name-overlay h3 {
  font-family: "Emperatriz", "Crimson Text", serif;
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: bold;
}

.doctor-name {
  font-family: "Emperatriz", "Crimson Text", serif;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-brown);
  font-weight: bold;
  text-align: left;
}

.doctor-title {
  background: var(--primary-brown);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.doctor-specialty {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
  text-align: left;
  font-weight: 400;
  line-height: 1.4;
}

.doctor-highlights {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.highlight-item {
  background: linear-gradient(135deg, var(--champagne), var(--pale-beige));
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-brown);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doctor-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: left;
  background: rgba(116, 88, 60, 0.05);
  padding: 1rem;
  border-radius: 15px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-brown);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.results-section {
  margin: 4rem 0;
  text-align: center;
}

.results-card {
  background: var(--premium-blue);
  color: white;
  border-radius: 40px;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.results-section .section-title {
  color: white;
  text-align: center;
}

.testimonials-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-container {
  overflow: hidden;
  border-radius: 25px;
  margin-bottom: 3rem;
  width: 100%;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .testimonials-track .testimonial {
    min-width: calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
    margin: 0 0.5rem;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .testimonials-track .testimonial {
    min-width: calc(100% - 1rem);
    flex: 0 0 calc(100% - 1rem);
    margin: 0 0.5rem;
    box-sizing: border-box;
  }
}

.testimonials-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonials-prev,
.testimonials-next {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonials-prev:hover,
.testimonials-next:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--champagne);
  transform: scale(1.3);
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Keep legacy grid for fallback */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  max-width: 400px;
  width: 100%;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  color: var(--champagne);
  position: absolute;
  top: 15px;
  left: 10%;
  transform: translateX(-50%);
  font-family: "Crimson Text", serif;
  z-index: 1;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  padding: 4rem 2.5rem 0 2.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.testimonial-author {
  color: var(--champagne);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2.5rem 2.5rem 2.5rem;
}

@media (max-width: 767px) {
  .testimonial-author {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .testimonial-author .testimonial-stars {
    margin: 0;
    font-size: 1.2rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
    padding: 4rem 1.5rem 0 1.5rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
}

.testimonial-stars {
  color: #ffd700;
  margin-left: 0.5rem;
}

.booking-section {
  background: linear-gradient(135deg, var(--primary-brown), #8b6f47);
  border-radius: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.booking-section .section {
  padding: 3rem 1rem;
}

.booking-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.booking-section .section-title {
  color: white;
}

.booking-section p {
  color: rgba(255, 255, 255, 0.9);
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 2rem auto 0;
  max-width: 1400px;
  position: relative;
  z-index: 2;
}

.booking-image {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pale-beige), var(--champagne));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.booking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.booking-image:hover img {
  transform: scale(1.05);
}

.booking-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-group label {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  z-index: 1;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label,
.form-group.has-value label {
  transform: translateY(-1.5rem) scale(0.9);
  color: var(--primary-brown);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(116, 88, 60, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(116, 88, 60, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  text-align: center;
  margin-top: 1rem;
}

.form-submit .cta-primary {
  width: 100%;
  max-width: 300px;
}

/* Select label background when empty and not focused */
.form-group:not(.has-value) select:not(:focus) + label {
  background: white;
}

/* Select label background in error state */
.form-group.error:not(.has-value) select:not(:focus) + label {
  background: rgba(231, 76, 60, 0.05);
}

/* Select label background in success state */
.form-group.success:not(.has-value) select:not(:focus) + label {
  background: rgba(39, 174, 96, 0.05);
}

/* Force LTR for phone and email inputs */
#phone,
#email {
  direction: ltr !important;
  text-align: left !important;
}

/* Ensure LTR inputs work properly in RTL context */
[dir="rtl"] #phone,
[dir="rtl"] #email {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 0.8rem !important;
  padding-right: 0.8rem !important;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.error label {
  color: #e74c3c;
}

.form-error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  margin-left: 0.8rem;
  display: none;
  animation: errorSlideIn 0.3s ease;
}

.form-group.error .form-error-message {
  display: block;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #27ae60;
  background-color: rgba(39, 174, 96, 0.05);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group.success label {
  color: #27ae60;
}

/* RTL Error Messages */
[dir="rtl"] .form-error-message {
  margin-left: 0;
  margin-right: 0.8rem;
  text-align: right;
}

@media (max-width: 768px) {
  .booking-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 1.5rem 0rem 0;
  }

  .booking-image {
    height: 200px;
    order: -1;
  }

  .booking-form {
    padding: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

.footer-info {
  background: var(--text-dark);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.usp-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--cycladic-white), var(--soft-blush));
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(135, 149, 176, 0.15);
}

.usp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(135, 149, 176, 0.2);
  border-color: rgba(135, 149, 176, 0.3);
}

.usp-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 15px;
}

.usp-icon img {
  width: 60px;
  height: 60px;
  opacity: 0.8;
}

.usp-icon {
  color: var(--sea-glass);
}

.usp-icon svg {
  fill: var(--sea-glass);
  stroke: var(--sea-glass);
}

.usp-icon img {
  width: 60px;
  height: 60px;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(37%) sepia(22%) saturate(1000%)
    hue-rotate(359deg) brightness(95%) contrast(89%);
}

.usp-item h4 {
  color: var(--primary-brown);
  font-weight: 600;
  margin-bottom: 1rem;
}

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  animation: pulse 2s infinite;
  border: 2px solid rgba(135, 149, 176, 0.1);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1024px) {
  .service-grid-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .service-item {
    width: 180px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: 140px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text {
    margin-top: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-grid-items {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .service-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-width: 100% !important;
  }

  .service-card-content {
    padding: 1.5rem;
  }

  .service-grid-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .doctor-image {
    height: auto;
    border-radius: 30px 30px 0 0;
  }

  .doctor-name {
    text-align: center;
  }

  .doctor-specialty {
    text-align: center;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.parallax-element {
  position: absolute;
  opacity: 0.1;
  animation: parallaxFloat 15s ease-in-out infinite;
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

.intersection-observer {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.intersection-observer.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-logo {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 100;
  animation: fadeInLeft 1s ease-out;
}

.hero-logo img {
  height: 80px;
  width: auto;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-section {
  margin: 6rem 0;
  text-align: center;
}

.about-section .section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  text-align: left;
  padding: 2rem;
}

.about-text h3 {
  font-size: 2.5rem;
  color: var(--primary-brown);
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.clinic-slideshow {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  height: 500px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 2rem;
  color: white;
}

.slide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.slide-description {
  font-size: 1rem;
  opacity: 0.9;
}

.slideshow-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: white;
  transform: scale(1.2);
}

.slideshow-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.slideshow-arrows:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.location-section {
  margin: 6rem 0;
  text-align: center;
}

.location-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: stretch;
  margin-top: 4rem;
}

.location-info {
  text-align: left;
  padding: 2rem;
  background: linear-gradient(135deg, var(--cycladic-white), var(--soft-blush));
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.location-info h3 {
  font-family: "Crimson Text", serif;
  font-size: 2.5rem;
  color: var(--primary-brown);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-brown), #8b6f47);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
}

.contact-details h4 {
  color: var(--primary-brown);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.contact-details a {
  color: var(--primary-brown);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hours-item {
  background: rgba(116, 88, 60, 0.05);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.hours-day {
  font-weight: 600;
  color: var(--primary-brown);
  margin-bottom: 0.5rem;
}

.hours-time {
  color: var(--text-dark);
  font-size: 0.9rem;
}

.map-container {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  height: 100%;
  min-height: 400px;
  width: 100%;
  background: linear-gradient(135deg, var(--pale-beige), var(--champagne));
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-brown);
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  transform: scale(1.05);
}

.map-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.map-placeholder h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-brown);
}

.map-placeholder p {
  color: var(--text-light);
  margin: 0;
}

.map-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
}

.map-loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--champagne);
  border-top: 3px solid var(--primary-brown);
  border-radius: 50%;
  animation: premiumSpin 1.5s linear infinite;
  box-shadow: 0 4px 20px rgba(116, 88, 60, 0.2);
}

@keyframes premiumSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 30px;
}

.location-cta {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text {
    text-align: center;
  }

  .clinic-slideshow {
    height: 300px;
  }

  .hero-logo {
    top: 15px;
    left: 15px;
  }

  .hero-logo img {
    height: 50px;
  }

  .language-toggle {
    top: 15px;
    right: 15px;
    padding: 6px;
  }

  .language-toggle button {
    padding: 6px 12px;
    font-size: 0.95rem;
  }
  
  .language-toggle button:last-child {
    font-size: 1.35rem;
  }

  .location-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location-info {
    text-align: center;
    padding: 2rem;
  }

  .map-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-top: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-text .tagline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-text .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-logo img {
    height: 45px;
  }

  .language-toggle {
    top: 12px;
    right: 12px;
    padding: 4px;
  }

  .language-toggle button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .language-toggle button:last-child {
    font-size: 1.25rem;
  }
}

/* ====================================
   RTL/LTR Language Support
   ==================================== */

/* RTL Layout for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .language-toggle {
  left: 20px;
  right: auto;
}

[dir="rtl"] .hero::before {
  left: 0;
  right: auto;
}

[dir="rtl"] .hero-content {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

[dir="rtl"] .hero-text {
  order: 1;
  text-align: right;
}

[dir="rtl"] .hero-visual {
  order: 2;
}

[dir="rtl"] .hero-logo {
  text-align: right;
}

/* Fix logo positioning for RTL */\n[dir="rtl"] .hero-logo {\n  left: auto !important;\n  right: 30px !important;\n}\n\n[dir="rtl"] .trust-indicators {
  direction: rtl;
}

[dir="rtl"] .usp-grid,
[dir="rtl"] .services-grid,
[dir="rtl"] .doctors-grid {
  direction: rtl;
}

[dir="rtl"] .service-card-content,
[dir="rtl"] .doctor-content {
  text-align: right;
}

[dir="rtl"] .service-card-header {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .doctor-header {
  text-align: right;
}

[dir="rtl"] .doctor-highlights,
[dir="rtl"] .doctor-stats {
  direction: rtl;
}

[dir="rtl"] .highlight-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .highlight-item i {
  margin-left: 8px;
  margin-right: 0;
}

[dir="rtl"] .testimonials-grid {
  direction: rtl;
}

[dir="rtl"] .testimonial {
  text-align: right;
}

[dir="rtl"] .testimonial::before {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

[dir="rtl"] .testimonial-text {
  padding: 4rem 2.5rem 0 2.5rem;
  text-align: center;
}

[dir="rtl"] .testimonial-author {
  padding: 0 2.5rem 2.5rem 2.5rem;
}

[dir="rtl"] .testimonials-track {
  direction: ltr;
}

/* Fix arrow icons directions in RTL mode - prevent them from flipping */
[dir="rtl"] .slideshow-arrows svg,
[dir="rtl"] .slideshow-arrows i,
[dir="rtl"] .testimonials-prev svg,
[dir="rtl"] .testimonials-prev i,
[dir="rtl"] .testimonials-next svg,
[dir="rtl"] .testimonials-next i {
  transform: scaleX(-1);
}

/* Maintain proper transforms for slideshow arrows in RTL */
[dir="rtl"] .slideshow-arrows.prev {
  transform: translateY(-50%);
}

[dir="rtl"] .slideshow-arrows.next {
  transform: translateY(-50%);
}

[dir="rtl"] .slideshow-arrows:hover {
  transform: translateY(-50%) scale(1.1);
}

/* For testimonials arrows - maintain hover effects */
[dir="rtl"] .testimonials-prev:hover,
[dir="rtl"] .testimonials-next:hover {
  transform: scale(1.1);
}

[dir="rtl"] .location-content {
  direction: rtl;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .contact-item:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .contact-icon {
  margin-left: 1.5rem;
  margin-right: 0;
}

[dir="rtl"] .contact-details {
  text-align: right;
  direction: rtl;
  width: 100%;
}

[dir="rtl"] .contact-details p {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .booking-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .booking-form {
  text-align: right;
}

[dir="rtl"] .form-group {
  text-align: right;
}

[dir="rtl"] .form-group label {
  right: 0.8rem;
  left: auto;
}


[dir="rtl"] .form-group input:not(#phone):not(#email),
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  text-align: right;
  padding-right: 1rem;
  padding-left: 3rem;
}

/* Arabic Typography */
[dir="rtl"] body {
  font-family: "Tajawal", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

[dir="rtl"] .hero-text h1 {
  font-family: "Alqalam", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  font-size: 3.5rem;
}

[dir="rtl"] h3 {
  font-family: "Alqalam", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

[dir="rtl"] a, [dir="rtl"] button {
  font-family: "Alqalam", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

[dir="rtl"] .section-title {
  font-family: "Alqalam", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 600;
}

[dir="rtl"] .doctor-name {
  font-family: "Alqalam", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 600;
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .doctor-title {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .doctor-specialty {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .stat-item {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .stat-label {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .doctor-image {
  border-radius: 0 30px 30px 0;
}

/* RTL Slideshow Controls */
[dir="rtl"] .slideshow-arrows.prev {
  right: 20px;
  left: auto;
}

[dir="rtl"] .slideshow-arrows.next {
  left: 20px;
  right: auto;
}

[dir="rtl"] .about-text h3, [dir="rtl"] .about-text p, [dir="rtl"] .about-text div {
  text-align: right;
  align-items: right;
}


[dir="rtl"] .about-text h3 {
  font-family: "Alqalam", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
  [dir="rtl"] .language-toggle {
    left: 12px;
    right: auto;
  }
  
  [dir="rtl"] .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    direction: ltr;
  }
  
  [dir="rtl"] .hero-text {
    text-align: center;
    order: 2;
  }
  
  [dir="rtl"] .hero-visual {
    text-align: center;
    order: 1;
  }
  
  [dir="rtl"] .booking-container {
    flex-direction: column;
  }
}

/* Smooth transitions for language switching */
* {
  transition: text-align 0.3s ease, direction 0.3s ease;
}

.hero-text h1,
.section-title,
.doctor-name {
  transition: font-family 0.3s ease, font-weight 0.3s ease, letter-spacing 0.3s ease;
}

/* Additional RTL Logo Fix */
[dir="rtl"] .hero-logo {
  left: auto !important;
  right: 30px !important;
}

/* Mobile RTL logo fix */
@media (max-width: 480px) {
  [dir="rtl"] .hero-logo {
    left: auto !important;
    right: 12px !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--cycladic-white);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  margin: 20px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 
              0 8px 32px rgba(116, 88, 60, 0.1);
  overflow: hidden;
  border: 1px solid rgba(213, 180, 160, 0.2);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-brown), var(--pale-beige));
  padding: 2rem;
  text-align: center;
  color: white;
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.modal-title {
  font-family: "Emperatriz", serif;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.modal-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.modal-body {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.modal-message {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-details {
  background: var(--soft-blush);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-brown);
}

.modal-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(116, 88, 60, 0.1);
}

.modal-detail-item:last-child {
  border-bottom: none;
}

.modal-detail-label {
  font-weight: 600;
  color: var(--primary-brown);
}

.modal-detail-value {
  color: var(--text-dark);
}

.modal-footer {
  padding: 0 2rem 2rem;
  text-align: center;
}

.modal-close-btn {
  background: linear-gradient(135deg, var(--primary-brown), var(--pale-beige));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: "Emperatriz", serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(116, 88, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-close-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.modal-close-btn:hover::before {
  left: 100%;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(116, 88, 60, 0.4);
}

.modal-close-btn:active {
  transform: translateY(0);
}

/* Close button (X) */
.modal-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  color: white;
  font-size: 1.2rem;
}

.modal-close-x:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* RTL Support for Modal */
[dir="rtl"] .modal-close-x {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .modal-detail-item {
  direction: rtl;
}

[dir="rtl"] .modal-title,
[dir="rtl"] .modal-subtitle,
[dir="rtl"] .modal-message {
  direction: rtl;
  font-family: "Alqalam", serif;
}

/* Mobile Modal Adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    margin: 10px;
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 1.5rem 1rem;
  }
  
  .modal-body {
    padding: 2rem 1.5rem 1rem;
  }
  
  .modal-footer {
    padding: 0 1.5rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
  
  .modal-close-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
}

/* Error Modal Styles */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.error-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.error-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.error-modal-overlay.active .error-modal-content {
  transform: scale(1) translateY(0);
}

.error-modal-header {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  border-radius: 24px 24px 0 0;
}

.error-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.error-modal-title {
  font-family: 'Emperatriz', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: white;
}

.error-modal-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.error-modal-body {
  padding: 2rem;
}

.error-modal-message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.error-modal-footer {
  padding: 1rem 2rem 2rem;
}

.error-modal-close-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.error-modal-close-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.error-modal-close-btn:hover::before {
  left: 100%;
}

.error-modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.error-modal-close-btn:active {
  transform: translateY(0);
}

.error-modal-close-x {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.error-modal-close-x:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

[dir="rtl"] .error-modal-close-x {
  right: auto;
  left: 20px;
}

/* Error Modal Mobile Styles */
@media (max-width: 768px) {
  .error-modal-content {
    max-width: 95%;
    margin: 1rem;
  }
  
  .error-modal-header {
    padding: 2rem 1.5rem 1rem;
  }
  
  .error-modal-body {
    padding: 1.5rem;
  }
  
  .error-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
  
  .error-modal-title {
    font-size: 1.3rem;
  }
  
  .error-modal-close-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
}

/* Call Widget Styles */
.call-widget {
  position: fixed;
  bottom: 110px;
  right: 30px;
  z-index: 1001;
}

.call-button {
  width: 60px;
  height: 60px;
  background: var(--premium-blue);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(135, 149, 176, 0.4);
  transition: all 0.3s ease;
}

.call-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(135, 149, 176, 0.6);
  background: linear-gradient(135deg, var(--premium-blue), var(--primary-brown));
}

.call-button svg {
  width: 30px;
  height: 30px;
  stroke: white;
}

/* WhatsApp Widget Styles */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  border: none;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-form-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.whatsapp-form-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.whatsapp-header {
  background: linear-gradient(135deg, #25d366, #20c75a);
  color: white;
  padding: 1.5rem;
  position: relative;
}

.whatsapp-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.whatsapp-header p {
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.whatsapp-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-close svg {
  width: 16px;
  height: 16px;
}

.whatsapp-form {
  padding: 1.5rem;
}

.whatsapp-form-group {
  margin-bottom: 1rem;
  position: relative;
}

.whatsapp-form-group input,
.whatsapp-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.whatsapp-form-group input:focus,
.whatsapp-form-group textarea:focus {
  outline: none;
  border-color: #25d366;
  background: white;
}

.whatsapp-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.whatsapp-form-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.whatsapp-form-group.error input,
.whatsapp-form-group.error textarea {
  border-color: #dc3545;
}

.whatsapp-form-group.error .whatsapp-form-error {
  display: block;
}

.whatsapp-submit {
  background: linear-gradient(135deg, #25d366, #20c75a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.whatsapp-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.whatsapp-submit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* RTL Support for Arabic */
[dir="rtl"] .whatsapp-form-container {
  right: 0;
  left: auto;
}

[dir="rtl"] .whatsapp-header h3,
[dir="rtl"] .whatsapp-header p {
  text-align: right;
}

[dir="rtl"] .whatsapp-close {
  right: auto;
  left: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .whatsapp-form-container {
    width: 280px;
    bottom: 70px;
    right: 10px;
  }
  
  [dir="rtl"] .whatsapp-form-container {
    right: 10px;
    left: auto;
  }
  
  .call-button {
    width: 50px;
    height: 50px;
  }
  
  .call-button svg {
    width: 25px;
    height: 25px;
  }
  
  .call-widget {
    bottom: 90px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-button svg {
    width: 25px;
    height: 25px;
  }
}

/* Ensure popup doesn't go outside viewport */
@media (max-width: 350px) {
  .whatsapp-form-container {
    width: calc(100vw - 20px);
    right: 10px;
  }
  
  [dir="rtl"] .whatsapp-form-container {
    right: 10px;
    left: auto;
  }
}
