body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  padding: 40px 20px;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section {
  margin-bottom: 20px;
}

.section-header {
  margin-bottom: 20px;
  text-align: center;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

.question-div {
  padding: 20px;
  background-color: #eaf6ff; /* Soft Sky Blue Background */
  border-radius: 12px;
  border: 2px solid #d0e9ff; /* Light blue border */
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.question-div h4 {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-bottom: 10px;
}

.question-label {
  font-size: 16px;
  color: #444;
  margin-bottom: 5px;
  display: block;
}

.description {
  font-style: italic;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

input[type="text"], select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 10px;
  margin-bottom: 15px;
  background-color: #fff;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
}

.btn-next, .btn-prev {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-next:disabled, .btn-prev:disabled {
  background-color: #ccc;
}

.btn-prev {
  background-color: #6c757d;
}

/* Center the icon section */
#section-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #e0e0e0; /* Inactive: gray */
  color: white;
  font-size: 30px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add box-shadow */
}

/* Active icon background */
.icon-container.active {
  background-color: #e74c3c; /* Active: bright red */
  color: white;
}

/* Completed icon background */
.icon-container.completed {
  background-color: #8b0000; /* Completed: dark red */
  color: white;
}

/* Inactive icon background */
.icon-container.inactive {
  background-color: #e0e0e0; /* Inactive gray */
  color: white;
}

.icon-container i {
  font-size: 30px;
}







/* Styles for section and result icons */
.section-results-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.section-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.section-title {
  flex: 3;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.section-icon {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-score {
  flex: 1;
  font-size: 16px;
  text-align: center;
}

.score-face-image {
  width: 40px; /* Set fixed width */
  height: 40px; /* Set fixed height */
}

.section-icon-button {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.section-icon-button i {
  font-size: 20px; /* Adjust the icon size */
  color: #333;
}

/* Additional styling for the modal and content */
.overall-score-container {
  text-align: center;
  font-size: 18px;
  margin-top: 20px;
}

#download-pdf-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 16px;
}

#myChart {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
}

.overall-evaluation {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 20px 0 10px;
}

.evaluation-description {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}
/* CSS for the FontAwesome icons */
.score-face-icon {
  font-size: 40px; /* Adjust the size as needed */
  margin-right: 8px; /* Add some spacing */
}

/* Styling for the happy, average, and sad icons */
.icon-happy {
  color: green; /* Happy icon color */
}

.icon-average {
  color: orange; /* Average icon color */
}

.icon-sad {
  color: red; /* Sad icon color */
}

/* Additional styling for section results table */
.section-results-table {
  width: 100%;
  border-collapse: collapse;
}

.section-results-table td {
  padding: 8px;
  vertical-align: middle;
}

.section-title {
  display: flex;
  align-items: center;
}

.section-icon-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
}
/* CSS for the FontAwesome icons */
.score-face-icon {
  font-size: 24px; /* Adjust the size as needed */
  margin-right: 8px; /* Add some spacing */
}

/* Additional styling for section results table */
.section-results-table {
  width: 100%;
  border-collapse: collapse;
}

.section-results-table td {
  padding: 8px;
  vertical-align: middle;
}

.section-title {
  display: flex;
  align-items: center;
}

.section-icon-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
}
.section-icon-placeholder {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  background-color: #f8f9fa;
  margin-right: 10px;
}

.section-result-row {
  vertical-align: middle;
}

.section-divider {
  margin: 8px 0;
  border: none;
  height: 1px;
  background-color: #e0e0e0;
}

.score-face-icon {
  font-size: 24px; /* Larger face icon */
}
/* .score-card {
  width: 350px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
} */
.gauge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  position: relative;
}
.gauge {
  width: 120px;
  height: 60px;
  position: relative;
  overflow: hidden;
}
.bar-container {
  width: 35%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 10px;
}
.bar {
  height: 100%;
  transition: width 2s ease;
}
.bar.red {
  background-color: #ff6b6b;
  width: 0;
}
.bar.yellow {
  background-color: #fcd34d;
  width: 0;
}
.bar.green {
  background-color: #4ade80;
  width: 0;
}
.icon {
  font-size: 16px;
}
.face-icon {
  font-size: 16px;
  border: 2px solid;
  border-radius: 50%;
  padding: 2px;
  margin-left: 8px;
  transition: all 0.3s ease;
}
.face-icon.red {
  color: #ff6b6b;
  border-color: #ff6b6b;
}
.face-icon.yellow {
  color: #fcd34d;
  border-color: #fcd34d;
}
.face-icon.green {
  color: #4ade80;
  border-color: #4ade80;
}
.download-button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding: 12px 0;
  background-color: #0288d1;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.modal-content {
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 2px solid transparent;
  position: relative;
  transition: border 0.5s ease;
}
.modal-content:hover {
  border: 2px solid #4f46e5;
}
.modal-header {
  background-color: #eef2f9;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  border-bottom: none;
  text-align: center;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.modal-header .btn-close {
  opacity: 0.6;
  position: absolute;
  top: 20px;
  right: 20px;
}
.modal-header .btn-close:hover {
  opacity: 1;
}
.score-card h2, .score-card p {
  text-align: center;
  margin: 0;
}
.score-card h2 {
  font-size: 22px;
  margin-top: 10px;
  font-weight: 700;
  color: #4f46e5;
}
.score-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}
.gauge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  position: relative;
}
.gauge {
  width: 120px;
  height: 60px;
  position: relative;
  overflow: hidden;
}
.gauge .arc {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 120px 120px 0 0;
  border: 8px solid transparent;
  border-bottom: 0;
}
.gauge .arc.red {
  border-color: #ff6b6b;
  clip: rect(0px, 120px, 60px, 0px);
  transform: rotate(45deg);
}
.gauge .arc.yellow {
  border-color: #fcd34d;
  clip: rect(0px, 120px, 60px, 0px);
  transform: rotate(135deg);
}
.gauge .arc.green {
  border-color: #4ade80;
  clip: rect(0px, 120px, 60px, 0px);
  transform: rotate(225deg);
}
.needle {
  position: absolute;
  width: 4px;
  height: 60px;
  background-color: #333;
  top: 100%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(40deg);
}
.score {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 10px;
}
#myChart-license-text {
  display: none;
}
.feedback {
  position: absolute;
  top: 280px;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}
.feedback h3 {
  font-size: 16px;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 10px;
}
.pdf-feedback {
  position: absolute;
  top: 210px;
  text-align: center;
  padding: 0 20px;
  font-size: 14px;
  color: #555;
  z-index: 1000;
}
.pdf-feedback h3 {
  font-size: 16px;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 10px;
}
.sections {
  background: #e0f7fa;
  padding: 20px 15px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 12px;
}
.section:hover {
  background-color: #f1f4ff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 30%;
  font-size: 12px;
}
.bar-container {
  width: 35%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}
.bar {
  height: 100%;
  transition: width 2s ease; /* Bar animation */
}
.bar.red {
  background-color: #ff6b6b;
  width: 0; /* Initial width for animation */
}
.bar.yellow {
  background-color: #fcd34d;
  width: 0; /* Initial width for animation */
}
.bar.green {
  background-color: #4ade80;
  width: 0; /* Initial width for animation */
}
.icon {
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
  color: #b0b3c2; /* Default gray color */
}
.section:hover .icon.green {
  color: #4ade80;
  transform: scale(1.1);
}
.section:hover .icon.yellow {
  color: #fcd34d;
  transform: scale(1.1);
}
.section:hover .icon.red {
  color: #ff6b6b;
  transform: scale(1.1);
}
.face-icon {
  font-size: 16px;
  border: 2px solid;
  border-radius: 50%;
  padding: 2px;
  margin-left: 8px;
  transition: all 0.3s ease;
}
.face-icon.red {
  color: #ff6b6b;
  border-color: #ff6b6b;
}
.face-icon.yellow {
  color: #fcd34d;
  border-color: #fcd34d;
}
.face-icon.green {
  color: #4ade80;
  border-color: #4ade80;
}
.download-button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 10px 0;
  background-color: #4f46e5;
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
  font-size: 14px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}
.download-button:hover {
  background-color: #4338ca;
}
.footer {
  font-size: 11px;
  color: #aaa;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}
.download-section {
  /* padding-top: 20px; */
  position: relative;
  margin-top: -40px;
  /* margin-top: 30px; This will move the section a bit higher */
}

.download-button {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border-radius: 25px;
  background-color: #007bff;
  color: white;
  border: none;
  transition: all 0.3s ease;
  margin: 0 auto; /* Center the button */
  display: block;
}

.download-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-3px); /* Small upward movement on hover */
}

.footer-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 10px;
}

.loading-icon {
  display: none; /* Hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000; /* Ensure it's above other content */
}
/* Ensure the section stays centered on mobile and smaller screens */
@media (max-width: 768px) {
  .download-button {
    max-width: 100%;
    width: 100%; /* Full width for smaller screens */
  }
}
/* Style for invalid text inputs and dropdowns */
.invalid-field {
  border: 2px solid red !important;
  background-color: #f8d7da !important; /* Optional: light red background for visibility */
}

.invalid-dropdown {
  border: 2px solid red !important;
  background-color: #f8d7da !important; /* Optional: light red background for dropdowns */
}

/* For checkbox and radio groups, highlight the container */
.question-div.invalid {
  border: 2px solid red !important;
  padding: 10px;
  background-color: #f8d7da !important;
}
body {
  font-family: 'Arial', sans-serif;
  position: relative;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  background-attachment: fixed;
}
/* Full-screen dark overlay */
#basic-loader-modal {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark background with opacity */
  z-index: 9999; /* Ensure it appears above all content */
  display: flex;
  justify-content: center;
  align-items: center;
}

#basic-loader-modal .modal-dialog {
  pointer-events: none; /* Prevent interactions with the background */
}

#loader_container img {
  width: 80px; /* Adjust loader size */
}
