.app-modal.smart-form-picker-open {
  align-items: center;
  padding: 2vh 3vw;
  overflow: hidden;
}

.am-card.smart-form-modal {
  max-width: 1080px;
  max-height: 96vh;
}

.am-card.smart-form-modal .am-body {
  max-height: min(64vh, 670px);
  overflow-y: auto;
  scrollbar-color: var(--scps-teal, #00a7a0) transparent;
  scrollbar-width: thin;
}

.smart-form-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  direction: inherit;
}

.sfp-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  grid-template-areas:
    "copy icon"
    "footer footer";
  gap: 17px 14px;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--scps-line, #d9e3eb);
  border-top: 3px solid var(--scps-teal, #00a7a0);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.sfp-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -62px;
  bottom: -82px;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 26px solid rgba(0, 167, 160, .06);
  border-radius: 50%;
  transition: transform .28s ease, border-color .28s ease;
}

.sfp-card:hover,
.sfp-card:focus-visible {
  border-color: rgba(0, 167, 160, .45);
  box-shadow: 0 18px 40px rgba(16, 44, 78, .12);
  transform: translateY(-4px);
  outline: none;
}

.sfp-card:hover::before,
.sfp-card:focus-visible::before {
  border-color: rgba(0, 167, 160, .1);
  transform: scale(1.08);
}

.sfp-card-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: var(--scps-teal, #00a7a0);
  background: rgba(0, 167, 160, .09);
}

.sfp-card-icon svg {
  width: 25px;
  height: 25px;
}

.sfp-card-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.sfp-card-copy strong {
  color: var(--scps-navy, #17345f);
  font-size: 19px;
  line-height: 1.45;
}

.sfp-card-description {
  display: -webkit-box;
  overflow: hidden;
  color: #60738f;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sfp-card-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--scps-line-soft, #edf1f4);
}

.sfp-card-footer small {
  color: #7586a0;
  font-size: 12px;
}

.sfp-card-footer b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--scps-teal-deep, #008d87);
  font-size: 14px;
}

.sfp-card-footer b svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}

.sfp-card:hover .sfp-card-footer b svg,
.sfp-card:focus-visible .sfp-card-footer b svg {
  transform: translate(-3px, -3px);
}

.sfp-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 30px;
  border: 1px dashed rgba(0, 167, 160, .35);
  border-radius: 20px;
  color: #657894;
  background: rgba(0, 167, 160, .045);
  text-align: center;
}

.sfp-empty svg {
  width: 36px;
  height: 36px;
  color: var(--scps-teal, #00a7a0);
}

@media (max-width: 820px) {
  .am-card.smart-form-modal {
    max-width: 620px;
  }

  .smart-form-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-modal.smart-form-picker-open {
    align-items: flex-start;
    padding: 18px 12px;
    overflow-y: auto;
  }

  .am-card.smart-form-modal {
    max-height: none;
  }

  .am-card.smart-form-modal .am-body {
    max-height: none;
    overflow-y: visible;
  }

  .smart-form-picker {
    gap: 14px;
  }

  .sfp-card {
    grid-template-columns: minmax(0, 1fr) 48px;
    min-height: 170px;
    padding: 18px;
    border-radius: 17px;
  }

  .sfp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .sfp-card-copy strong {
    font-size: 17px;
  }

  .sfp-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sfp-card,
  .sfp-card::before,
  .sfp-card-footer b svg {
    transition: none;
  }
}
