body {
  background: url("../assets/bg.png") no-repeat center center fixed;
  background-size: cover;
  
   font-family: "Inter", sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.logo {
  width: 150px;
  position: absolute;
  top: 25px;
  left: 40px;
}

.quiz-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
  margin-bottom: 10px; 
}

.virus {
  width: 66px;
  height: auto;
}

.man {
  width: 60px;
  height: auto;
  border-radius: 10px;
}

.complication-box,
.question-box {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 15px 15px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
 
  
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  
}

.question-box {
  background: #f4f4f4;
  font-weight: 500;
   max-width: 728px;
   width: 730px;
  
}
.complication-box{
  max-width: 740px;
}

.complication-text sup,
.question-intro sup {
  font-size: 0.8em;
  /* color: #d91f26; */
}

.main-question-box {
  background: #fff;
  border-radius: 20px;
  padding: 50px 60px;
  max-width: 1100px;
 
  text-align: left;
  margin: 0 auto;
  margin-top: 40px;
  /* box-shadow: 20px 4px 12px rgba(0, 0, 0, 0.1) !important; */
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.35),
              0px 8px 50px rgba(0, 0, 0, 0.25) !important
}
.main-question-box .question-text {
  text-align: center; 
  line-height: 1.5;
}

.option-btn {
 display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background-color: #E8E8E8;
    border: none;
    border-radius: 40px;
    /* padding: 6px 30px; */
    font-size: 14px;
    transition: 0.3s ease;
    text-align: left;
    height: 44px !important;
    margin-bottom: 15px;
}

.option-btn:hover {
  background-color: #e8e8e8;
}

.option-letter {
  background-color: #d91f26;
  color: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-weight: bold;
  flex-shrink: 0;
}

.option-btn.correct {
  background-color: #BFF7B7 !important; 
  color: #249B00;
}

.option-btn.wrong {
  background-color: #f7c5c5 !important; 
}

.references {
  width: 88%;
  /* max-width: none;  */
  text-align: left;
  margin: 60px 0 40px 0;
  padding: 0 40px; 
  position: relative;
  box-sizing: border-box;
  color: #000;
font-family: "Inter";
font-size: 13px;
font-style: normal;
/* font-weight: 700; */
line-height: normal;
}

.ref-text {
  line-height: 1.5;
}

.sub-grid {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  height: 100%; 
  display: flex;
  flex-direction: column;
}

.sub-grid h6 {
  color: #333;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sub-option-btn {
  background-color: #fff !important;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

/* Modal Styles */
#nextQuizModal .modal-body {
  font-size: 14px;
}

#nextQuizModal .ref-text {
  font-size: 12px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .main-question-box {
    padding: 25px;
  }

  .option-btn {
    font-size: 15px;
    height: auto;
    padding: 15px 20px;
  }

  .complication-box,
  .question-box {
    width: 90%;
    flex-direction: column;
    text-align: center;
  }

  .virus,
  .man {
    margin-bottom: 10px;
  }

  .logo {
    left: 20px;
    width: 120px;
  }

  .references {
    margin-left: 20px;
    max-width: 90%;
  }

  /* For sub grids on mobile: add extra spacing when stacking */
  .row.gx-4 > .col-md-6 {
    margin-bottom: 1rem;
  }

  .sub-grid .row > .col-md-6 {
    margin-bottom: 0.5rem;
  }

  #nextQuizModal .modal-dialog {
    margin: 1rem;
  }

  
  .sub-grid {
    min-height: 150px; 
  }
}

/* Custom modal overlay - Updated to ensure full coverage */
.custom-modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw; /* Use viewport width for full coverage */
  height: 100vh; /* Use viewport height for full coverage */
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevent scroll issues */
}

/* Ensure html and body don't interfere when modal is open */
.custom-modal[style*="display: block"],
.custom-modal[style*="display: flex"] {
  /* This targets when modal is shown via JS */
}

html.custom-modal-open,
body.custom-modal-open {
  overflow: hidden; /* Prevent body scroll when modal open */
  height: 100vh;
}

/* Modal content */
.custom-modal-content {
  background: #fff;
  border-radius: 25px;
  text-align: center;
      max-width: 577px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 90vh; /* Limit content height */
  overflow-y: auto; /* Allow scroll inside if needed */
}

.doctor-img {
  width: 120px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 20px;
}

.custom-modal-text {
  font-size: 16px;
  color: #333;
  line-height: 1.3;
  margin-bottom: 25px;
}

.custom-modal-text b {
  font-weight: 600;
}

.custom-next-btn {
     background: #d91f26;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 25px;
    font-size: 16px;
    transition: 0.3s;
    width: 156px;

}

.custom-next-btn:hover {
  background: #b81a20;
}

.floating-references {
  position: fixed;
  bottom: 15px;
  right: 60px !important;
  width: 90%;
  max-width: none; 
  
  z-index: 10000; 


  color: #FFF;
font-family: "Inter";
font-size: 14px;
font-style: normal;
font-weight: 300;
line-height: normal;

  text-align: left;
}

.floating-references p {
  margin: 0 0 4px;
  color: white;
}
.floating-references a {
  
  color: white;
}

.wrong-img {
  width: 120px;
  height: 100px;
  border-radius: 50%; 
  margin-bottom: 20px;
}

/* Final Modal Specific Styles */
.final-modal-content {
  background: #fff;
  border-radius: 25px;
  text-align: center;
  max-width: 600px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  height: 90vh;
  overflow-y: auto;
}

.virus-large {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.final-complication-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

.final-complication-text sup {
  font-size: 0.8em;
  color: #d91f26;
}

.safety-info-box {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
}

.safety-info-box strong {
  color: #333;
}

.report-box {
  background: #e8f4fd;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  font-size: 11px;
}

.final-question-text {
  color: #333;
  font-size: 16px;
}

.final-option-btn {
  margin-bottom: 10px;
  justify-content: center;
  text-align: center;
}

.final-option-btn.correct {
  background-color: #c8f7c5 !important;
}

.gsk-branding {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.gsk-logo {
  width: 60px;
  height: auto;
}

.qr-code {
  width: 60px;
  height: auto;
}

/* Responsive for final modal */
@media (max-width: 768px) {
  .final-modal-content {
    max-width: 90%;
    padding: 20px;
    height: 95vh;
  }
  
  .gsk-branding {
    bottom: 10px;
  }
}

#finalCompletionModal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
}

.final-modal-content {
  background: #fff;
  border-radius: 16px;
  /* padding: 25px 40px; */
  width: 90%;
  max-width: 1300px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: #111;
}

.final-main-text {
  font-size: 0.8rem;
  font-weight: bold;
  text-align: left;
  color: #222;
  margin-bottom: 10px;
}

.final-info-box {
  /* border: 2px solid #ccc; */
  /* border-radius: 10px; */
  /* padding: 12px 18px; */
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: #222;
  flex: 1;
  overflow: hidden; 
}

.final-info-box p {
  margin-bottom: 6px;
}

.final-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.final-gsk-logo {
  height: 40px;
}

.final-qr {
  height: 60px;
}

.final-finish-btn {
  background-color: #d71920;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 8px 45px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.final-finish-btn:hover {
  background-color: #b3131a;
  color: white;

}

/* Responsive */
@media (max-width: 768px) {
  .final-modal-content {
    padding: 15px 25px;
    height: 90vh;
  }
  .final-info-box {
    font-size: 0.85rem;
  }
  .final-qr {
    height: 50px;
  }
  .final-gsk-logo {
    height: 35px;
  }
}
.ref-text a {
  color: inherit !important;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ref-text a:hover {
  color: #0056b3;
}
.btn-Next{
  background-color: #D72026;
  color: white;
  border-radius: 20px;
}
.btn-Next:hover{
  background-color: #93191d;
  color: white;
  
}

.submit-quiz:disabled {
  
  background-color: #e9ecef !important; 
  color: #6c757d !important; 
  border-color: #ced4da !important; 
  cursor: not-allowed !important; 
  transform: scale(0.98); 
  transition: all 0.3s ease; 
}