.contact-section {
  display: flex;
  min-height: 100vh;
}

.slider-container {
  img {
    max-height: 100vh;
    object-fit: cover;
  }
}

.form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .form-wrapper {
    width: 100%;
    max-width: 695px;
    min-height: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
  }
}
.contact-section {
  display: flex;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1 1;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.contact-form button {
  padding: 12px 20px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #45a049;
}

.slider-container {
  max-width: 100%;
  background: white;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 300%; /* 3 images = 300% */
  height: 100%;
  display: flex;
  animation: slideShow3Images 12s infinite; /* 12 seconds total cycle */
}

.slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.slide img {
  width: 100%;
  min-height: 100vh;
  display: block;
}

@keyframes slideShow3Images {
  /* Image 1 - Show for 4 seconds */
  0% {
    transform: translateX(0%);
    opacity: 1;
  }
  30% {
    transform: translateX(0%);
    opacity: 1;
  }

  /* Slide to Image 2 */
  33.33% {
    transform: translateX(-33.333%);
    opacity: 1;
  }
  63.33% {
    transform: translateX(-33.333%);
    opacity: 1;
  }

  /* Slide to Image 3 */
  66.66% {
    transform: translateX(-66.666%);
    opacity: 1;
  }
  83.33% {
    transform: translateX(-66.666%);
    opacity: 1;
  }

  /* Stay on Image 3 but start fading */
  91.66% {
    transform: translateX(-66.666%);
    opacity: 0.5;
  }

  /* Continue fading while staying on Image 3 */
  95.83% {
    transform: translateX(-66.666%);
    opacity: 0.1;
  }

  /* Fade to black then jump back to Image 1 */
  99.99% {
    transform: translateX(-99.666%);
    opacity: 0;
  }

  /* Jump back to Image 1 and fade in */
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

.slides-smooth .slide {
  width: 25%;
}

@keyframes slideShowSmooth {
  0% {
    transform: translateX(0%);
  }
  25% {
    transform: translateX(0%);
  }
  33.33% {
    transform: translateX(-25%);
  }
  58.33% {
    transform: translateX(-25%);
  }
  66.66% {
    transform: translateX(-50%);
  }
  83.33% {
    transform: translateX(-50%);
  }
  91.66% {
    transform: translateX(-75%);
    opacity: 1;
  }
  95.83% {
    transform: translateX(-75%);
    opacity: 0.3;
  }
  100% {
    transform: translateX(-75%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-control {
  background-color: transparent;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  transition: all 0.2s ease;

  &:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(242, 99, 54, 0.25);
  }
}

textarea.form-control {
  min-height: 120px !important;
}

@media (max-width: 991.98px) {
  .contact-swiper,
  .swiper-slide img,
  .hero-title,
  .hero-subtitle {
    display: none !important;
  }
}
@media (max-width: 575.98px) {
  .form-section {
    padding: 1rem !important;
  }
}

@media (min-width: 992px) {
  .slider-container {
    max-width: 486px;
  }
}
@media (min-width: 1200px) {
  .slider-container {
    max-width: 560px;
  }
}
@media (min-width: 1700px) {
  .section-btn {
    font-size: 28px;
    margin-top: 23px !important;
  }
  .form-title {
    font-size: 52px !important;
  }
  .form-control {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  .back-btn {
    font-size: 20px !important;
    font-weight: 500;
  }
  .slider-container {
    max-width: 886px;
  }
}
/* Flip icons for RTL using --icon-flip variable */
.back-button img,
.back-btn img {
  transform: scaleX(var(--icon-flip, 1));
}
