footer {
  background-color: #202e42;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  /* align-items: center; */
  width: 100%;
  height: 80vh;
  /* border: 3px solid red; */
}
.footer-form-container {
  display: flex;
  justify-content: center;
  /* border: blue 3px solid; */
  padding: 10px;
  align-items: center;
}
.form-wrapper {
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-form {
  /* border: 3px solid green; */
  padding: 30px;
  border-radius: 30px;
}
.form_logo {
  /* border: 3px solid black; */
}
.footer_heading {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: center;
}
.footer-form-col-1 {
  /* border: 3px solid orange; */
  display: flex;
  flex-direction: column;
  padding: 0;
  justify-content: center;
}
.footer-form-col-1 h3 {
  font-size: 1.7rem;
  font-weight: bold;
  color: #f15852;
}
.footer-form-col-1 p {
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
  line-height: 1;
}
.footer-form-col-1 span {
  /* border: 1px solid #f15852; */
  font-size: 0.9rem;
  width: 89%;
  opacity: 0.5;
  line-height: 1;
}
.footer-form-col-2 {
  /* border: 3px solid purple; */
}
.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.group1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.group2 {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-inputs .group1 input {
  padding: 15px 0px 15px 30px;
  border-radius: 50px;
  width: 49%;
  background-color: #dadada;
  border: none;
  opacity: 0.5;
}
.form-inputs .group2 input {
  padding: 15px 0px 15px 30px;
  border-radius: 50px;
  background-color: #dadada;
  opacity: 0.5;
  border: none;
}
.group3 {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  position: relative;
}
.group3 textarea {
  padding-left: 30px;
  padding-top: 20px;
  border-radius: 30px;
  height: 65%;
  width: 90%;
  background-color: #dadada;
  border: none;
  opacity: 0.5;
}
.group3 button {
  position: relative;
  padding: 15px 0px 15px 0px;
  border-radius: 50px;
  width: 90%;
  cursor: pointer;
  background-color: transparent;

  border: 2px solid #f15852;
  color: black;
  overflow: hidden;
  z-index: 1;
}

/* Pseudo-element for the gradient background */
.group3 button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(241, 88, 82, 1) 10%,
    rgba(229, 65, 102, 1) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  border-radius: 50px;
}

/* Show the gradient on hover */
.group3 button:hover::before {
  opacity: 1;
}
.group3 button:hover {
  color: white;
}

.footer-links-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  /* border: 3px solid yellow; */
}
.footer-links {
  width: 95%;
  /* border: 3px solid pink; */
  justify-content: space-between;
}
.footer-section {
  padding: 0;
}
.footer-section h5 {
  font-size: 1rem;
  font-weight: bold;
  color: #f15852;
  margin-bottom: 40px;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #f15852;
  text-underline-offset: 6px;
}
/* .footer-section h5::after {
  content: "";
  display: block;
  width: 115px;
  height: 2px;
  background-color: #f15852;
} */
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  font-weight: lighter;
  font-size: 0.9rem;
  color: #ffffff99;
  line-height: 1.5;
}

.right-arrows li {
  position: relative;
  display: block;
}

.right-arrows li::after {
  content: "\2197";
  position: absolute;
  bottom: 0;
  right: 1;
  color: #f15852;
  margin-left: 10px;
  font-size: 16px;
  transition: transform 0.3s ease-out;
  z-index: 3;
}

.footer-section ul li a {
  display: inline-block;
  position: relative;
  color: #ffffff99;
  text-decoration: none;
}
.footer-section ul li a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  border-radius: 5px;
  height: 0.05em;
  bottom: 0;
  left: 0;
  background: currentcolor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.footer-section ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-terms-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 0.9rem;
}
.footer-terms-content {
  display: flex;
  width: 97%;
  position: relative;
}
.footer-terms-content::before {
  content: "";
  top: -120%;
  left: 1%;
  position: absolute;
  width: 97%;
  height: 1px;
  background-color: #ffffff;
}
.footer-terms-content::after {
  content: "";
  top: 220%;
  left: 1%;
  position: absolute;
  width: 97%;
  height: 1px;
  background-color: #ffffff;
}
.footer-terms {
  display: flex;
  align-items: center;
  gap: 70px;
}
.footer-terms li {
  font-weight: lighter;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.5;
  list-style: none;
}

.footer-terms li a {
  display: inline-block;
  position: relative;
  color: #ffffff;
}
.footer-terms li a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  border-radius: 5px;
  height: 0.05em;
  bottom: 0;
  left: 0;
  background: currentcolor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.footer-terms li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.language-selector button {
  padding: 5px;
  border-radius: 5px;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
}

.language-selector button i {
  margin-left: 8px; /* Adds space between the text and the Font Awesome icon */
  color: #f15852;
}

/* This new rule hides the default Bootstrap dropdown icon */
.dropdown-toggle::after {
  display: none;
}
.footer-bottom {
  display: flex;
  width: 95%;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 10px;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid #ffffff2b;
}
.footer-bottom p {
  margin-bottom: 0;
  color: #ffffff99;
  font-size: 0.8rem;
}
.footer-bottom .legal {
  gap: 30px;
}
.footer-bottom li {
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.3s ease;
}
.footer-bottom li:hover {
  color: #f15852;
}
.footer-bottom li a {
  color: white;
  font-size: 0.8rem;
  opacity: 0.5;
}
@media (max-width: 950px) {
  .footer-bottom {
    flex-direction: column;
    padding: 0;
  }
  .footer-bottom .legal {
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .footer-bottom .legal {
    gap: 10px;
    margin-left: -30px;
  }
}
.footer-bottom span {
  color: #f15852;
  font-weight: bold;
}
.footer-bottom button {
  position: absolute;
  right: -10px;
  bottom: 70px;
  width: 50px;
  height: 85px;
  border-radius: 30px;
  /* Add semi-transparent background and backdrop-filter */
  background-color: rgba(201, 201, 201, 0.3);
  backdrop-filter: blur(10px);
  /* Optional: Add a border for a more defined glass effect */
  border: none;
  /* Remove existing transition for a cleaner look */
  transition: background-color 0.3s ease;
  z-index: 99999999;
}
[dir="rtl"] .footer-bottom button {
  right: auto;
  left: 10px; /* flip to left side */
}

.footer-bottom button:hover {
  /* You can still keep your hover effect, but you might want to adjust it */
  background-color: #f15852;
}

.footer-bottom button i {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-icons {
  display: flex;
  gap: 20px;
  font-size: 1.5rem;
  text-decoration: none;
  list-style: none;
}
.social-icons a {
  color: #ffffff99 !important;
  text-decoration: none;
}

.social-icons img {
  width: 25px;
  height: 22px;
  filter: opacity(0.5);
}
.footer-bottom_wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

/* --- Media Queries for Responsiveness --- */

/* Laptops and desktops (max-width: 1199.98px) */
@media (max-width: 1199.98px) {
  .footer-wrapper {
    height: auto;
    padding: 20px 0;
  }

  .form-wrapper {
    /* flex-direction: column; */
    text-align: center;
  }

  .form_logo img {
    max-width: 150px;
    margin-bottom: 20px;
  }

  .footer_heading {
    font-size: 2.5em;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
  }

  .footer-section {
    flex-grow: 1;
    min-width: 150px;
  }
  .footer-bottom button {
    bottom: 45px;
  }
}

/* Tablets (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .form-wrapper {
    width: 100%;
  }

  .footer-links {
    justify-content: space-around;
  }
}

/* Phones (max-width: 767.98px) */
@media (max-width: 767.98px) {
  .footer-links {
    flex-direction: row; /* Change to row to put sections side-by-side */
    flex-wrap: wrap; /* Allow items to wrap if they don't fit on one line */
    justify-content: space-around; /* Distribute items with space between them */
    align-items: flex-start; /* Align items to the top of the container */
    gap: 20px;
    margin-top: 20px;
  }

  .footer-section {
    flex: 1 1 45%; /* Each section takes up to 45% of the space, allowing two per row */
    min-width: 150px; /* Ensure a minimum width to prevent content from getting too squished */
    margin-bottom: 20px;
    text-align: left; /* Align text to the left for better readability in a multi-column layout */
  }

  .footer-section h5 {
    margin-bottom: 10px;
  }

  .footer-links-wrapper {
    padding: 0 10px; /* Add some padding to the wrapper */
  }

  /* .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
  } */

  .footer-bottom p {
    margin-bottom: 10px;
  }

  /* .footer-bottom button {
    position: static;
    margin-top: 10px;
  } */
}
/* Small phones (max-width: 575.98px) */
@media (max-width: 575.98px) {
  .footer_heading {
    font-size: 1.5em;
  }
  .form-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-form-col-1 h3 {
    font-size: 1.5rem;
  }

  .footer-form-col-1 p,
  .footer-form-col-1 span {
    font-size: 0.8rem;
  }

  .form-inputs .group1 {
    flex-direction: column;
    gap: 15px;
  }

  .form-inputs .group1 input {
    width: 100%;
  }

  .group3 textarea {
    width: 100%;
  }

  .group3 button {
    width: 100%;
  }
}
