/* Feedback survey — Kaende-style card, bottom-left */
.riseup-survey {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 9998;
  font-family: var(--font, "Segoe UI", system-ui, sans-serif);
  max-width: min(400px, calc(100vw - 2rem));
}

.riseup-survey[hidden] {
  display: none !important;
}

/* Collapsed: pill launcher only */
.riseup-survey.is-collapsed .riseup-survey__panel {
  display: none;
}

.riseup-survey.is-collapsed .riseup-survey__pill {
  display: inline-flex;
}

.riseup-survey__pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a4d63 0%, #0f766e 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(26, 77, 99, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.riseup-survey__pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 77, 99, 0.5);
}

.riseup-survey__pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Main card */
.riseup-survey__panel {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.14);
}

.riseup-survey__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #1a4d63 0%, #0d9488 100%);
  color: #fff;
}

.riseup-survey__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.riseup-survey__brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.35);
  flex-shrink: 0;
}

.riseup-survey__brand-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.riseup-survey__brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.1rem;
}

.riseup-survey__header-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.riseup-survey__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.riseup-survey__icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.riseup-survey__icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.riseup-survey__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem 0;
  background: #fff;
}

.riseup-survey__progress-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.25s, width 0.25s;
}

.riseup-survey__progress-dot.is-active {
  background: linear-gradient(90deg, #1a4d63, #14b8a6);
  width: 40px;
}

.riseup-survey__progress-dot.is-done {
  background: #14b8a6;
}

.riseup-survey__body {
  padding: 0.85rem 1.15rem 0.25rem;
}

.riseup-survey__question {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.riseup-survey__scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  padding: 0.35rem;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.riseup-survey__rate {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  line-height: 1;
  padding: 0;
}

.riseup-survey__rate:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1a4d63;
}

.riseup-survey__rate.is-selected {
  background: #fff;
  color: #1a4d63;
  box-shadow: 0 2px 10px rgba(26, 77, 99, 0.18);
  transform: scale(1.02);
}

.riseup-survey__labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.riseup-survey__footer {
  padding: 0.65rem 1.15rem 1.1rem;
}

.riseup-survey__next {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.riseup-survey__next:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.riseup-survey__next:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.riseup-survey__step[hidden] {
  display: none !important;
}

.riseup-survey__thanks {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
}

.riseup-survey__thanks-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.riseup-survey__thanks h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.riseup-survey__thanks p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.riseup-survey__comment {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 76px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.riseup-survey__comment:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  background: #fff;
}

.riseup-survey__comment::placeholder {
  color: #94a3b8;
}

@media (max-width: 480px) {
  .riseup-survey {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5.25rem;
    max-width: none;
  }

  .riseup-survey__rate {
    min-height: 40px;
    font-size: 0.88rem;
  }
}
