html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Assessment Form Styles */
.question-card {
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
}

.question-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.score-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.score-display {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
}

.score-number {
  display: inline-block;
  color: #FFD700;
}

.score-max {
  display: inline-block;
  font-size: 1.5rem;
  opacity: 0.8;
}

.percentage {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.grade-badge {
  margin-top: 1rem;
}

.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 12px 40px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  padding: 12px 40px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
}

.card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Shared form page styles (progress steps, questions, floating feedback) */
.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.step.active .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.step.completed .step-number {
  background: #28a745;
  color: white;
}

.step-label {
  font-size: 0.85rem;
  color: #666;
}

.step.active .step-label {
  color: #667eea;
  font-weight: 600;
}

.step.completed .step-label {
  color: #28a745;
}

/* Fieldset used for accessible question grouping — reset default browser chrome */
fieldset.question-item {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset.question-item legend.question-text {
  float: none;
  width: 100%;
  font-size: 1rem;
}

.question-item {
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.question-text {
  color: #333;
  font-weight: 500;
}

.answer-options {
  padding-left: 1rem;
}

.floating-feedback {
  position: fixed;
  top: 80px;
  right: 40px;
  z-index: 1050;
  transition: all 0.3s ease;
  border-radius: 50px !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .floating-feedback {
    position: static !important;
    margin: 0 0 1rem 0;
    border-radius: 8px !important;
    width: 100%;
  }

  .step-label {
    font-size: 0.7rem;
  }
}

/* Results page */
.score-details .score-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
}