/* ---------- Root Container ---------- */
#harvest-wine-quiz-root {
  max-width: 1600px;
  margin: 20px auto 50px;
  font-family: "Inter", Arial, sans-serif;
  color: #2f2b2b;
}

.hwq-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.prod-card {
  position: relative;
}
.hwq-quiz .prod-card .hc-product-add-to-cart-btn {
  height: 34px;
  width: 34px;
  cursor: pointer;
}
.hwq-quiz .prod-card .hc-product-add-to-cart-btn a.added_to_cart.wc-forward {
  display: none;
}
.prod-card .hc-product-add-to-cart-btn {
  bottom: 12px;
}
.prod-card:hover > .hc-product-add-to-cart-btn .loading {
  height: 10px;
  width: 10px;
  padding: 10px; 
  right: 0px;
}
.hwq-quiz .prod-card .hc-product-add-to-cart-btn a.button.product_type_simple img
.hwq-quiz .prod-card .hc-product-add-to-cart-btn .add-to-cart {
  border-radius: 0;
  box-shadow: none;
  height: auto;
  max-width: 100%;
}
/* .prod-card:hover > .hc-product-add-to-cart-btn a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  position: absolute;
  z-index: 9999;
  display: block;
  width: 30px;
  height: 30px;
} */
.hwq-quiz .prod-card .hc-product-add-to-cart-btn a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  z-index: 999;
  position: absolute;
  top: 0px;
  width: 34px;
  height: 34px;
  right: 0px;
}
.hwq-quiz .prod-card a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.loading img.add-to-cart-icon {
  height: 0px !important;
}
.hwq-quiz .prod-card .hc-product-add-to-cart-btn img {
  height: 33px !important;
  width: 34px !important;
}
.hc-product-add-to-cart-btn {
  display: none;
}

.prod-card:hover > .hc-product-add-to-cart-btn {
  display: block;
}
.hwq-modal-content {
  background: #fff;
  padding: 50px;
  border-radius: 12px;
  max-width: 1600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: fixed;
  /* Change to fixed for proper centering */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers it */
  z-index: 9999;
  width: calc(100% - 40px);
}

.hwq-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hwq-start-btn {
  font-size: 18px;
  padding: 12px 25px;
  border-radius: 8px;
}

/* ---------- Quiz Card ---------- */
/* .hwq-quiz {
    background: #fff;
    padding: 60px 70px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
  } */

/* ---------- Step Progress ---------- */
.hwq-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 55px;
}

.hwq-results h3 {
  font-size: 28px;
  font-weight: 600;
  text-transform: capitalize;
}

#hwq-start-btn {
  padding: 14px 39px;
  background-color: #2B2A29;
  color: #fff;
  border: 1px solid #2B2A29;
  font-size: 20px;
}

.hwq-results #hwq-retake {
  padding: 14px 39px;
  background-color: #2B2A29;
  color: #fff;
  border: 1px solid #2B2A29;
  font-size: 20px;
  margin-top: 20px;
}

.retake-quiz-sec {
  text-align: center;
  margin-top: 30px;
}
.hwq-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transform: translateY(-50%);
  z-index: 0;
  border: 1px dashed #A3A3A3;
  border-image: repeating-linear-gradient(to right,
      #A3A3A3 0,
      #A3A3A3 9px,
      transparent 9px,
      transparent 18px) 1;
}
.hwq-final-intro {
  text-align: center;
  color: #5EB109;
}
.hwq-final-templates .hwq-result-template p {
  font-family: 'SF Pro Display';
  color: #2B2A29;
}
.hwq-final-templates .hwq-result-template {
  text-align: center;
}

.hwq-steps .step {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #A3A3A3;
  background: #fff;
  color: #2F2B2B;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.3s ease;
}

.hwq-steps .step.active {
  border: 1px solid #5EB109;
  background: #F7FBF2;
  color: #5EB109;
}

.hwq-steps .step.done {
  border: none;
  background: #238a3b;
  color: #fff;
}

/* ---------- Question Title ---------- */
.hwq-card-wrap h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
}

.hwq-card-wrap p {
  color: #7a7a7a;
  font-size: 14px;
  margin-bottom: 25px;
}

/* ---------- Answer Options ---------- */
.hwq-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hwq-answer-card {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 20px 22px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
}

.hwq-answer-card:hover {
  border-color: #5EB109;
  background: #F7FBF2;
}

.hwq-answer-card.selected {
  border-color: #5EB109;
  background: #F7FBF2;
}

.hwq-answer-card input {
  margin-right: 8px;
}

.hwq-answer-title {
  font-size: 20px;
  font-weight: 500;
  color: #525252;
  font-family: 'SF Pro Display';
}

/* ---------- Navigation Buttons ---------- */
.hwq-nav {
  gap: 15px;
  margin-top: 40px;
  display: flex;
}

/* Common button styles */
.hwq-nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 39px;
  font-size: 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'SF Pro Display';
}

/* Previous button */
.hwq-nav .prev-btn {
  border: 1px solid #2F2B2B;
  background-color: #fff;
  color: #2F2B2B;
  position: relative;
}

.quiz-product-desc {
  padding: 0px 20px;
}

.hc-product-desc {
  padding: 0px 20px;
}

/* Next button */
.hwq-nav .next-btn {
  background-color: #2B2A29 !important;
  color: #fff;
  border: 1px solid #2B2A29;
  position: relative;
}

/* Hover effect */
.hwq-nav .button:hover {
  opacity: 0.85;
}

/* Add left arrow for Previous */
.hwq-nav .prev-btn::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  background: url("/wp-content/uploads/2025/11/previous-quiz.svg") no-repeat center;
  background-size: 8px;
}

/* Add right arrow for Next */
.hwq-nav .next-btn::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  background: url("/wp-content/uploads/2025/11/quix-next.svg") no-repeat center;
  background-size: 8px;
}


/* ---------- Results ---------- */
.hwq-results-grid {
  gap: 20px;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-content: center;
}

.hwq-quiz .prod-card {
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  /* width: calc(33.33% - 13.33px) !important; */
  width: 25%;
}

.hwq-answer-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #A3A3A3;
  /* Green border */
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  margin-right: 8px;
}

.hwq-answer-card.selected input[type="radio"] {
  border: 1px solid #28a745 !important;
}

.hwq-answer-card input[type="radio"]:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #28a745;
  /* Green fill */
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hwq-quiz .prod-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px 8px 0px 0px;
  width: 100%;
  height: 350px;
}

.hwq-quiz .prod-card h4 {
  margin: 10px 0 4px;
  color: #422209;
  font-weight: 600;
  height: 100px;
  padding: 0px 20px;
}

.prod-card .price {
  font-weight: 600;
  color: #0a6c3a;
}
/* Loader wrapper centers content inside modal */
.hwq-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

/* Loader dots */
.hwq-loader .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #000; /* or white if modal bg is dark */
  animation: hwq-bounce 1.4s infinite ease-in-out both;
}

.hwq-loader .dot2 {
  animation-delay: -0.16s;
}
.hwq-loader .dot3 {
  animation-delay: -0.32s;
}

@keyframes hwq-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
button.button.button-primary.hwq-start-btn {
  background: #2f2b2b;
  padding: 14px 32px;
  border: 1px solid #2f2b2b;
  color: #fff;
  font-family: 'SF Pro Display';
  font-size: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .hwq-quiz .prod-card { 
    width: calc(33.33% - 13.33px) !important; 
  }
}

@media (max-width: 800px) {
  .hwq-quiz {
    padding: 30px 25px;
  }

  .hwq-answers {
    grid-template-columns: 1fr;
  }

  .hwq-steps {
    gap: 25px;
  }
}

@media (max-width: 767px) {
  .hwq-steps .step {
    width: 30px;
    height: 30px;
  }
  .hwq-quiz .prod-card { 
    width: 100% !important; 
  }
  .hwq-quiz {
    padding: 0px;
  }
  .hwq-quiz .prod-card h4 { 
    height: auto; 
}
}

@media (max-width: 575px){
  .hwq-modal-content { 
    padding: 30px;
}
.hwq-nav .button { 
  padding: 9px 22px;
  font-size: 16px; 
}
.hwq-answer-title {
  font-size: 16px; 
}
.hwq-answer-card { 
  padding: 18px 18px; 
}
.hwq-steps { 
  margin-bottom: 35px;
}
.hwq-steps::before { 
  border-image: repeating-linear-gradient(to right,
    #A3A3A3 0,
    #A3A3A3 12px,
    transparent 8px,
    transparent 22px) 1;
}
.hwq-steps .step {
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.hwq-results h3 { 
  line-height: 28px;
}
.hwq-quiz .prod-card h4 { 
  font-size: 20px;
}
.hc-product-desc {
  color: #525252;
  font-size: 18px; 
}
.hwq-results #hwq-retake {
  padding: 9px 22px; 
  font-size: 16px; 
}
}