:root {
  --brand-primary: #319795;
  --brand-secondary: #2d3748;
  --brand-success: #38a169;
  --page-bg: #edf2f7;
  --card-bg: #ffffff;
}

body {
  background-color: var(--page-bg);
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ── Card ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* ── Card Header ────────────────────────────────────────────────────────── */

.card-header {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-weight: 600;
  padding: 1rem 1.5rem !important;
}

/* ── Progress Bar ───────────────────────────────────────────────────────── */

.progress {
  height: 1rem;
  background-color: #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}
.progress-bar {
  background-color: var(--brand-success) !important;
  border-radius: 0.75rem;
}

/* ── Rating Buttons ─────────────────────────────────────────────────────── */

.btn-check {
  position: absolute !important;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

.btn-group.btn-group-lg {
  display: flex !important;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Always filled teal with white text */
.btn-outline-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
  border-radius: .5rem !important;
}

/* Much darker hover */
.btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary {
  background-color: #19635b !important;
  border-color: #19635b !important;
  color: #fff !important;
}

.btn-group.btn-group-lg .btn {
  flex: 1;
  min-width: 0;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding: 0;
  transition: background-color .2s, color .2s;
}

/* ── Helper Text & Validation ──────────────────────────────────────────── */

.form-text {
  font-size: .9rem;
  color: #4a5568;
  text-align: center;
  margin-bottom: 1rem;
}

.needs-validation .invalid-feedback {
  display: block;
  text-align: center;
  margin-top: .5rem;
}

/* ── Next / Back Buttons ───────────────────────────────────────────────── */

/* Base styling for both */
.btn-primary,
.btn-back,
.btn-outline-secondary {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0.5rem !important;
  padding: .75rem 1.5rem !important;
  font-size: 1rem !important;
  color: #fff !important;
}

/* “Next” */
.btn-primary {
  background-color: var(--brand-primary) !important;
}
/* Much darker hover for Next */
.btn-primary:hover {
  background-color: #195a58 !important;
}

/* “Back” */
.btn-back {
  background-color: var(--brand-secondary) !important;
}
.btn-back:hover {
  background-color: #26323e !important;
}

/* outline-secondary if ever used */
.btn-outline-secondary {
  background-color: var(--brand-secondary) !important;
}
.btn-outline-secondary:hover {
  background-color: #26323e !important;
}

/* survey cards: clear any old overrides */
.card {
  border: none !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.card-body {
  padding: 1.5rem !important;
}

/* Group label spacing */
.mb-4 { margin-bottom: 1.5rem !important; }

/* Next/Back row */
.row.mt-4 .col-12,
.row.mt-4 .col-6 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Center text utilities */
.text-center { text-align: center !important; }
.text-start  { text-align: left   !important; }
.text-end    { text-align: right  !important; }

/* ── Remove focus outline ──────────────────────────────────────────────── */

.btn:focus,
.btn:active,
.btn-back:focus,
.btn-back:active,
.btn-primary:focus,
.btn-primary:active,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  outline: none !important;
  box-shadow: none !important;
}
