.RajasthanCET-wrapper {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.RajasthanCET-container {
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.12);
  max-width: 760px;
  width: 100%;
  padding: 36px;
  position: relative;
  transition: all 0.22s ease;
  box-sizing: border-box;
  margin: 0;
  min-height: 400px;
}

/* Only added !important to critical fullscreen layout properties */
.RajasthanCET-container.RajasthanCET-fullscreen {
  max-width: none !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  padding: 20px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow-y: auto !important;
  position: fixed !important; /* Ensures it sits on top of Divi header/footer */
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  min-height: auto !important;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-quiz-screen {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-result-screen {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-result-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-all-answers {
  margin-top: 18px;
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
  width: 100%;
}

.RajasthanCET-fullscreen-control {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.RajasthanCET-timer-control {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: none;
}

/* FULLSCREEN BUTTON - Forced overrides for Divi compatibility */
.RajasthanCET-fullscreen-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  cursor: pointer !important;
  border: none !important;
  background: rgba(255,255,255,0.92) !important;
  color: #333 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  border: 1px solid rgba(15,25,60,0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important; /* Prevent Divi from adding extra padding */
  line-height: 1 !important;
}

.RajasthanCET-fullscreen-btn:hover {
  background: rgba(99,110,255,0.12) !important;
  color: #2b3db3 !important;
}

.RajasthanCET-fs-icon {
  font-size: 18px;
  font-weight: bold;
}

.RajasthanCET-timer {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  padding: 6px 10px;
  min-width: 86px;
  text-align: center;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(15,25,60,0.04);
}

.RajasthanCET-title {
  color: #3b5bd3;
  text-align: center;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
}

.RajasthanCET-input-group {
  margin-bottom: 12px;
}

.RajasthanCET-label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  font-size: 13px;
}

.RajasthanCET-input {
  width: 100%;
  padding: 10px;
  border: 1.6px solid #e5e7ef;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.RajasthanCET-input:focus {
  outline: none;
  border-color: #3b5bd3;
  box-shadow: 0 6px 18px rgba(59,91,211,0.06);
}

/* GENERAL BUTTON BASE - Forced overrides */
.RajasthanCET-btn {
  width: 100% !important;
  padding: 12px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-transform: none !important; /* Prevent Divi uppercase */
  letter-spacing: normal !important;
  box-shadow: none !important; /* Reset Divi shadows */
}

/* PRIMARY BUTTON - Forced overrides */
.RajasthanCET-btn-primary {
  background: linear-gradient(135deg,#667eea 0%,#764ba2 100%) !important;
  color: white !important;
}

/* SECONDARY BUTTON - Forced overrides */
.RajasthanCET-btn-secondary {
  background: #f0f2f6 !important;
  color: #333 !important;
}

.RajasthanCET-hidden {
  display: none !important;
}

.RajasthanCET-question-container {
  margin: 18px 0;
}

.RajasthanCET-question-number {
  color: #667eea;
  font-weight: 700;
  margin-bottom: 8px;
}

.RajasthanCET-question-text {
  font-size: 18px;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.45;
}

.RajasthanCET-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.RajasthanCET-option {
  padding: 12px;
  border: 1.6px solid #e7e9f2;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s ease;
  background: white;
  box-sizing: border-box;
  gap: 20px;
}

.RajasthanCET-option:hover:not(.RajasthanCET-locked) {
  border-color: #667eea;
  background: #f8f9ff;
}

.RajasthanCET-option.RajasthanCET-selected {
  border-color: #667eea;
  background: #f0f3ff;
}

.RajasthanCET-option.RajasthanCET-correct {
  border-color: #28a745;
  background: #eaf9ef;
}

.RajasthanCET-option.RajasthanCET-incorrect {
  border-color: #e23f3f;
  background: #fff0f0;
}

.RajasthanCET-option.RajasthanCET-locked {
  cursor: not-allowed;
  opacity: 0.98;
}

.RajasthanCET-navigation {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* NAVIGATION BUTTONS - Forced overrides */
.RajasthanCET-navigation button {
  flex: 1 !important;
  width: auto !important; /* Allow flex to control width */
}

.RajasthanCET-result-container {
  text-align: center;
}

.RajasthanCET-score {
  font-size: 44px;
  color: #3b5bd3;
  font-weight: 800;
  margin: 12px 0;
}

.RajasthanCET-all-answers {
  margin-top: 18px;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.RajasthanCET-container:not(.RajasthanCET-fullscreen) .RajasthanCET-all-answers {
  overflow-y: visible;
  max-height: none;
}

.RajasthanCET-answer-item {
  margin-bottom: 18px;
  padding: 14px;
  background: #fbfdff;
  border-radius: 8px;
  border: 1px solid #f0f4ff;
}

.RajasthanCET-answer-item:last-child {
  margin-bottom: 0;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-all-answers::-webkit-scrollbar {
  width: 8px;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-all-answers::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-all-answers::-webkit-scrollbar-thumb {
  background: #c2c9db;
  border-radius: 4px;
}

.RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-all-answers::-webkit-scrollbar-thumb:hover {
  background: #a0a8c2;
}

@media (max-width: 520px) {
  .RajasthanCET-container {
    padding: 18px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
  }
  
  .RajasthanCET-timer {
    min-width: 70px;
    font-size: 13px;
    padding: 5px 8px;
  }
  
  .RajasthanCET-fullscreen-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .RajasthanCET-container.RajasthanCET-fullscreen {
    padding: 15px !important;
    justify-content: flex-start !important;
    min-height: auto !important;
  }
  
  .RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-all-answers {
    max-height: 50vh;
  }
  
  .RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-fullscreen-control {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-timer-control {
    position: absolute;
    top: 10px;
    left: 10px;
  }
  
  .RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-fullscreen-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }
  
  .RajasthanCET-container.RajasthanCET-fullscreen .RajasthanCET-timer {
    min-width: 65px;
    font-size: 12px;
    padding: 4px 6px;
  }
  
  .RajasthanCET-options-container {
    gap: 12px;
  }
}