.footer {
  background: #52236a; /* Very deep brand purple */
  color: #cbd5e1;
  padding: 0 0 20px; /* Spacing handled by CTA banner at top */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}
footer .logo img {
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.footer-contact li:hover {
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.footer-contact i {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta-ribbon-flex {
    flex-direction: column;
    text-align: center;
  }
  .modal-content{
      height: 90vh;
      overflow-y: scroll !important;
  }
}
.fluentform{
    padding: 20px;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(243, 146, 0, 0.3);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  .back-to-top.active {
    bottom: 30px;
  }
}
