/* ==================== BASE STYLES ==================== */
:root {
  --primary-color: #198754;
  --primary-dark: #157347;
  --secondary-color: #0d6efd;
  --accent-color: #ff6b35;
  --text-color: #333;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

body {
  background: url('./assets/gz.jpg'); /* Replace with your image URL */
  background-size: cover;       /* Make the image cover the entire viewport */
  background-position: center;  /* Center the image */
  background-repeat: no-repeat; /* Prevent tiling */
  background-attachment: fixed; /* Optional: keeps image fixed while scrolling */
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;

  /* Text & fonts */
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  position: relative;
}

/* Optional: overlay to make text more readable */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(199, 223, 206, 0.4); /* adjust darkness: 0.3 = 30% black overlay */
  z-index: -1; /* behind content */
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.97);
  max-width: 1100px;
  margin: 4rem auto;
  padding: 3rem;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}



/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-color);
}

.section-title {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
  font-size: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

/* ==================== HEADER & BADGE ==================== */
.badge-time {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  display: inline-block;
  margin: 0.5rem 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.badge-time:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ==================== CARDS & CONTAINERS ==================== */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.question-context {
  background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
  border-left: 4px solid var(--secondary-color);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* ==================== FORM STYLES ==================== */
.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==================== CHECKBOX & RADIO STYLES ==================== */
.form-check {
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  min-height: 1.5rem;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
  margin-left: -2rem;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  padding-left: 0.5rem;
}

/* ==================== BUTTON STYLES ==================== */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #146c43);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* ==================== ALERT STYLES ==================== */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.alert-success {
  background: linear-gradient(135deg, #d1e7dd, #a3cfbb);
  color: #0f5132;
  border-left: 4px solid #198754;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f1aeb5);
  color: #842029;
  border-left: 4px solid #dc3545;
}

.alert-info {
  background: linear-gradient(135deg, #cff4fc, #9eeaf9);
  color: #055160;
  border-left: 4px solid #0dcaf0;
}

/* ==================== LOADING OVERLAY ==================== */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

#loadingOverlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ==================== PROGRESS INDICATOR ==================== */
.progress-container {
  position: sticky;
  top: 20px;
  z-index: 100;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.progress-bar {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.section-title {
  animation: slideIn 0.5s ease;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section-title {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col-md-4, .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), #146c43);
}

/* ==================== FORM VALIDATION ==================== */
.is-invalid {
  border-color: #dc3545 !important;
}

.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ==================== SUBMIT SECTION ==================== */
.submit-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.submit-section .form-check {
  text-align: left;
  margin: 1.5rem auto;
  max-width: 600px;
}

/* ==================== TOOLTIPS & HELP TEXT ==================== */
.help-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* ==================== COUNTERS ==================== */
.selection-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-style: italic;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}