:root {
  --rk-header: #e7f0e4;
  --rk-page: #f4f4f4;
  --rk-paper: #fff;
  --rk-ink: #222;
  --rk-muted: #666;
  --rk-green: #3c9a32;
  --rk-green-deep: #2f7a28;
  --rk-line: #d9d9d9;
  --rk-link: #375695;
  --rk-radius: 1.35rem;
  --rk-radius-sm: 0.85rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--rk-page);
  color: var(--rk-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--rk-link); }

.rk-skip {
  position: absolute;
  left: 0.6rem;
  top: -3rem;
  background: #fff;
  color: #000;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  z-index: 5;
}

.rk-skip:focus { top: 0.4rem; }

.rk-top {
  background: var(--rk-header);
  border-bottom: 1px solid #d3e2ce;
  border-radius: 0 0 var(--rk-radius) var(--rk-radius);
}

.rk-wrap {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
}

.rk-top-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.rk-survey-logo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 1px 3px rgba(40, 70, 35, 0.12);
  object-fit: cover;
}

.rk-logo-link { display: block; min-width: 0; }

.rk-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  background: #fff;
  border-radius: 0.7rem;
  box-shadow: 0 1px 3px rgba(40, 70, 35, 0.12);
}

.rk-card {
  background: var(--rk-paper);
  margin-top: 1.1rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid #e6e6e6;
  border-radius: var(--rk-radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.rk-intro h1,
.rk-thanks h1,
.rk-card h2,
.rk-login h1 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.rk-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.rk-card h2 { font-size: 1.2rem; }

.rk-intro p,
.rk-thanks p { margin: 0 0 0.75rem; }

.rk-prize {
  padding: 0.85rem 1rem;
  background: #f3f8f1;
  border: 1px solid #d7ead3;
  border-radius: var(--rk-radius-sm);
}

.rk-required-note,
.rk-help,
.rk-comment,
.rk-field {
  color: var(--rk-muted);
}

.rk-required-note { margin: 0; font-size: 0.9rem; }

.rk-required { color: var(--rk-green-deep); }

.rk-alert {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  background: #fff6f6;
  border: 1px solid #e3b4b4;
  border-radius: var(--rk-radius-sm);
  color: #7a1f1f;
}

fieldset {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.rk-rule {
  height: 1px;
  margin: 1.45rem 0 0.85rem;
  background: var(--rk-line);
}

legend {
  display: block;
  width: 100%;
  margin: 0 0 0.2rem;
  padding: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.rk-help {
  margin: 0.15rem 0 0.2rem;
  font-size: 0.92rem;
}

.rk-choices { display: grid; gap: 0.45rem; margin-top: 0.7rem; }

.rk-choices-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rk-choices label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fafafa;
  cursor: pointer;
}

.rk-choices label:hover {
  border-color: #c9dec6;
  background: #f3f8f1;
}

.rk-choices input { width: 1.05rem; height: 1.05rem; accent-color: var(--rk-green); }

.rk-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
  width: fit-content;
  margin-top: 0;
}

.rk-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rk-stars label { cursor: pointer; line-height: 0; }

.rk-star {
  width: 1.9rem;
  height: 1.9rem;
  display: block;
  fill: #fff;
  stroke: #1c1c1c;
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.rk-stars input:checked ~ label .rk-star { fill: #e0a820; }

.rk-stars:hover input ~ label .rk-star { fill: #fff; }

.rk-stars:hover input ~ label:hover .rk-star,
.rk-stars:hover input ~ label:hover ~ label .rk-star { fill: #e0a820; }

.rk-stars input:focus-visible + label .rk-star,
.rk-choices input:focus-visible {
  outline: 3px solid rgba(60, 154, 50, 0.35);
  outline-offset: 2px;
}

.rk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rk-comment,
.rk-field {
  display: block;
  margin: 0.85rem 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: var(--rk-radius-sm);
  background: #fff;
  color: var(--rk-ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 5rem;
  padding: 0.6rem 0.7rem;
  overflow: hidden;
  resize: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  min-height: 2.7rem;
  padding: 0.45rem 0.7rem;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  border-color: var(--rk-green);
  outline: 2px solid rgba(60, 154, 50, 0.25);
  outline-offset: 1px;
}

.rk-submit,
.rk-login button {
  margin: 1.1rem 0 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--rk-green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
}

.rk-submit:hover,
.rk-login button:hover { background: var(--rk-green-deep); }

.rk-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rk-foot {
  padding: 0.4rem 0 1.6rem;
  color: var(--rk-muted);
  font-size: 0.9rem;
}

.rk-head-row,
.rk-results-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.rk-results-top a { font-size: 0.92rem; }

.rk-stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
}

.rk-bar {
  height: 0.55rem;
  margin: 0.2rem 0 0.7rem;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}

.rk-bar > span {
  display: block;
  height: 100%;
  background: var(--rk-green);
  border-radius: 999px;
}

.rk-pct-0 { width: 0; }
.rk-pct-5 { width: 5%; }
.rk-pct-10 { width: 10%; }
.rk-pct-15 { width: 15%; }
.rk-pct-20 { width: 20%; }
.rk-pct-25 { width: 25%; }
.rk-pct-30 { width: 30%; }
.rk-pct-35 { width: 35%; }
.rk-pct-40 { width: 40%; }
.rk-pct-45 { width: 45%; }
.rk-pct-50 { width: 50%; }
.rk-pct-55 { width: 55%; }
.rk-pct-60 { width: 60%; }
.rk-pct-65 { width: 65%; }
.rk-pct-70 { width: 70%; }
.rk-pct-75 { width: 75%; }
.rk-pct-80 { width: 80%; }
.rk-pct-85 { width: 85%; }
.rk-pct-90 { width: 90%; }
.rk-pct-95 { width: 95%; }
.rk-pct-100 { width: 100%; }

.rk-answer { font-size: 0.95rem; }
.rk-answer p { margin: 0.2rem 0; }
.rk-answer + .rk-answer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
.rk-muted { color: var(--rk-muted); }

@media (max-width: 700px) {
  .rk-stars {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .rk-stars label {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
  }

  .rk-star {
    width: clamp(2.1rem, 11vw, 3rem);
    height: clamp(2.1rem, 11vw, 3rem);
  }
}
