/* ── Customer Survey Widget ── */

.survey-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.survey-form h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 24px;
}

/* Sections */
.survey-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
}

.survey-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.survey-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}

/* Text inputs */
.survey-field {
  margin-bottom: 12px;
}

.survey-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.survey-field input,
.survey-field select,
.survey-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--foreground);
  background: #fff;
  box-sizing: border-box;
}

.survey-field input:focus,
.survey-field select:focus,
.survey-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.survey-field textarea {
  resize: vertical;
  min-height: 100px;
}

.survey-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Radio groups */
.survey-radio-group {
  margin-bottom: 16px;
}

.survey-radio-group p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 8px;
}

.survey-radio-options {
  display: flex;
  gap: 20px;
}

.survey-radio-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.survey-radio-options input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

/* Star ratings */
.survey-rating {
  margin-bottom: 20px;
}

.survey-rating p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 6px;
}

.survey-stars {
  display: flex;
  gap: 4px;
}

.survey-star {
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.1s;
}

.survey-star.active {
  color: var(--accent);
}

.survey-star:hover {
  color: var(--accent);
}

/* Checkboxes */
.survey-checkbox-group {
  margin-bottom: 16px;
}

.survey-checkbox-group p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 10px;
}

.survey-checkbox-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.survey-checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.survey-checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Newsletter checkbox */
.survey-newsletter {
  margin-bottom: 20px;
}

.survey-newsletter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
}

.survey-newsletter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Submit */
.survey-submit {
  display: block;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}

.survey-submit:hover { opacity: 0.85; }
.survey-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.survey-disclaimer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

.survey-disclaimer a {
  color: var(--accent);
  text-decoration: underline;
}

/* Success state */
.survey-success {
  text-align: center;
  padding: 48px 24px;
}

.survey-success svg {
  display: block;
  margin: 0 auto 16px;
  color: var(--accent);
}

.survey-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 8px;
}

.survey-success p {
  color: #6b7280;
  font-size: 1rem;
}

/* ── Responsive ── */

@media (min-width: 640px) {
  .survey-row {
    grid-template-columns: 1fr 1fr;
  }

  .survey-checkbox-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 769px) {
  .survey-form {
    padding: 40px 32px;
  }

  .survey-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
