.fe-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 80px 40px; /* Safe space so the overlapping shapes don't get cut off */
  box-sizing: border-box;
  font-family: inherit;
}

.fe-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--fe-width);
}

/* --- THE DECORATIVE SQUARES --- */
.fe-shape {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  z-index: 1;
}

.fe-shape-top {
  top: -30px;
  left: -30px;
  background-color: var(--fe-top);
}

.fe-shape-bottom {
  bottom: -30px;
  right: -30px;
  background-color: var(--fe-bot);
}

/* --- THE MAIN FORM CARD --- */
.fe-card {
  position: relative;
  z-index: 2;
  background-color: var(--fe-bg);
  border-radius: 12px;
  padding: 10px 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

/* Force embedded iframes/forms to respect the card width */
.fe-card iframe,
.fe-card .hbspt-form {
  width: 100% !important;
  max-width: 100% !important;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
  .fe-container {
    padding: 60px 0px !important; /* Let parent row handle edge padding */
  }
  .fe-card {
    padding: 40px 30px;
  }
  
  /* Shrink and tuck the decorative shapes on mobile */
  .fe-shape {
    width: 90px;
    height: 90px;
  }
  .fe-shape-top {
    top: -15px;
    left: -15px;
  }
  .fe-shape-bottom {
    bottom: -15px;
    right: -15px;
  }
}

@media (max-width: 600px) {
  .fe-container {
    padding: 40px 0px !important;
  }
  .fe-card {
    padding: 30px 20px;
  }
}