#survey-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1300;
}

#survey-modal.show {
  display: flex;
}

.survey-card {
  width: min(92vw, 560px);
  background: rgba(20, 20, 20, 0.96);
  color: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
}

.survey-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.survey-card p {
  margin: 6px 0;
}

.survey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.survey-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.survey-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px;
  font-size: 14px;
}

.survey-field textarea {
  resize: vertical;
  min-height: 70px;
}

.survey-stars {
  display: flex;
  gap: 4px;
}

.survey-star-btn {
  border: none;
  background: transparent;
  color: #f5c34d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.08s;
}

.survey-star-btn:hover {
  transform: scale(1.12);
}

.survey-star-btn.on {
  color: #ffd86a;
}

.survey-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.survey-btn {
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}

.survey-btn.red {
  background: #d54a3d;
}

.survey-btn.gray {
  background: #6e6e6e;
}

.survey-btn.dark {
  background: #3b3b3b;
}

.survey-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.survey-feedback {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 13px;
}

.survey-feedback.err {
  color: #ff9999;
}

.survey-feedback.ok {
  color: #86f5c7;
}

.survey-check {
  margin-top: 8px;
  font-size: 13px;
  color: #d9d9d9;
}