body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #2a2a2a;
  min-height: 100vh;
}

#surveyElement {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animate page transitions */
.sd-body--static {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Smooth hover on buttons */
.sd-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.sd-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Animate dropdowns on focus */
.sd-input:focus {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.25);
}

/* Validation error shake */
.sd-question--error {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

/* Progress bar styling */
.sd-progress {
  transition: width 0.5s ease !important;
}

/* Button-style radio choices */
.sd-radiogroup .sd-item {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.sd-radiogroup .sd-item label {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.sd-radiogroup .sd-item:hover {
  border-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27, 94, 32, 0.2);
}

.sd-radiogroup .sd-item--checked {
  border-color: #1b5e20;
  background: rgba(27, 94, 32, 0.1);
  box-shadow: 0 2px 12px rgba(27, 94, 32, 0.25);
  color: #1b5e20;
}

/* Hide the default radio circle */
.sd-radiogroup .sd-item__decorator {
  display: none;
}

.sd-radiogroup .sd-item__control-label {
  font-size: 1.2em;
  font-weight: 600;
}

/* Survey background white */
.sd-root-modern {
  background: #fff !important;
}

.sd-body {
  background: #fff !important;
}

/* Dark green navigation buttons */
.sd-btn--action {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
}

.sd-btn--action:hover {
  background-color: #2e7d32 !important;
  border-color: #2e7d32 !important;
}
