/* =========================================
   BASE
   ========================================= */
body {
  font-family: "Poppins", Arial, sans-serif;
  background: #f0f4fb;
}

/* =========================================
   CARD CONTAINER
   ========================================= */
.governance-container {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(37, 99, 235, 0.1);
}

.governance-container h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f2f52;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.governance-container h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 14px;
  line-height: 1.5;
}

.governance-container p {
  font-size: 14px;
  color: #6c7a89;
  margin-bottom: 4px;
  line-height: 1.6;
}

.governance-container .subtext {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 24px;
  display: block;
}

/* =========================================
   PROGRESS
   ========================================= */
.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   FORM LAYOUT
   ========================================= */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

/* =========================================
   INPUTS & SELECT
   ========================================= */
.form-group input,
.form-group select,
.select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.select:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus) {
  border-color: #9ca3af;
}

/* Question dropdown (non-form context) */
select.select {
  margin-top: 4px;
  cursor: pointer;
}

/* =========================================
   VALIDATION HELPERS
   ========================================= */
.required {
  color: #ef4444;
}

.error-text {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* =========================================
   BUTTONS
   ========================================= */
.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 10px;
}

.button-group.intro-actions {
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
  pointer-events: auto;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4fd8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4fd8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

.btn.secondary {
  background: #f1f5f9;
  color: #374151;
  border: 1.5px solid #e2e8f0;
  pointer-events: auto;
}

.btn.secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn.secondary:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================
   RESULT PAGE
   ========================================= */
.result-card {
  max-width: 560px;
  margin: 48px auto;
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 55%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 38px 36px 32px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 16px 48px rgba(37, 99, 235, 0.14);
  font-family: "Poppins", Arial, sans-serif;
}

.result-greeting {
  font-size: 17px;
  color: #0f2f52;
  margin-bottom: 14px;
}

.result-text {
  font-size: 14px;
  color: #1e3a5f;
  line-height: 1.7;
  margin-bottom: 12px;
}

.explore-link {
  display: inline-block;
  margin: 6px 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1.5px solid #93c5fd;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.explore-link:hover {
  color: #1d4ed8;
  border-color: #2563eb;
}

/* ---- Speedometer ---- */
.speedometer-wrap {
  margin-top: 10px;
  text-align: center;
}

.speedometer-svg {
  width: 220px;
  height: 120px;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.result-score-badge {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 8px 0 6px;
}

.result-score-red {
  color: #dc2626;
}

.result-score-amber {
  color: #d97706;
}

.result-score-green {
  color: #16a34a;
}

.result-eval-msg {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

/* ---- PDF download row ---- */
.pdf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 6px;
  flex-wrap: wrap;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  background: #0f2f52;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 47, 82, 0.25);
}

.pdf-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.pdf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pdf-hint {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
