@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* Tema fontunu ve rengini miras al */
.rn-survey, .rn-survey * {
  box-sizing: border-box;
  font-family: inherit;
}

.rn-survey {
  max-width: 680px;
  margin: 0 auto 48px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── HEADER ── */
.rn-header {
  padding: 20px 10px;
  background: var(--sb-general-color, var(--rn-accent, #5b5ef4));
}

.rn-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 500;
  padding: 3px 11px; border-radius: 99px;
  margin-bottom: 12px;
}
.rn-chip i { font-size: 12px; }

.rn-title {
  letter-spacing: -1px;
  color: #fff;
}

.rn-desc {
  margin: 0;
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.75);
}

/* ── PROGRESS ── */
.rn-progress {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 32px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.rn-progress-label {
  font-size: 12px; font-weight: 500; color: #9ca3af; white-space: nowrap;
}
.rn-progress-track {
  flex: 1; height: 4px;
  background: #e5e7eb; border-radius: 99px; overflow: hidden;
}
.rn-progress-fill {
  height: 100%;
  background: var(--sb-general-color, #5b5ef4);
  border-radius: 99px;
  transition: width .4s ease;
}
.rn-progress-pct {
  font-size: 12px; font-weight: 600;
  color: var(--sb-general-color, #5b5ef4);
  min-width: 30px; text-align: right;
}

/* ── FORM ── */
.rn-form { padding: 8px 32px 32px; }

/* ── SORU ── */
.rn-q {
  padding: 24px 0;
  border-bottom: 1px solid #f3f4f6;
}
.rn-q:last-of-type { border-bottom: none; padding-bottom: 0; }

.rn-q-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.rn-q-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--sb-general-color, #5b5ef4);
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.rn-q-text {
  flex: 1;
  font-size: 15px; font-weight: 600;
  color: #111827; line-height: 1.45;
}
.rn-q-req { color: #ef4444; margin-left: 2px; }

/* ── SEÇENEKler ── */
.rn-choices { display: flex; flex-direction: column; gap: 6px; }

.rn-choice {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border: 1px solid #e5e7eb; border-radius: 6px;
  cursor: pointer; user-select: none;
  transition: border-color .12s, background .12s;
}
.rn-choice input[type="radio"],
.rn-choice input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.rn-choice:hover { border-color: #d1d5db; background: #fafafa; }

.rn-choice-dot {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #d1d5db; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.rn-checkbox .rn-choice-dot { border-radius: 4px; }
.rn-choice-dot i { font-size: 10px; color: #fff; opacity: 0; }

.rn-choice-text {
  font-size: 14px; color: #374151; line-height: 1.4;
}

/* Seçili */
.rn-choice.rn-selected {
  border-color: var(--sb-general-color, #5b5ef4);
  background: color-mix(in srgb, var(--sb-general-color, #5b5ef4) 6%, white);
}
.rn-choice.rn-selected .rn-choice-dot {
  background: var(--sb-general-color, #5b5ef4);
  border-color: var(--sb-general-color, #5b5ef4);
}
.rn-choice.rn-selected .rn-choice-dot i { opacity: 1; }
.rn-choice.rn-selected .rn-choice-text { color: #111827; font-weight: 500; }

/* Hata */
.rn-q.rn-error .rn-q-text { color: #ef4444; }
.rn-q.rn-error .rn-choice { border-color: #fca5a5; }
.rn-q.rn-error .rn-input,
.rn-q.rn-error .rn-textarea,
.rn-q.rn-error .rn-select { border-color: #fca5a5; }

/* ── SELECT ── */
.rn-select {
  width: 100%; padding: 10px 38px 10px 13px;
  border: 1px solid #e5e7eb; border-radius: 6px;
  font-family: inherit; font-size: 14px; color: #111827;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%239ca3af'/%3E%3C/svg%3E") right 13px center no-repeat;
  appearance: none; cursor: pointer; outline: none;
  transition: border-color .12s;
}
.rn-select:focus { border-color: var(--sb-general-color, #5b5ef4); }

/* ── METİN ── */
.rn-input, .rn-textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid #e5e7eb; border-radius: 6px;
  font-family: inherit; font-size: 14px; color: #111827;
  outline: none; background: #fff;
  transition: border-color .12s;
}
.rn-input:focus, .rn-textarea:focus {
  border-color: var(--sb-general-color, #5b5ef4);
}
.rn-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ── YILDIZ ── */
.rn-stars { display: flex; align-items: center; gap: 2px; }
.rn-star {
  background: none; border: none; padding: 4px; cursor: pointer;
}
.rn-star i { font-size: 28px; color: #e5e7eb; transition: color .1s; display: block; }
.rn-star:hover i, .rn-star.rn-lit i { color: #f59e0b; }
.rn-star-label {
  margin-left: 8px; font-size: 13px; font-weight: 500; color: #9ca3af;
}
.rn-star-label.rn-has-val { color: #f59e0b; }

/* ── HATA BANNER ── */
.rn-error-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; margin-bottom: 16px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px;
  color: #991b1b; font-size: 13px; font-weight: 500;
}
.rn-error-msg i { color: #ef4444; flex-shrink: 0; }

/* ── GÖNDER ── */
.rn-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: var(--sb-general-color, #5b5ef4);
  color: #fff; border: none; border-radius: 6px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.rn-submit:hover { opacity: .92; transform: translateY(-1px); }
.rn-submit:active { transform: scale(.99); opacity: 1; }
.rn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.rn-submit i { font-size: 16px; }

/* ── BAŞARI ── */
.rn-success {
  padding: 60px 32px; text-align: center;
}
.rn-success-ring {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 20px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  display: flex; align-items: center; justify-content: center;
}
.rn-success-ring i { font-size: 34px; color: #16a34a; }
.rn-success h3 { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.rn-success p  { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.6; }

/* ── ZATEN OY VERDİ ── */
.rn-voted {
  text-align: center; padding: 60px 32px;
}
.rn-voted-icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 18px;
  background: #f5f3ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--sb-general-color, #5b5ef4);
}
.rn-voted h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.rn-voted p  { font-size: 14px; color: #6b7280; margin: 0; }

.rn-hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
.rn-spin { display: inline-block; animation: spin .7s linear infinite; }
