body {
  background-color: #f7f7f7;
  font-family: "Roboto", sans-serif;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.toggle-container {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  font-family: Arial, sans-serif;
}

.bg-for-toggle-btn {
  height: 70px;
  /* width: 100%; */
  background-color: #004480;
  display: flex;
  align-items: center;
  padding: 0px 20px;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
  font-size: 18px;
}

.active {
  background-color: #8bc53f;
  /* Green */
  color: white;
}

.inactive {
  background-color: white;
  color: #8bc53f;
}

.toggle-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toggle-icon:hover {
  color: #e74c3c; /* red tone for reset hint */
}

/* SELECTION NEXT */
.section-header {
  display: flex;
  background-color: white;
  height: 48px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  width: 100vw;
  padding-top: 153px;
  z-index: 10;
}

.section-headerr {
  display: flex;
  background-color: white;
  height: 48px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  width: 100vw;
  /* padding-top: 153px; */
  z-index: 10;
}

#question-section-header {
  padding-top: 153px;
}

#form-section-header {
  padding-top: 153px;
}

.section-title p {
  font-size: 20px;
  font-weight: 900 !important;
  color: #000;
}

.next-button {
  background-color: #004480;
  color: white;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-right: 40px;
}

#chapterList {
  padding-top: 70px;
}

.next-button:hover {
  background-color: #003366;
}

/* SELECTION NEXT */

/* BACK BUTTON */
.back-btn {
  display: flex;
  gap: 10px;
  align-items: center;
}

.back-btn img {
  width: 40px;
}

/* BACK BUTTON */

/* CHAPTERS LIST */
.chapters {
  margin: 20px 20px;
  background-color: #ffffff;
  display: flex;
  gap: 20px;
  height: 60px;
  border-radius: 8px;
  align-items: center;
  padding: 5px 30px;
}

input[type="checkbox"] {
  width: 30px;
  height: 30px;
}

/* CHAPTERS LIST */

/* MANUAL DROPDOWN */
.dropdown-container {
  background-color: #fff;
  padding: 10px;
  /* max-width: 320px; */
  margin: auto;
  margin-left: 10px;
  position: relative;
  border-radius: 0px 0px 16px 0px;
  margin-top: 210px;
  position: fixed;
  z-index: 20;
}

label {
  font-size: 16px;
  /* margin-bottom: 10px; */
  display: flex;
  align-items: center;
  /* color: #00427a; */
  color: #000000;
  /* font-weight: 600; */
}

label i {
  margin-right: 8px;
  color: #8dc73f;
}

.custom-select {
  position: relative;
}

select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #00427a;
  background-color: #fff;
  color: #00427a;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-weight: 500;
}

select:focus {
  outline: none;
  border-color: #8dc73f;
  box-shadow: 0 0 0 2px rgba(141, 199, 63, 0.3);
}

.custom-select i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #8dc73f;
  font-size: 16px;
}

/* MANUAL DROPDOWN */

/* QUESTIONS */
.question-block {
  /* border: 2px solid #ccc; */
  border-radius: 10px;
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.question-block-final {
  /* border: 2px solid #ccc; */
  background-color: white;
  padding: 1px;
  margin-bottom: 0px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.question-block:hover {
  background-color: #f0f8ff;
}

.question-block.selected {
  border-color: #00427a;
  background-color: #e0f4e8;
}

.question-header {
  display: flex;
  align-items: center;
}

.question-header input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.3);
  pointer-events: none;
  /* Prevent direct toggle */
}

.question-text {
  font-weight: bold;
  font-size: 14px;
}

.chapter {
  color: #993333;
  font-weight: 500;
  margin-top: 4px;
  font-size: 12px;
}

.answer-section {
  margin-top: 10px;
}

.answer-section p {
  margin: 4px 0;
  font-size: 14px;
}

/* QUESTIONS */

/* Fixed bottom section */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #00427a;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 0px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Fixed bottom section */

/* PAPER DETAILS */
h4 {
  color: #00427a;
}

.form-section {
  /* background: white; */
  padding: 0px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.headingforform {
  color: #00427a;
  font-weight: 900 !important;
  font-size: 1.2rem;
}

.manual-form-section {
  padding: 10px;
}

.automatic-form-section {
  padding: 20px;
}
.manual-form {
  padding: 20px;
}

#manual-form {
  padding-top: 220px;
}

.form-header {
  padding: 15px 30px;
  background-color: #8dc73f40;
  border-bottom: 1px solid #ddd;
}

.form-header p {
  font-size: 16px !important;
  font-weight: bold;
  margin: 5px;
}

.form-header span {
  font-size: 14px !important;
  font-weight: normal;
}

.auto-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px; /* Optional spacing between checkbox and label */
}

.paper-form {
  overflow-x: auto;
  padding: 10px;
  box-sizing: border-box;
}

.automatic-paper-form {
  padding-top: 115px !important;  
}

.paper-form table {
  width: 100%;
  border-collapse: collapse;
}

.paper-form th,
.paper-form td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap; /* Prevents content from wrapping awkwardly */
}
.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.paper-form {
  background-color: white;
  padding: 14px;
  border-radius: 10px;
}
.school-details {
  margin-top: 10px;
  background-color: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20;
}

input[type="text"],
input[type="number"] {
  width: calc(100% - 12px);
  padding: 8px;
  margin-bottom: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

select:disabled,
input[type="number"]:disabled {
  background-color: #eee;
  cursor: not-allowed;
}

.total-box {
  margin-top: 20px;
  font-weight: bold;
  font-size: 20px;
  color: #00427a;
  text-align: right;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

select {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-error {
  color: red;
  margin-bottom: 1px;
  margin-bottom: 10px;
  font-size: smaller;
}

.logo-image-input {
  margin-bottom: 12px;
}

.step-3-table {
  margin-bottom: 10px;
}

/* PAPER DETAILS */
/* PREVIEW */
.download-container {
  display: flex;
  margin-top:0;
  /* width: 100%; */
  /* max-width: 411px; */
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
  position: relative;
  top:350px;
  background:white;
  z-index: -1;  
  padding-top:0px;
  padding-left: 40px;
}

.download-options {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.download-block {
  display: flex;
  padding: 0 10px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  width: 100%;
  justify-content: space-between;
  background-color: #00427a;
}

.download-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 0;
}

.download-title {
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  margin: 0;
}

.format-options {
  display: flex;
  gap: 11px;
}

.format-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 53px;
  height: 39px;
  border-radius: 8px;
  padding: 3px;
  background-color: #fff;
}

.format-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.format-image.word {
  width: 39px;
  height: 39px;
}

.school-info {
  display: flex;
  padding: 14px 29px;
  /* width: 100%; */
  background-color: rgba(141, 199, 63, 0.25);
}

.info-content {
  color: #000;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.32px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .download-container {
      display: flex;
      margin-top:0;
      flex-direction: column;
      gap: 20px;
      padding-right: 40px;
      position: relative;
      top:420px;
      background:white;
      z-index: -1;  
      padding-top:0px;
      padding-left: 40px;
  }

  .download-content {
    flex-direction: column;
    gap: 8px;
  }

  .format-options {
    margin-top: 4px;
  }

  .school-info {
    padding: 12px 20px;
  }
}
/* PREVIEW */

.swal2-confirm-btn {
  background-color: #8ef705 !important; /* green */
  color: rgb(0, 0, 0) !important;
  border: none;
  box-shadow: none;
}

.swal2-cancel-btn {
  background-color: #004480 !important; /* red */
  color: white !important;
  border: none;
  box-shadow: none;
}

.chapter_container {
  cursor: pointer;
  /* border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s; */
}
.chapter_container:hover {
  background-color: #f0f0f0;
}
.chapters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.question-list {
  padding-top: 290px;
  /* margin-top: 10px; */
  margin-bottom: 80px;
  margin-left: 10px;
  margin-right: 10px;
}

.error-text {
  color: red;
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

.input-error {
  border-color: red !important;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  /* position: fixed;
  width: 100%; */
  background-color: #f9f9f9;
  border-bottom: 1px solid red;
}

.info-left .header-image {
  max-height: 80px;
  width: auto;
}

.container-top {
  position: fixed;
  width: 100%;
  z-index: 20;
}

.info-right .contact-box {
  display: flex;
  align-items: flex-start;
  /* padding-right: 50px; */
}

#chapter-section {
  padding-top: 143px;
}

.support-icon {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  margin-top: 3px;
}

.contact-text p {
  margin: 0;
  line-height: 1.2;
  font-size: 10px;
  color: #000000cb;
}
.phone-number {
  font-size: 12px !important;
  color: #000000 !important;
}

.font-size-10 {
  font-size: 10px !important;
}
.font-size-12 {
  font-size: 12px !important;
}
.font-size-14 {
  font-size: 14px !important;
}
.font-size-16 {
  font-size: 16px !important;
}
.font-size-18 {
  font-size: 18px !important;
}
.font-size-20 {
  font-size: 20px !important;
}

.back-btn-arr-img {
  height: 26px !important;
  width: 26px !important;
}

.fab-reset-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  padding: 8px;
  font-weight: bold;
  /* width: 35px;
  height: 35px; */
  border-radius: 5px;
  border: none;
  background-color: rgba(255, 0, 0, 0.982);
  color: rgb(255, 255, 255);
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s ease;
  z-index: 1000;
}

.fab-reset-btn:hover {
  background-color: #76b22f;
  transform: scale(1.1);
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Stack bricks vertically */
  font-family: Arial, sans-serif;
}

.brick-container {
  display: flex;
  flex-direction: column; /* Arrange bricks vertically */
  justify-content: center;
  align-items: center;
}

.brick {
  width: 30px;
  height: 30px;
  background-color: #db3434;
  margin: 5px 0;
  animation: moveBrick 0.6s ease-in-out infinite;
}

.brick:nth-child(1) {
  animation-delay: 0s;
  background-color: #004480;
}

.brick:nth-child(2) {
  animation-delay: 0.2s;
}

.brick:nth-child(3) {
  animation-delay: 0.4s;
  background-color: #004480;
}

.brick:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes moveBrick {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

#loader p {
  color: #333;
  font-size: 16px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
}

@keyframes showLetter {
  to {
    opacity: 1;
  }
}

@media only screen and (max-width: 600px) {
  .download-options {
    position: fixed;
    margin-top: 210px !important;
    width: 90% !important;
    padding: 20px 20px !important;
    flex-direction: column;
    background-color: #ffffff;
  }
  .download-block{
    width: auto;
  }
  .format-icon{
    width: 43px;
    height: 29px;
  }
}

.download-options {
  position: fixed;
  margin-top: 160px;
  width: 98%;
  padding: 70px 20px;
  justify-content: space-between;
  background-color: #ffffff !important;
}
