.rc-widget {
  --rc-ink: #20242c;
  --rc-muted: #747b89;
  --rc-line: rgba(38, 49, 70, 0.12);
  --rc-surface: rgba(255, 255, 255, 0.82);
  --rc-blue: #6877e8;
  --rc-cyan: #55b8c2;
  --rc-good: #348d73;
  --rc-warn: #b07832;
  --rc-bad: #b4575d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 2rem 0;
  padding: clamp(1.25rem, 3.2vw, 2.25rem);
  color: var(--rc-ink);
  border: 1px solid var(--rc-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(244, 246, 255, 0.9), rgba(249, 253, 252, 0.96)),
    var(--rc-surface);
  box-shadow: 0 18px 60px rgba(59, 69, 105, 0.08);
  font: inherit;
}

.rc-widget *,
.rc-widget *::before,
.rc-widget *::after {
  box-sizing: border-box;
}

.rc-orbit {
  position: absolute;
  z-index: -1;
  top: -7rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(104, 119, 232, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.2rem rgba(85, 184, 194, 0.035),
    0 0 0 4.4rem rgba(104, 119, 232, 0.025);
}

.rc-widget .rc-header {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 42rem !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.rc-kicker,
.rc-intro,
.rc-hint,
.rc-summary,
.rc-meta,
.rc-footnote {
  margin: 0;
}

.rc-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--rc-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.rc-kicker span {
  width: 1.3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--rc-blue), var(--rc-cyan));
}

.rc-title {
  margin: 0.55rem 0 0.7rem !important;
  font-size: clamp(1.55rem, 4vw, 2.25rem) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  background: linear-gradient(105deg, var(--rc-blue), var(--rc-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rc-intro {
  margin: 0 !important;
  max-width: 38rem;
  color: var(--rc-muted);
  line-height: 1.75;
}

.rc-widget .rc-form {
  margin: 1.6rem 0 0 !important;
  padding: 0 !important;
}

.rc-widget .rc-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem !important;
  font-weight: 650;
}

.rc-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.rc-input-row input {
  min-width: 0;
  height: 3.15rem;
  padding: 0 1rem;
  color: var(--rc-ink);
  border: 1px solid rgba(49, 62, 88, 0.16);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rc-input-row input:focus {
  border-color: rgba(104, 119, 232, 0.72);
  box-shadow: 0 0 0 4px rgba(104, 119, 232, 0.1);
}

.rc-input-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 8.4rem;
  height: 3.15rem;
  padding: 0 1.05rem;
  color: white;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(112deg, var(--rc-blue), #637fdf 48%, var(--rc-cyan));
  box-shadow: 0 10px 24px rgba(95, 119, 218, 0.2);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.rc-input-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(95, 119, 218, 0.26);
}

.rc-input-row button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.rc-arrow {
  font-size: 1.08rem;
}

.rc-hint,
.rc-footnote {
  color: var(--rc-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.rc-hint {
  margin-top: 0.5rem;
}

.rc-status {
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  color: var(--rc-muted);
  border: 1px dashed rgba(104, 119, 232, 0.25);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.48);
}

.rc-status:not([hidden]) {
  display: flex;
}

.rc-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid rgba(104, 119, 232, 0.2);
  border-top-color: var(--rc-blue);
  border-radius: 50%;
  animation: rc-spin 700ms linear infinite;
}

.rc-footnote {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rc-line);
}

.rc-sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  margin: 1.2rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(38, 49, 70, 0.11);
  border-radius: 12px;
  background: rgba(247, 248, 252, 0.72);
}

.rc-sponsor p {
  margin: 0;
}

.rc-sponsor-label {
  color: var(--rc-muted, #747b89);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.rc-sponsor-copy {
  margin-top: 0.3rem !important;
  color: var(--rc-ink, #20242c);
  font-size: 0.84rem;
  line-height: 1.65;
}

.rc-sponsor-note {
  margin-top: 0.3rem !important;
  color: var(--rc-muted, #747b89);
  font-size: 0.7rem;
}

.rc-sponsor a {
  padding: 0.68rem 0.85rem;
  color: #5d6edb;
  border: 1px solid rgba(104, 119, 232, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@keyframes rc-spin {
  to { transform: rotate(360deg); }
}

@keyframes rc-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-widget *,
  .rc-widget *::before,
  .rc-widget *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
