/* ---------- Aside review box (all selectors scoped to .rb) ---------- */
.rb {
  --rb-teal: #008391;
  --rb-teal-dark: #006a76;
  --rb-teal-soft: #55adb6;
  --rb-gold: #f5a623;
  --rb-text: #444;
  --rb-muted: #7a7a7a;
  --rb-line: #d9d9d9;
  --rb-error: #c0392b;

  box-sizing: border-box;
  width: 100%;
  background: #fff;
  border: 1px solid var(--rb-teal);
  padding: 24px 25px 26px;
  color: var(--rb-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 30px;
}
.rb *, .rb *::before, .rb *::after { box-sizing: border-box; }
.rb label { margin-bottom: 0; }

.rb .rb-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}
.rb .rb-sub {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: #333;
  line-height: 1.5;
}

.rb-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.rb-label { font-weight: 600; font-size: 12.5px; color: #222; }
.rb-label small { font-weight: 400; color: var(--rb-muted); }
.rb-req { color: var(--rb-error); }

.rb input[type="text"], .rb input[type="email"], .rb textarea {
  width: 100%;
  font: inherit;
  color: var(--rb-text);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 22px;
  padding: 10px 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.rb textarea { border-radius: 18px; min-height: 96px; resize: vertical; }
.rb input:focus, .rb textarea:focus { border-color: var(--rb-teal); box-shadow: 0 0 0 3px rgba(0,131,145,.18); }
.rb input.is-invalid, .rb textarea.is-invalid { border-color: var(--rb-error); background-image: none; padding-right: 16px; }
.rb-error { font-size: 11.5px; color: var(--rb-error); padding-left: 4px; }
.rb-error:empty { display: none; }
.rb-count { font-size: 11px; color: var(--rb-muted); text-align: right; }

/* Stars */
.rb-rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rb-stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rb-stars label { cursor: pointer; line-height: 0; display: inline-flex; }
.rb-stars svg { width: 28px; height: 28px; fill: #fff; stroke: var(--rb-gold); stroke-width: 1.6; stroke-linejoin: round; transition: fill .12s, transform .12s; }
.rb-stars label:hover svg { transform: scale(1.1); }
.rb-stars input:checked ~ label svg,
.rb-stars label:hover svg,
.rb-stars label:hover ~ label svg { fill: var(--rb-gold); }
.rb-stars input:focus-visible + label svg { outline: 2px solid var(--rb-teal); outline-offset: 2px; border-radius: 5px; }
.rb-rating-text { font-size: 12px; font-weight: 600; color: var(--rb-teal); }

/* Consent */
.rb-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 12px; }
.rb-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--rb-teal); flex: none; }

/* Button */
.rb-btn {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  background: var(--rb-teal);
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 26px;
  transition: background .15s, transform .15s;
}
.rb-btn:hover { background: var(--rb-teal-dark); }
.rb-btn:active { transform: scale(.98); }
.rb-btn:focus-visible { outline: 3px solid rgba(0,131,145,.4); outline-offset: 3px; }
.rb-btn[disabled] { opacity: .75; cursor: progress; }

/* Thank-you state (same place, same box) */
.rb-thanks { display: none; text-align: center; }
.rb.is-sent { display: flex; flex-direction: column; justify-content: center; }
.rb.is-sent .rb-form { display: none; }
.rb.is-sent .rb-thanks { display: flex; flex-direction: column; align-items: center; padding: 12px 0; }
.rb-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rb-teal);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  animation: rb-pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.rb-check-circle svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rb .rb-thanks h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-teal);
  line-height: 1.25;
  text-transform: none;
}
.rb .rb-thanks p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--rb-text);
  line-height: 1.55;
}
.rb .rb-thanks p:last-of-type { margin-bottom: 0; }
.rb-stars-static { margin-top: 14px; display: flex; gap: 3px; }
.rb-stars-static svg { width: 20px; height: 20px; fill: var(--rb-gold); }
@keyframes rb-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .rb *, .rb *::before, .rb *::after { transition: none !important; animation: none !important; }
}
