.newsletter-community-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 20px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 79, 195, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.13), rgba(138, 92, 255, 0.13) 52%, rgba(255, 200, 87, 0.09)),
    rgba(11, 18, 35, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.newsletter-community-card::before {
  position: absolute;
  z-index: -1;
  top: -68px;
  right: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  content: "";
}

.newsletter-community-card.is-selected {
  border-color: rgba(116, 240, 179, 0.76);
  background:
    radial-gradient(circle at 92% 8%, rgba(116, 240, 179, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(116, 240, 179, 0.12) 54%, rgba(255, 200, 87, 0.1)),
    rgba(11, 22, 31, 0.98);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34), 0 0 34px rgba(116, 240, 179, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.newsletter-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.newsletter-card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 16px;
  color: #cfee2f;
  background: rgba(5, 7, 19, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 22px rgba(0, 229, 255, 0.08);
}

.newsletter-card-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.newsletter-card-kicker,
.newsletter-card-intro,
.newsletter-card-details,
.newsletter-card-doi,
.newsletter-card-selected {
  margin: 0;
}

.newsletter-card-kicker {
  color: #cfee2f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter-community-card h3 {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: clamp(1.24rem, 2.8vw, 1.65rem);
  line-height: 1.18;
}

.newsletter-card-intro {
  max-width: 760px;
  color: #f3f7fa;
  font-size: 1.02rem;
  line-height: 1.55;
}

.newsletter-card-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 0;
  padding: 0;
  color: #ced8e0;
  list-style: none;
}

.newsletter-card-benefits li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  overflow-wrap: anywhere;
}

.newsletter-card-benefits li::before {
  color: #d3f331;
  font-weight: 900;
  content: "✓";
}

.inquiry-form .newsletter-card-choice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 87, 0.5);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(5, 7, 19, 0.7);
  cursor: pointer;
}

.inquiry-form .newsletter-card-choice:hover {
  border-color: rgba(255, 200, 87, 0.78);
  background: rgba(255, 200, 87, 0.08);
}

.inquiry-form .newsletter-card-choice:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.15);
}

.inquiry-form .newsletter-card-choice input[type="checkbox"] {
  appearance: auto;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  accent-color: var(--lime);
  cursor: pointer;
}

.newsletter-card-choice-text {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.newsletter-card-details,
.newsletter-card-doi {
  color: #bdc9d2;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.newsletter-card-doi a {
  color: #d3f331;
  white-space: nowrap;
}

.newsletter-card-selected {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(116, 240, 179, 0.32);
  border-radius: 12px;
  color: #e1ff6b;
  background: rgba(116, 240, 179, 0.08);
  font-weight: 900;
}

.newsletter-community-card[hidden],
.newsletter-card-selected[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .newsletter-community-card {
    gap: 14px;
    padding: 18px;
    border-radius: 17px;
  }

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

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

  .newsletter-card-benefits {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .inquiry-form .newsletter-card-choice {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    min-height: 60px;
    padding: 13px 14px;
  }

  .newsletter-card-choice-text {
    font-size: 0.97rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-community-card {
    transition: none;
  }
}
