:root {
  ---htc-nxt-btn-bg-color: white;
  ---htc-nxt-btn-txt-color: white;
  ---htc-prg-bg-color:#3a3a3a;
  ---htc-checked-bg-color: #3a3a3a;
  ---htc-primary-color: #3a3a3a;
  ---htc-checked-color:white;
  ---htc-secondary-color: #3a3a3a;
  ---htc-secondary-color-actions-button-hover: #3a3a3a;
  ---htc-progress-bar:0%;
  --htc-question-font-size: 28px;
  --htc-question-font-weight: 900;
  --htc-question-color: #000000;
  --htc-question-align: center;
  --htc-subheading-font-size: 16px;
  --htc-subheading-font-weight: 400;
  --htc-subheading-color: #000000;
  --htc-subheading-align: center;
  --htc-bottom-text-color: #000000;
  --htc-bottom-text-align: center;
  --htc-bottom-text-font-size: 16px;
  --htc-bottom-text-font-weight: 400;
  --htc-progress-background-color: #e0e0e0;
  --htc-progress-color: var(---htc-prg-bg-color);
  --htc-progress-point-active-color: var(---htc-primary-color);
  --htc-single-choice-align: start;
  --htc-single-choice-color: #000000;
  --htc-single-choice-font-size : 20px;
  --htc-single-choice-font-weight: 500;
  --htc-single-choice-background-color: #f0f0f0;
  --htc-single-choice-border-radius: 5px;
  --htc-single-choice-hover-color: #fff;
  --htc-single-choice-hover-background-color: #3a3a3a;
   --htc-button-text-color : #ffffff;
  --htc-button-text-font-size: 20px;
  --htc-button-text-font-weight: 900;
  --htc-button-radius: 5px;
  --htc-button-background-color: #3a3a3a;
  --htc-button-hover-color: #ffffff;
  --htc-button-hover-background-color: #2a2a2a;
  --htc-quiz-card-background-color:#ffffff;
  --htc-answer-border-color:#ffffff;
  --htc-progress-point-inactive-color: #e0e0e0;
  --htc-result-header-font-size: 26px;
  --htc-result-header-font-weight: 700;
  --htc-result-header-text-color: #0e1b4d;
  --htc-result-header-text-align: center;
  --htc-result-sub-header-font-size: 16px;
  --htc-result-sub-header-font-weight: 400;
  --htc-result-sub-header-text-color: #000000;
  --htc-result-sub-header-text-align: center;
  --htc-result-card-background-color: #ffffff;
  --htc-result-card-border-radius: 10px;
  --htc-result-card-font-size: 16px;
  --htc-result-card-font-weight: 400;
  --htc-result-card-text-color: #000000;
  --htc-result-card-text-align: center;
  --htc-result-card-button-text-color: #ffffff;
  --htc-result-card-button-text-color-hover: #ffffff;
  --htc-result-card-button-background-color: #3a3a3a;
  --htc-result-card-button-background-color-hover: #2a2a2a;
  --htc-result-card-button-border-radius: 5px;
  --htc-result-card-button-font-size: 16px;
  --htc-result-card-button-font-weight: 500;
  --htc-result-card-button-text-align: center;
  --htc-result-retake-quiz-btn-background-color:#3a3a3a;
  --htc-result-retake-quiz-btn-hover-background-color:#2a2a2a;
  --htc-result-retake-quiz-btn-border-radius: 5px;
  --htc-result-retake-quiz-btn-text-align: center;
  --htc-result-retake-quiz-btn-text-color: #ffffff;
  --htc-result-retake-quiz-btn-text-color-hover:#ffff;
}

.htc-powered-by {
  display: none;
  font-size: 12px;
  background-color: white;
    width: fit-content;
    text-align: center;
    margin: auto;
    padding: 10px 15px;
    border-radius: 25px;

}
.htc-quiz-question-box{
  margin-top: auto;
  margin-bottom: auto;
}

.htc-quiz-box {
  background-color: var(--htc-quiz-card-background-color);
  padding: 0px 48px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  animation: fadeIn 0.5s ease-in-out;
  margin: 20px auto;
  color: #000000;
  min-height: inherit;
  display: flex;
  flex-direction: column;
}
.htc-quiz-box-fullscreen{
  max-width: 700px !important;
  box-shadow: none  !important;
  background-color: transparent !important;
}
.htc-answer-fullscreen {
  width: 80% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.htc-quiz-box h2 {
  margin-bottom: 30px;
  color: #333;
  text-align: center;
  margin-top: 48px;
  font-style: normal;
  font-size: 31px;
  font-weight: bolder;
  border: none;
}

.htc-quiz-box .custom-radio {
  display: none;
}

.htc-quiz-box .radio-label {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.htc-quiz-box.hidden {
  display: none;
}
.htc-input-alert {
  margin-top: 0.35rem;
  color: #dc2626; /* red-600 */
  background: rgba(220, 38, 38, 0.08);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  line-height: 1.3;
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* @keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} */
.htc-loader-container {
  min-height:400px; 
  display:flex;
  align-items:center;
  justify-content:center;
}

.htc-quiz-box .loader,.htc-section .loader {
  width: 48px !important;
  height: 48px !important;
  display: inline-block;
  position: relative;
  margin-left: auto !important;
  margin-right: auto !important;
}

.htc-quiz-box .loader::after,
.htc-section .loader:after,
 .htc-section .loader:before,
.htc-quiz-box .loader::before {
  content: "";
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #000000;
  position: absolute;
  left: 0;
  top: 0;
  animation: animloader 2s linear infinite;
}

.htc-quiz-box .loader::after,.htc-section .loader:after {
  animation-delay: 0.5s;
}
.htc-quiz-box-side {
  width: 65%;
}

@keyframes animloader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}



.htc-action-section {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.htc-quiz-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.htc-stepper-container {
  display: flex !important;
  margin-top: 20px ;
  align-items: center;
  width: 100%;
  max-width: 600px;
}
.htc-quiz-box-fullscreen .htc-stepper-container {
  margin-top: 0px ;
} 

.htc-progress-bar {
  /* display: unset !important; */
  width: 100%;
  height: 8px;
  background: var(--htc-progress-background-color) !important;
  border-radius: 4px;
  position: relative !important;
}

.htc-progress {
  display: block !important;
  width: var(---htc-progress-bar);
  height: 100%;
  background: var(--htc-progress-color) !important;
  border-radius: 4px;
  position: absolute !important;
  top: 0;
  left: 0;
  transition: width 0.5s ease;
}

.htc-stepper {
  display: flex;
  justify-content: space-between;
  position: relative !important;
  top: -3px;
  width: 100%;
  z-index: 1;
  height: 0;
  margin: 0px !important;
}

.htc-step {
  display: unset !important;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--htc-progress-point-inactive-color) !important;
  position: relative !important;
  margin: 0px !important;
}
.htc-step-dashed-contienr {
  width: 100%;
  max-width: 600px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8px;
  border-radius: 8px;
  border: 1px solid var(--htc-progress-background-color);
  padding: 5px 0px;

}
.htc-step-dashed {
  flex-grow: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--htc-progress-background-color);
  margin: 0px 2px;
  transition: all 0.5s ease;
}
.htc-step-dashed-active {
  background: var(--htc-progress-color);
}

.htc-step-numric-container {
     width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
}
.htc-step-numric-section {
   display: flex;
   align-items:center;
   gap: 0.25rem;
   font-size: 20px;
   color: var(--htc-progress-background-color);
}
.htc-step-numric-active {
  color:  var(--htc-progress-color);
  font-size: 20px;
  font-weight: 400;
}
.htc-step-numric-total {
  color: var(--htc-progress-background-color);
  font-size: 20px;
  font-weight: 400;
}

.htc-quiz-box-container-fullscreen {

  min-height: 500px;
  display: flex;
  align-items: center;
}
.htc-quiz-box-container-card{
  padding: 10px 0px;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htc-step.htc-active {
  background: var(--htc-progress-point-active-color) !important;
}

.htc-answer-radio-container {
  display: flex !important;
  align-items: center;
  gap: 0.25rem;
}

.htc-checkbox-label {
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  max-width: 300px;
}


.htc-next-btn,.htc-back-btn,.htc-retake-btn {
  background: var( --htc-button-background-color);
  border: none !important;
  border-radius: var(--htc-button-radius) !important;
  padding: 5px 15px !important;
  color: var(--htc-button-text-color);
  cursor: pointer !important;
  transition: color 0.3s ease, background 0.3s ease;
  font-weight: var(--htc-button-text-font-weight);
  font-size: var(--htc-button-text-font-size) !important;
  width: 50% !important;
  max-width: 150px;
  font-family: inherit;
}

.htc-next-btn:hover,.htc-back-btn:hover,.htc-retake-btn:hover {
  background:  var(--htc-button-hover-background-color);
  color: var(--htc-button-hover-color);
}

.htc-retake-btn{
    margin-left: auto;
    margin-right: auto;
    text-align: var(--htc-result-retake-quiz-btn-text-align);
    width: fit-content;
    background-color: var(--htc-result-retake-quiz-btn-background-color);
    border-radius: var(--htc-result-retake-quiz-btn-border-radius) !important;
    color: var(--htc-result-retake-quiz-btn-text-color);
    font-size: var(--htc-result-retake-quiz-btn-font-size) !important;
    font-weight: var(--htc-result-retake-quiz-btn-font-weight);
}
.htc-retake-btn:hover {
  background-color: var(--htc-result-retake-quiz-btn-hover-background-color);
  color: var(--htc-result-retake-quiz-btn-text-color-hover);
}

.htc-powered-by {
  color: var(---htc-secondary-color);
  text-align: center;
}

.htc-checkbox {
  appearance: none;
  width: 24px !important;
  height: 24px !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

.htc-checkbox:checked {
  background-color: var(---htc-checked-bg-color);
  border-color: var(---htc-primary-color);
}

.htc-checkbox-label .htc-checkbox:checked::after {
  background-image: none !important;
  content: "✓";
  color: var(---htc-checked-color);;
  font-size: 19px !important;
  webkit-filter: invert(0%);
  filter: invert(0%);
  font-weight: bold !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
}

.htc-question {
  margin-bottom: 12px;
  margin-top:20px;
  font-size: var(--htc-question-font-size);
  font-weight: var(--htc-question-font-weight);
  padding-bottom: 10px ;
  font-style: normal;
  line-height: 1.2;
  text-align: var(--htc-question-align);
  color: var(--htc-question-color);
  border: none;
  overflow-wrap: anywhere;
}
.htc-quiz-loading-title {
   font-size: var(--htc-loading-text-size);
  font-weight: var(--htc-loading-text-weight);
  color: var(--htc-loading-text-color);
}

.htc-radio {
  display: none !important;
}

.htc-radio-label {
  justify-content: center;
  border: var(--htc-answer-border-thickness) solid var(--htc-answer-border-color);
  width: 100%;
  height: 100%;
  margin: auto;
  padding: 5px 10px;
  border-radius: var(--htc-single-choice-border-radius);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-size: var(--htc-single-choice-font-size);
  font-weight: var(--htc-single-choice-font-weight);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--htc-single-choice-color);
  background-color: var(--htc-single-choice-background-color);
  max-width: 300px;
}
.htc-radio-label-side {
  padding :5px 10px ;
  align-items: center;
}

.htc-radio-label span {
  color: var(--htc-single-choice-color);
  font-size: var(--htc-single-choice-font-size);
  font-weight: var(--htc-single-choice-font-weight);
  text-align: var(--htc-single-choice-align);
  justify-content: center;
  overflow-wrap: anywhere;
}


.htc-radio:checked + .htc-radio-label {
  background: var(--htc-single-choice-hover-background-color);
  color: var(--htc-single-choice-hover-color);
}

.htc-radio-label:hover {
  background: var(--htc-single-choice-hover-background-color);
  color: var(--htc-single-choice-hover-color);
}
.htc-radio-label:hover span {
  color: var(--htc-single-choice-hover-color);
}


.htc-checkbox-label:hover {
  background: var(--htc-single-choice-hover-background-color);
  color: var(--htc-single-choice-hover-color);
}

/* image */
.htc-answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.htc-answers-grid-side{
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: stretch;
  gap: 1rem;
}
.htc-answers-grid-full {
  display: grid;
  grid-template-columns: repeat(1fr);
  align-items: stretch;
  gap: 2rem;
}

.htc-answer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.htc-checkbox-label {
  border: var(--htc-answer-border-thickness) solid var(--htc-answer-border-color);
  background: var(--htc-single-choice-background-color);
  color: var(--htc-single-choice-color);
  width: 100%;
  height: 100%;
  height: 100%;
  margin: auto;
  padding: 5px 10px;
  border-radius: var(--htc-single-choice-border-radius);
  transition: all 0.3s ease-in-out;
  font-size: var(--htc-single-choice-font-size);
  font-weight: var(--htc-single-choice-font-weight);
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: left;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.htc-custom-thumbnail-wrapper{
  padding: 0px;
}


.htc-custom-thumbnail-wrapper .Polaris-Thumbnail{
  width: 170px;
  height: 170px;
}
.htc-custom-thumbnail-wrapper .Polaris-SkeletonThumbnail--sizeLarge{
  width: 170px;
  height: 170px;
}

.htc-custom-thumbnail-wrapper, .htc-thumbnail, .htc-custom-thumbnail-wrapper .Polaris-Thumbnail img {
  object-fit: cover !important;
  height: 48px !important;
  border-radius: var(--htc-single-choice-border-radius) !important;
  border: none !important;
  width: auto  !important;
}
.htc-image-choice{
   object-fit: cover !important;
  width: 100%;
  height: 160px !important;
  border-radius: var(--htc-single-choice-border-radius) !important;
  border: none !important;
}
.htc-choice-img-side {
  width: 48px !important;
  height: 48px !important;
}

.htc-image-choice {
  object-fit: cover !important;
  border-radius: var(--htc-single-choice-border-radius) !important;
  border: none !important;
}
.htc-image-choice-side {
  width: 48px !important;
  height: 48px !important;

}
.htc-image-choice-top {
  width: 100% !important;
  height: 160px !important;
}
.htc-ans-text-container {
  display: flex;
  align-items: center;
  gap: 8px; /* optional: space between checkbox and text */
  height: 100%;
  width: 90%;
   color: var(--htc-single-choice-color);
  font-size: var(--htc-single-choice-font-size);
  font-weight: var(--htc-single-choice-font-weight);
  text-align: var(--htc-single-choice-align);
  margin: auto;
  overflow-wrap: anywhere;
}
.htc-radio-label-side .htc-ans-text-container {
  text-align: start;
  justify-content: start;
  overflow-wrap: anywhere;
}
.htc-checkbox-label:hover .htc-ans-text-container {
  color: var(--htc-single-choice-hover-color);
}
#htc_r_h {
  border: none !important;
  color: var(--htc-result-header-text-color);
  font-size: var(--htc-result-header-font-size);
  font-weight: var(--htc-result-header-font-weight);
  text-align: var(--htc-result-header-text-align);
}
#htc_r_sh {
  color: var(--htc-result-sub-header-text-color);
  font-size: var(--htc-result-sub-header-font-size);
  font-weight: var(--htc-result-sub-header-font-weight);
  text-align: var(--htc-result-sub-header-text-align);
}
.htc-checkbox,
.htc-radio {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}


.htc-q-img{
  margin-bottom: 12px;
  max-width: 100%;
  max-height: 50vh;
  margin-left: auto;
  margin-right: auto;
  display: block;

}
.htc-quiz-subheading{
  font-style: normal;
  font-size: var(--htc-subheading-font-size);
  font-family: inherit;
  font-weight: var(--htc-subheading-font-weight);
  width: 100%;
  margin: 0px auto 20px;
  line-height: 1.5;
  color: var(--htc-subheading-color);
  text-align: var(--htc-subheading-align);
  border: none;
  overflow-wrap: anywhere;
}

.htc-bottom-text{
  font-style: normal;
  font-size: var(--htc-bottom-text-font-size);
  font-family: inherit;
  font-weight: var(--htc-bottom-text-font-weight);
  width: 100%;
  margin: 0px auto 1rem;
  line-height: 1.5;
  color: var(--htc-bottom-text-color);
  text-align: var(--htc-bottom-text-align);
  border: none;
  overflow-wrap: anywhere;
}


.htc-transition-btn{
  justify-content: center;
  text-align: center;
  background: black;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
}

.htc-transition-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.htc-quiz-box-side-conainter{
  width: 35%;
  display: none;
}
.htc-quiz-box-side-img {
  height: 100% !important;
  max-width: 100%;
  width: 100%;
  object-fit: cover;
  margin: auto;
}
.htc-max-select-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1a1a;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.htc-input-item{
  width: 100%;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 1rem;

}
.htc-input-label{
  font-size: var(--htc-input-title-font-size);
  font-weight: var(--htc-input-title-font-weight);
  text-align: var(--htc-input-title-alignment);
  color: var(--htc-input-title-color);
  width: 100%;
  margin-right: 5px;
  overflow-wrap: anywhere; 
}
.htc-input::placeholder {
  color: var(--htc-input-placeholder) ;
}
.htc-input{
  font-size: var(--htc-input-text-font-size);
  font-weight: var(--htc-input-text-font-weight);
  text-align: var(--htc-input-text-alignment);
  padding: 8px 5px;
  width: 100%;
  color: var(--htc-input-Text-Color);
  border-radius: var(--htc-input-border-radius);
  border: var(--htc-input-border-weight) solid var(--htc-input-border-color);
  background-color: var(--htc-input-background-color);
}
.htc-input:focus-visible {
  outline: none;
  offset: unset;
  box-shadow: none;
}
.htc-w-100 {
  width: 100%;
}
@media (max-width: 768px) {
  .htc-quiz-box{
    margin-right: 10px;
    margin-left: 10px;
  }
.htc-answers-grid{
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
}
.htc-answers-grid  .htc-image-choice {
  height: 120px !important;
  width: 100%;
}
  .htc-quiz-box-side {
  width: 100%;
}
 .htc-quiz-box-fullscreen {
  max-width: 95% !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
 }
 .htc-quiz-box-container-fullscreen {
  flex-direction: column !important;
 }
 .htc-quiz-box-side-conainter{
  width: 100%;
  height: 200px !important;
  align-items: center;
 }
}
.htc-quiz-custom-select-wrapper {
  position: relative;
  width: 300px;
  margin: auto;
}

.htc-quiz-select-display {
  padding: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #f9f9f9;
  user-select: none;
  border-radius: 20px;
  position: relative;
  display:flex;
}
.htc-quiz-select-display span {
  width: 100%;
}
.htc-quiz-select-display input {
  border: none;
  outline: none;
  box-shadow: none;
  display:none;
  width: 100%;
  font-size: 16px;
  margin-right: 5px;
  margin-left: 5px;
  background-color: transparent;
}
.htc-quiz-select-icon {
  right: 10px;
  top: 8px;
  border-left: 1px solid #2a2a2a;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  align-items: center;
}
.htc-quiz-select-text{
  overflow-wrap: anywhere;
}
.htc-quiz-select-options {
  position: absolute;
  bottom: 120%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background-color: white;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 10px;
}

.htc-quiz-option {
  padding: 10px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.htc-no-results{
  padding: 10px;
  color: #888;
  text-align: center;
}

.htc-quiz-option:hover {
  background-color: #e0e0e0;
}

.htc-quiz-options-hidden {
  display: none;
}
