@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@900&family=Noto+Sans&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --light-blue: #e3f2fd!important;
  --primary-blue: #2196F3!important;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  background-color: #f5f5fd;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 4px 8px darken(#f5f5fd, 10%);
  max-width: 606px;
  width: 100%;
  margin: 40px auto;

  @media (max-width: 768px) {
    width: 90%;
    margin: 80px auto;
  }

  span {
    float: right;
    height: 60px;
    width: 60px;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #6c6b8a;
    font-size: 1.4rem;
    transition: 0.3s ease;

    &:hover {
      color: #e53935;
    }
  }

  h2 {
    font-family: "Merriweather", serif;
    font-weight: 700;
    text-align: center;
    color: #151534;
    font-size: 1.8rem;
    margin-bottom: 30px;
    margin-top: 80px;
  }

  form {
    padding: 15px 50px;

    .form-group {
      margin-bottom: 35px;

      label {
        display: block;
        color: lighten(#151534, 60%);
        font-size: 1.2rem;
      }

      input,
      select {
        max-width: 418px;
        width: 100%;
        padding: 10px;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 2px solid lighten(#151534, 80%);
        outline: none;
        font-family: "IBM Plex Sans", sans-serif;
        font-weight: 500;
        font-size: 1.2rem;
        color: #151534;
      }

      textarea {
        border: 2px solid #e6e6e6;
        padding: 40px;
        border-radius: 10px;
        max-width: 476px;
        width: 100%;
        font-family: "IBM Plex Sans", sans-serif;
        font-weight: 500;
        font-size: 1rem;
        color: #151534;
        outline: none;
      }
    }

    .submit-button {
      cursor: pointer;
      background-color: #151534;
      border: none;
      color: #fff;
      padding: 20px;
      max-width: 475px;
      width: 100%;
      font-family: "Merriweather", serif;
      font-weight: 700;
      font-size: 20px;
      border-radius: 72px;
      transition: 0.3s ease;

      &:hover {
        background-color: lighten(#151534, 10%);
      }
    }
  }
}

/* Force the footer background color */
.custom-footer {
  background-color: #e3f2fd !important; /* Ensure the background color is applied */
  font-size: 0.9rem;
  color: #000; /* Ensure text color contrasts with the background */
  padding: 40px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Add a scoped selector to ensure no other styles override the footer background */
body .custom-footer {
  background-color: #e3f2fd !important;
}

/* Debugging: Add a border to visually confirm the footer area */
.custom-footer {
  border: 2px solid red; /* Temporary for debugging */
}

.custom-footer-heading {
  color: var(--primary-blue) !important;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-blue);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.custom-footer-link {
  color: #455a64 !important;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  transition: all 0.3s ease;
}

.custom-footer-link:hover {
  color: var(--primary-blue) !important;
  transform: translateX(5px);
}

.custom-footer-link:hover .link-icon {
  opacity: 1;
  margin-left: 8px;
}

.custom-social-link {
  color: #607d8b !important;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.custom-social-link:hover {
  color: var(--primary-blue) !important;
  transform: translateY(-3px);
}

.custom-btn-scroll-top {
  border: none;
  background: none;
  color: var(--primary-blue);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.custom-btn-scroll-top:hover {
  transform: scale(1.1);
}

.custom-newsletter-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}
.hover-text-success {
  transition: all 0.3s ease;
}
.hover-text-success:hover {
  color: #28a745!important;
  transform: translateY(-1px);
}

footer {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 5px solid #ffffff; /* Optional: Add a border for separation */
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #a0dbff; /* Set the footer background color */
  z-index: -1; /* Place the background behind the footer content */
}