.rtf-wrap {
  --rtf-text: #101828;
  --rtf-muted: #667085;
  --rtf-line: #dbe5f2;
  --rtf-card: #ffffff;
  --rtf-bg: #f8fafd;
  background: var(--rtf-bg);
  border: 1px solid rgba(23, 78, 182, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.08);
}

.rtf-shell {
  max-width: 960px;
  margin: 0 auto;
}

.rtf-hero {
  max-width: 680px;
  margin-bottom: 18px;
}

.rtf-kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rtf-accent);
  color: var(--rtf-primary);
  font-size: var(--rtf-kicker-size, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rtf-hero h2,
.rtf-step-header h3,
.rtf-result-card h3 {
  margin: 0;
  color: var(--rtf-text);
  line-height: 1.12;
}

.rtf-hero h2 {
  font-size: min(var(--rtf-headline-size, 42px), 12vw);
  margin-bottom: 12px;
}

.rtf-hero p {
  font-size: var(--rtf-subheadline-size, 18px);
  line-height: 1.65;
}

.rtf-hero p,
.rtf-step-header p,
.rtf-statement-body p,
.rtf-result-card p {
  color: var(--rtf-muted);
  margin: 0;
}

.rtf-form {
  position: relative;
  overflow: hidden;
}

.rtf-progress {
  position: relative;
  width: 100%;
  height: 10px;
  background: #eaf0f8;
  border-radius: 999px;
  overflow: hidden;
  margin: 26px 0 24px;
}

.rtf-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--rtf-progress-fill, var(--rtf-primary));
  transition: width 0.3s ease;
}

.rtf-step {
  background: var(--rtf-card);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.05);
}

.rtf-step-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.rtf-step-count {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--rtf-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(23, 78, 182, 0.25);
}

.rtf-step-header h3 {
  font-size: min(var(--rtf-step-title-size, 36px), 10vw);
  margin-bottom: 10px;
}

.rtf-step-header p,
.rtf-statement-body p,
.rtf-result-card p,
.rtf-contact-grid label span {
  font-size: var(--rtf-step-helper-size, 16px);
  line-height: 1.6;
}

.rtf-choices,
.rtf-picker-list {
  display: grid;
  gap: 12px;
}

.rtf-choice-card,
.rtf-picker-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--rtf-line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #2c3a52;
}

.rtf-choice-card:hover,
.rtf-picker-item:hover,
.rtf-choice-card.is-selected,
.rtf-picker-item.is-selected {
  transform: translateY(-1px);
  border-color: rgba(23, 78, 182, 0.35);
  background: var(--rtf-accent);
  box-shadow: 0 18px 32px rgba(23, 78, 182, 0.08);
}

.rtf-choice-card input,
.rtf-picker-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--rtf-primary);
  margin: 0;
}

.rtf-picker {
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 22px;
  background: #fbfdff;
  padding: 14px;
}

.rtf-search-wrap {
  margin-bottom: 12px;
}

.rtf-picker-search,
.rtf-text-input,
.rtf-contact-grid input {
  width: 100%;
  border: 1px solid var(--rtf-line);
  background: #fff;
  border-radius: 16px;
  min-height: 58px;
  padding: 0 18px;
  font-size: 18px;
  color: var(--rtf-text);
  box-shadow: none;
  outline: none;
}

.rtf-picker-search:focus,
.rtf-text-input:focus,
.rtf-contact-grid input:focus {
  border-color: rgba(23, 78, 182, 0.5);
  box-shadow: 0 0 0 5px rgba(23, 78, 182, 0.08);
}

.rtf-statement-card {
  background: var(--rtf-statement-bg, #f7f9fd);
  border: 1px solid rgba(23, 78, 182, 0.1);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
}

.rtf-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rtf-contact-grid label {
  display: grid;
  gap: 10px;
}

.rtf-contact-grid label span {
  color: var(--rtf-text);
  font-weight: 600;
}

.rtf-contact-grid .full {
  grid-column: 1 / -1;
}

.rtf-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.rtf-btn {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rtf-btn:hover {
  transform: translateY(-1px);
}

.rtf-next,
.rtf-submit,
.rtf-btn:not(.rtf-btn-ghost) {
  background: var(--rtf-primary-fill, var(--rtf-primary));
  color: #fff;
  box-shadow: 0 18px 30px rgba(23, 78, 182, 0.2);
}

.rtf-btn-ghost {
  background: #fff;
  color: var(--rtf-text);
  border: 1px solid var(--rtf-line);
}

.rtf-error {
  margin: 12px 0 0;
  color: #c5221f;
  font-weight: 600;
  min-height: 24px;
}

.rtf-result-card {
  padding: 42px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
}

.rtf-result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(180deg, #dff7e8, #c9f0d7);
  color: #0d7a33;
}

.rtf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 767px) {
  .rtf-wrap {
    padding: 18px;
    border-radius: 20px;
  }

  .rtf-step {
    padding: 18px;
    border-radius: 18px;
  }

  .rtf-step-header {
    gap: 12px;
  }

  .rtf-contact-grid {
    grid-template-columns: 1fr;
  }

  .rtf-step-actions {
    flex-direction: column;
  }

  .rtf-btn {
    width: 100%;
  }
}
