.member-risk-captcha {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.member-risk-captcha[hidden] {
  display: none;
}

.member-risk-captcha__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.member-risk-captcha__dialog {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  border-radius: 28px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 252, 0.98) 0%, #ffffff 100%);
  box-shadow: 0 26px 70px rgba(148, 34, 72, 0.22);
  overflow: hidden;
}

.member-risk-captcha__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
}

.member-risk-captcha__eyebrow {
  margin: 0 0 8px;
  color: #db2777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.member-risk-captcha__title {
  margin: 0;
  color: #111827;
  font-size: 24px;
}

.member-risk-captcha__desc {
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.member-risk-captcha__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.1);
  color: #be185d;
  font-size: 24px;
  line-height: 1;
}

.member-risk-captcha__body {
  padding: 0 24px 24px;
}

.member-risk-captcha__prompt,
.member-risk-captcha__selected,
.member-risk-captcha__actions,
.member-risk-captcha__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.member-risk-captcha__prompt {
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.92) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(244, 114, 182, 0.16);
}

.member-risk-captcha__prompt-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.member-risk-captcha__prompt-value {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.member-risk-captcha__selected {
  min-height: 54px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px dashed rgba(244, 114, 182, 0.28);
  background: rgba(255, 250, 252, 0.86);
  align-items: center;
}

.member-risk-captcha__selected.is-empty {
  color: #9ca3af;
}

.member-risk-captcha__selected.is-error {
  border-style: solid;
  border-color: rgba(225, 29, 72, 0.34);
  background: rgba(255, 241, 242, 0.96);
  color: #be123c;
  font-weight: 600;
}

.member-risk-captcha__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(236, 72, 153, 0.12);
  color: #be185d;
  font-size: 18px;
  font-weight: 700;
}

.member-risk-captcha__options {
  margin-bottom: 18px;
}

.member-risk-captcha__option {
  width: calc(25% - 9px);
  min-height: 56px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.member-risk-captcha__option:hover,
.member-risk-captcha__option:focus {
  border-color: rgba(236, 72, 153, 0.42);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.12);
  transform: translateY(-1px);
}

.member-risk-captcha__option.is-selected {
  border-color: rgba(236, 72, 153, 0.54);
  background: rgba(253, 242, 248, 0.96);
  color: #be185d;
}

.member-risk-captcha__meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.member-risk-captcha__error {
  color: #be123c;
  font-size: 13px;
  line-height: 1.7;
  min-height: 22px;
}

.member-risk-captcha__actions {
  justify-content: flex-end;
}

.member-risk-captcha__button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
}

.member-risk-captcha__button--ghost {
  background: rgba(244, 114, 182, 0.1);
  color: #be185d;
}

.member-risk-captcha__button--primary {
  background: linear-gradient(135deg, #ef476f 0%, #fb7185 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(239, 71, 111, 0.24);
}

.member-risk-captcha__button:disabled,
.member-risk-captcha__option:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

body.member-risk-captcha-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .member-risk-captcha {
    padding: 12px;
  }

  .member-risk-captcha__head,
  .member-risk-captcha__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .member-risk-captcha__head {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .member-risk-captcha__title {
    font-size: 21px;
  }

  .member-risk-captcha__option {
    width: calc(33.333% - 8px);
  }

  .member-risk-captcha__actions {
    flex-direction: column-reverse;
  }

  .member-risk-captcha__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-risk-captcha__option,
  .member-risk-captcha__button {
    transition: none;
  }
}
