.footer-footer {
  background-color: #F0F0F0;
  min-height: 50px;
  padding: 60px 60px;
}

.footer-card {
  background: linear-gradient(90deg, #6a1fc9 0%, #8b3dff 100%);
  border-radius: 24px;
  max-width: 1300px;
  margin: 0 auto;
  overflow: visible;
  position: relative;
}

/* ---------- TOP ROW ---------- */
.footer-topRow {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 36px 0 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden; /* keeps the purple background itself clipped to rounded corners */
  position: relative;
}

.footer-agentImageWrapper {
  position: absolute;
  top: -45px; /* raises the image above the card's top edge */
  left: 40px;
  width: 160px;
  height: 220px;
  flex-shrink: 0;
  z-index: 3;
}

.footer-agentImage {
  display: block;
}

.footer-textCol {
  flex: 1;
  padding: 32px 0 32px 200px;
}

.footer-heading {
  font-size: 36px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.footer-subtext {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 545px;
}

.footer-ctaCol {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-demoButton {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #14101e;
  font-size: 22px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.footer-demoButton svg {
  color: #14101e;
}

.footer-trustList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-trustItem {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-trustItem svg {
  color: #ffffff;
}

/* ---------- BOTTOM ROW ---------- */
.footer-bottomRow {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 36px;
  flex-wrap: wrap;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.footer-bottomItem {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 500;
  color: #3a3447;
}

.footer-bottomItem svg {
  color: #8b3dff;
}

.footer-bottomItem--rating {
  font-weight: 700;
  color: #14101e;
}

.footer-stars {
  display: flex;
  gap: 2px;
  color: #ffb800;
  margin-right: 4px;
}


.footer-bottomItem--rating .footer-stars svg {
  color: #ffb800;
}

.footer-starHalf {
  opacity: 0.5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-topRow {
    flex-direction: column;
    align-items: flex-start; /* was center — keeps everything left-aligned */
    text-align: left;        /* was center */
    padding: 24px;
  }

  .footer-agentImageWrapper {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 240px; /* was 220px on a 160px-wide box — now bigger and full-width */
    margin-bottom: 16px;
  }

  .footer-textCol {
    padding: 0;
  }

  .footer-subtext {
    max-width: 100%;
  }

  .footer-ctaCol {
    align-items: flex-start; /* was center */
    width: 100%;
  }
}


@media (max-width: 600px) {
  .footer-footer {
    padding: 40px 20px;
  }

  .footer-card {
    overflow: visible; /* allows the image to poke above the card's top edge */
  }

  .footer-topRow {
    overflow: visible; /* same — must allow overflow for the raised image to show */
  }

  .footer-agentImageWrapper {
    position: relative;
    width: 100%;
    height: 280px;
    margin-top: -50px; /* lifts the image above the card's top edge */
    margin-bottom: -10px; /* pulls the heading up slightly to compensate */
  }

  .footer-agentImage {
    object-position: left !important;
  }

  .footer-heading {
    font-size: 36px;
    text-align: left;
  }

  .footer-subtext,
  .footer-trustList,
  .footer-bottomItem {
    text-align: left;
  }

  .footer-bottomRow {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

