.rap-tg {
  --rap-primary: #681472;
  --rap-primary-dark: #4f0f57;
  --rap-primary-soft: #f4e9f6;
  --rap-border: #e7d8ea;
  --rap-text: #242124;
  --rap-muted: #6f6471;
  --rap-white: #ffffff;
  box-sizing: border-box;
  max-width: 820px;
  margin: 32px auto;
  color: var(--rap-text);
  font-family: inherit;
}
.rap-tg *, .rap-tg *::before, .rap-tg *::after { box-sizing: border-box; }
.rap-tg__card {
  background: var(--rap-white);
  border: 1px solid var(--rap-border);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 14px 40px rgba(104, 20, 114, 0.10);
}
.rap-tg__intro { margin-bottom: 24px; }
.rap-tg__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rap-primary-soft);
  color: var(--rap-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.rap-tg h2 {
  margin: 0 0 10px;
  color: var(--rap-primary);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}
.rap-tg__intro p:not(.rap-tg__eyebrow) {
  margin: 0;
  color: var(--rap-muted);
  font-size: 17px;
  line-height: 1.6;
}
.rap-tg__form {
  display: grid;
  gap: 18px;
}
.rap-tg__field label {
  display: block;
  margin-bottom: 8px;
  color: var(--rap-text);
  font-weight: 700;
}
.rap-tg__field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--rap-border);
  border-radius: 12px;
  background: var(--rap-white);
  color: var(--rap-text);
  font: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--rap-primary) 50%), linear-gradient(135deg, var(--rap-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.rap-tg__field select:focus {
  outline: 3px solid rgba(104, 20, 114, 0.16);
  border-color: var(--rap-primary);
}
.rap-tg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.rap-tg__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--rap-primary);
  border-radius: 12px;
  background: var(--rap-primary);
  color: var(--rap-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.rap-tg__button:hover, .rap-tg__button:focus {
  background: var(--rap-primary-dark);
  border-color: var(--rap-primary-dark);
  color: var(--rap-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(104, 20, 114, .18);
}
.rap-tg__button--ghost {
  background: var(--rap-white);
  color: var(--rap-primary);
}
.rap-tg__button--ghost:hover, .rap-tg__button--ghost:focus {
  background: var(--rap-primary-soft);
  color: var(--rap-primary-dark);
  box-shadow: none;
}
.rap-tg__button--small { min-height: 42px; padding: 10px 15px; font-size: 15px; }
.rap-tg__result {
  margin-top: 26px;
  padding: 24px;
  border-radius: 16px;
  border-left: 6px solid var(--rap-primary);
  background: var(--rap-primary-soft);
}
.rap-tg__result-label {
  margin: 0 0 10px;
  color: var(--rap-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}
.rap-tg__quote {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--rap-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  font-style: italic;
}
.rap-tg__source {
  margin: 0 0 14px;
  color: var(--rap-primary);
  font-weight: 700;
}
.rap-tg__explanation {
  margin: 0 0 18px;
  color: var(--rap-text);
  line-height: 1.65;
}
@media (max-width: 560px) {
  .rap-tg { margin: 20px auto; }
  .rap-tg__card { border-radius: 14px; }
  .rap-tg__actions, .rap-tg__button { width: 100%; }
  .rap-tg__result { padding: 20px; }
}
