/* DenFur production survey */

.survey-main {
  max-width: 820px;
}

.survey-form {
  display: grid;
  gap: 18px;
  margin: 18px 0 48px;
}

.survey-section {
  border: 1px solid rgba(143, 164, 200, 0.28);
  border-radius: 10px;
  background: rgba(21, 29, 46, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.survey-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(36, 53, 80, 0.95), rgba(26, 39, 64, 0.92));
  border-bottom: 1px solid rgba(143, 164, 200, 0.22);
}

.survey-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 950;
}

.survey-section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.survey-step {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-weight: 950;
  font-size: 0.92rem;
}

.survey-grid,
.survey-section > .survey-field,
.survey-section > .survey-fieldset,
.survey-section > .survey-ratings {
  padding: 16px 18px 4px;
}

.survey-section > .survey-field:last-child,
.survey-section > .survey-ratings:last-child,
.survey-section > .survey-fieldset:last-child {
  padding-bottom: 18px;
}

.survey-grid {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.survey-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.survey-field > span,
.survey-fieldset > legend {
  font-size: 0.9rem;
  font-weight: 900;
}

.survey-field input[type="text"],
.survey-field textarea {
  width: 100%;
  border: 2px solid rgba(143, 164, 200, 0.24);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 700;
  resize: vertical;
}

.survey-field input[type="text"]:focus,
.survey-field textarea:focus {
  outline: none;
  border-color: rgba(61, 95, 154, 0.85);
  box-shadow: 0 0 0 3px rgba(61, 95, 154, 0.22);
}

.survey-fieldset {
  border: 0;
  margin: 0;
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}

.survey-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(143, 164, 200, 0.18);
  background: rgba(8, 12, 22, 0.35);
  font-weight: 800;
  cursor: pointer;
}

.survey-choice:hover {
  border-color: rgba(143, 164, 200, 0.4);
}

.survey-choice input {
  margin-top: 2px;
}

.survey-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.survey-star {
  position: relative;
  cursor: pointer;
}

.survey-star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-star span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  border: 2px solid rgba(143, 164, 200, 0.3);
  background: rgba(8, 12, 22, 0.45);
  font-size: 1.15rem;
  font-weight: 950;
}

.survey-star:hover span[aria-hidden="true"],
.survey-star.on span[aria-hidden="true"],
.survey-star:has(input:checked) span[aria-hidden="true"] {
  border-color: rgba(201, 166, 107, 0.85);
  background: rgba(201, 166, 107, 0.2);
  color: #fff;
}

.survey-scale-hint {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.survey-ratings {
  display: grid;
  gap: 12px;
  padding-bottom: 8px !important;
}

.survey-rate-row {
  margin: 0;
  border: 1px solid rgba(143, 164, 200, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 12, 22, 0.28);
}

.survey-rate-row legend {
  padding: 0;
  margin-bottom: 8px;
  float: none;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 900;
}

.survey-score {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.survey-score label {
  position: relative;
  cursor: pointer;
}

.survey-score input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-score span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(143, 164, 200, 0.28);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  font-size: 0.88rem;
}

.survey-score label:hover span,
.survey-score label.on span,
.survey-score label:has(input:checked) span {
  border-color: rgba(61, 95, 154, 0.9);
  background: rgba(61, 95, 154, 0.28);
  color: #fff;
}

.survey-score label.na span {
  min-width: 44px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.survey-footer {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 8px 0 24px;
}

.survey-btn {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.survey-btn.primary {
  background: var(--purple);
  color: #fff;
}

.survey-btn.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.survey-fineprint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.survey-error {
  margin: 0;
  color: #ff8fa3;
  font-weight: 850;
}

.survey-thanks[hidden],
.survey-error[hidden] {
  display: none !important;
}

.survey-thanks-card {
  margin: 24px 0 48px;
  padding: 28px 22px;
  border-radius: 12px;
  border: 1px solid rgba(201, 166, 107, 0.35);
  background: rgba(21, 29, 46, 0.95);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.survey-thanks-badge {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(201, 166, 107, 0.2);
  color: var(--accent-warm);
  font-size: 1.35rem;
}

.survey-thanks-card h2 {
  margin: 0;
  font-size: 1.45rem;
}

.survey-thanks-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 750;
  max-width: 36ch;
}

.req {
  color: #ff8fa3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .survey-star span[aria-hidden="true"] {
    min-width: 42px;
    height: 42px;
  }
  .survey-score span {
    min-width: 34px;
    height: 34px;
  }
}
