/* Base font and background */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #212529;
  line-height: 1.5;
}

/* Question card styling */
.question-card {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
  border: 1px solid #e3e6ea;
}

.question-card:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}

.question-card h5 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #0d6efd; /* Bootstrap primary blue */
}

/* Form check (radio) styling */
.form-check {
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-check-input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  border: 2px solid #ced4da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  background-color: white;
  appearance: none;
  outline-offset: 2px;
  position: relative;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 0 5px #0d6efdaa;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
}

/* Label clickable and aligned */
.form-check-label {
  cursor: pointer;
  flex-grow: 1;
}

/* Button styling */
#submitBtn {
  min-width: 180px;
  padding: 0.65rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 3px 6px rgb(13 110 253 / 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#submitBtn:hover,
#submitBtn:focus {
  background-color: #0b5ed7;
  box-shadow: 0 6px 12px rgb(13 110 253 / 0.6);
}

/* Results container */
#results {
  margin-top: 2rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
  padding: 1.75rem 2rem;
  border-left: 6px solid #0d6efd; /* default blue border */
  transition: border-color 0.3s ease;
}

.risk-low {
  border-left-color: #198754; /* green */
}

.risk-medium {
  border-left-color: #ffc107; /* yellow */
}

.risk-high {
  border-left-color: #dc3545; /* red */
}

#results h4 {
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.75rem;
}

#results p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #495057;
}

#results hr {
  margin: 1rem 0;
  border-color: #dee2e6;
}

/* Category insights row */
.category-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  gap: 1rem;
}

.category-row:last-child {
  border-bottom: none;
}

.category-row > div:first-child {
  max-width: 75%;
}

.category-row strong {
  font-weight: 600;
  font-size: 1rem;
  color: #0d6efd;
}

.category-row small {
  color: #6c757d;
  font-size: 0.9rem;
  display: block;
  margin-top: 0.15rem;
  line-height: 1.3;
}

/* Risk badges */
.badge-low,
.badge-medium,
.badge-high {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4em 0.75em;
  border-radius: 1rem;
  min-width: 90px;
  text-align: center;
  user-select: none;
  box-shadow: 0 0 5px rgb(0 0 0 / 0.05);
}

.badge-low {
  background-color: #198754;
  color: white;
}

.badge-medium {
  background-color: #ffc107;
  color: #212529;
}

.badge-high {
  background-color: #dc3545;
  color: white;
}
