/**
 * Icon Choice field — front end. Stacked rows: radio start, name+description
 * middle, icon end; logical properties mirror the layout in RTL.
 */
.gform-theme--framework .ast-iconradio__grid {
  display: flex;
  flex-direction: column;
}

.gform-theme--framework .ast-iconradio__choice {
  position: relative;
}

.gform-theme--framework .ast-iconradio__input {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--ast-accent);
}

.gform-theme--framework .ast-iconradio__card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px 8px 36px;
  border-radius: 12px;
}

.gform-theme--framework .ast-iconradio__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
}

.gform-theme--framework .ast-iconradio__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ast-primary);
}

.gform-theme--framework .ast-iconradio__desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ast-muted, #666);
}

.gform-theme--framework .ast-iconradio__icon {
  flex: 0 0 auto;
}

.gform-theme--framework .ast-iconradio__icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.gform-theme--framework .ast-iconradio__card:hover {
  border-color: var(--ast-line, #ececec);
}

.gform-theme--framework .ast-iconradio__input:checked + .ast-iconradio__card {
  border-color: var(--ast-accent);
  background: var(--ast-green-soft, #e8f5ec);
}

.gform-theme--framework
  .ast-iconradio__input:focus-visible
  + .ast-iconradio__card {
  outline: 2px solid var(--ast-accent);
  outline-offset: 2px;
}

.gform-theme--framework .ast-iconradio--empty {
  font-size: 0.9em;
  color: var(--ast-muted, #6b7280);
}
