.rfm {
  --rfm-primary: rgba(136, 129, 240, 1);
  --rfm-primary-active: rgb(132, 125, 233);

  border: 0;
  border-radius: 1.5rem;
  overflow: hidden;

  .rfm-hero {
    position: relative;
    overflow: hidden;
    max-height: 500px;

    img {
      width: 100%;
      height: auto;
    }

    &::after {
      content: "";
      position: absolute;
      inset: auto -10% -1px;
      height: 3rem;
      background: #fff;
      clip-path: ellipse(60% 100% at 50% 100%);
    }
  }

  .rfm-close {
    position: absolute;
    z-index: 3;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);

    &:hover,
    &:focus-visible {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }

    & svg {
      width: 0.8rem;
      height: 0.8rem;
      fill: currentColor;
    }
  }

  .rfm-body {
    padding: 0.5rem 2rem 2rem;
    text-align: center;

    @media (max-width: 575.98px) {
      padding: 0.5rem 1rem 1rem;
    }
  }

  .rfm-title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    color: #242424;

    span {
      display: block;
      color: var(--rfm-primary);
    }
  }

  .btn-cta {
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-padding-y: 0.95rem;
    --bs-btn-border-radius: 3rem;
    --bs-btn-border-width: 0;
    --bs-btn-font-weight: 700;
    --bs-btn-font-size: 1.05rem;

    --bs-btn-color: #fff;
    --bs-btn-bg: var(--rfm-primary);
    --bs-btn-border-color: var(--rfm-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--rfm-primary-active);
    --bs-btn-hover-border-color: var(--rfm-primary-active);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--rfm-primary-active);
    --bs-btn-active-border-color: var(--rfm-primary-active);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--rfm-primary);
    --bs-btn-disabled-border-color: var(--rfm-primary);
    --bs-btn-focus-shadow-rgb: 61, 65, 128;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    overflow: hidden;
    text-decoration: none;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;

    & svg {
      width: 1.1rem;
      height: 1.1rem;
      transition: transform 0.2s ease;
    }

    &:hover svg {
      transform: translateX(4px);
    }
  }
}
