/* 3-up grid with equal-height cards */
.kp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch; /* key: make each grid item fill the row height */
}
.kp-grid-3 .kp-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.kp-grid-3 .kp-card h4 {
  margin: 0 0 8px 0;
}

/* Optional: stack on narrow screens */
@media (max-width: 640px) {
  .kp-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* === QUIZ + STATS SECTION === */
#karma-profiler {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;

  overflow: hidden;
  gap: 28px; /* breathing room between panels */
}

/* Left quiz panel */
#karma-profiler .quiz-panel {
  flex: 1 1 55%;
  padding: 40px 50px;

}

#karma-profiler .quiz-panel h2,
#karma-profiler .quiz-panel h3 {
  color: #6a1b09;

}

#karma-profiler .kp-option {
  border: 1px solid #e0c9a6;
  background: #fff;
  color: #3a2a20;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 6px 0;
  transition: all 0.25s ease;
  font-family: "Montserrat";
}
#karma-profiler .kp-option:hover {
  background: #fdf0d9;
  transform: translateY(-2px);
}

/* Right info/stats panel */
#karma-profiler .stats-panel {
  flex: 1 1 45%;
  background: radial-gradient(circle at center, #fff5e5 0%, #fbe4b5 90%);
  color: #5b3210;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  min-width: 320px;
}

#karma-profiler .stats-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://yantrachants.com/wp-content/uploads/2024/01/sri-yantra-bg-light.png")
    center / cover no-repeat;
  opacity: 0.08;
  z-index: 0;
}

/* Stat circle (fixed) */
#karma-profiler .circle-stat {
  border: 5px solid #dca54a;
  border-radius: 50%;
  width: 170px;
  aspect-ratio: 1 / 1; /* keeps it perfectly round */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
  background: #fff9f0;
  box-shadow: 0 0 25px rgba(220, 165, 74, 0.3);
  flex: 0 0 auto;
  z-index: 1;
}
#karma-profiler .circle-stat h3 {
  font-size: 2.8rem;
  margin: 0;

}
#karma-profiler .circle-stat p {
  font-size: 0.95rem;
  margin: 5px 0 0;
  font-family: "Montserrat";
  color: #6b4423;
}

#karma-profiler .stats-panel h4 {
  font-size: 1.2rem;
  margin-top: 25px;
  font-family: "Montserrat";
  color: #7a4b1b;
}

/* Counter badge */
.kp-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

/* Responsive layout */
@media (max-width: 1200px) {
  #karma-profiler .quiz-panel {
    padding: 32px 28px;
  }
  #karma-profiler .stats-panel {
    padding: 48px 20px;
  }
}

@media (max-width: 900px) {
  #karma-profiler {
    flex-direction: column;
  }
  #karma-profiler .stats-panel {
    order: -1;
    min-width: auto;
    padding: 40px 15px;
  }
}

/* 2-column layout for the Recommendations block */
#kp-yantras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
#kp-yantras .kp-yantra-block {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
#kp-yantras h4 {
  margin: 0 0 8px 0;
}
#kp-yantras ul {
  margin: 0;
  padding-left: 18px;
}
@media (max-width: 640px) {
  #kp-yantras {
    grid-template-columns: 1fr;
  }
}

/* Karma Profiler quiz basics */
.karma-profiler-container {
  max-width: 700px;
  margin: auto;
  font-family: "Montserrat";
}
.kp-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kp-option {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
}
.kp-option:hover {
  background-color: #eee;
}
.kp-navigation {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
.kp-prev,
.kp-next {
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  border: none;
  border-radius: 6px;
}
.kp-prev:hover,
.kp-next:hover {
  background-color: #ddd;
}
.karma-profiler-result {
  margin-top: 30px;
}
/* Counter under the form */
.kp-counter-below {
  margin: 18px 0 0 0;
}
.kp-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-weight: 600;
}

