/* ==========================================================================
   1. Base Reset & Variables
   ========================================================================== */
:root {
  --primary-green: #4aa614;
  --primary-green-dark: #428f15;
  --text-dark: #252b31;
  --bg-page: #f8f9fa;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  flex: 1 0 auto;
}

/* ==========================================================================
   2. Header & Progress Bar
   ========================================================================== */
.header {
  text-align: center;
  padding: 20px 0;
}

.header .logo img {
  max-width: 180px;
  height: auto;
  display: inline-block;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background-color: #e9ecef;
  border-radius: 6px;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary-green);
  border-radius: 6px;
  transition: width 0.4s ease-in-out;
}

/* ==========================================================================
   3. Quiz Steps & Typography
   ========================================================================== */
.quiz_steps {
  display: none;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.quiz_steps.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step_title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.step_title span {
  color: var(--primary-green);
}

.step_sub_title {
  font-size: 18px;
  color: #6c757d;
  margin-top: -10px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btns_wrap {
  max-width: 550px;
  margin: 20px auto;
}

.step_button {
  background-color: var(--primary-green);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  padding: 18px 25px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  border: 2px solid var(--primary-green-dark);
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step_button:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-2px);
}

.step_button .arrow {
  font-size: 24px;
  font-weight: 700;
}

/* ==========================================================================
   4. Image Choice Cards (Step 2)
   ========================================================================== */
.image-choice-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.image-choice {
  background-color: var(--white);
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  padding: 20px;
  width: 220px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.image-choice:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.image-choice img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.image-choice .choice-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   5. Numeric Input Fields (Steps 5, 6, 7)
   ========================================================================== */
.input_wrap {
  max-width: 400px;
  margin: 30px auto;
}

.height-input-group {
  display: flex;
  gap: 10px;
}

.height-input-group > div {
  flex: 1;
}

.input_field_container {
  position: relative;
  display: flex;
  align-items: center;
}

.input_field {
  width: 100%;
  height: 65px;
  border-radius: 8px;
  background-color: var(--white);
  border: 2px solid #ccc;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 10px 60px 10px 20px;
  -moz-appearance: textfield;
}

.input_field::-webkit-outer-spin-button,
.input_field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input_field:focus {
  outline: none;
  border-color: var(--primary-green);
}

.input_unit {
  position: absolute;
  right: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #888;
  pointer-events: none;
}

.error_msg {
  color: #d9534f;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

/* ==========================================================================
   6. Intermediate Info & Loader Steps
   ========================================================================== */
.intermediate_step_content img {
  max-width: 100%;
  width: 500px;
  border-radius: 12px;
  margin: 20px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.loader_step img {
  max-width: 100px;
  margin: 20px auto;
  display: block;
}

/* ==========================================================================
   7. Step 11 Results Page Components
   ========================================================================== */
.viewer-counter {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 500;
}

.urgency-banner {
  background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 10px;
  margin: 15px auto 25px;
  max-width: 550px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(217, 83, 79, 0.3);
}

.urgency-banner .timer {
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 10px;
  border-radius: 5px;
  margin-left: 5px;
}

.urgency-banner .stock-warning {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.95;
}

.results_section .graph_box {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  margin: 30px auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.weight_summery_box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  margin: 30px auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.weight_summery_box .col {
  flex: 1;
  text-align: center;
}

.weight_summery_box .col.arrow-col {
  flex: 0 0 50px;
}

.weight_summery_box .col img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

.weight_summery_box .col.arrow-col img {
  height: auto;
  width: 30px;
}

.weight_summery_box .title {
  font-weight: 700;
  font-size: 18px;
}

.weight_summery_box .weight_info {
  font-size: 16px;
  font-weight: 600;
}

.weight_summery_box .fat_box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  margin-top: 15px;
}

.weight_summery_box .fat_title {
  font-size: 14px;
  font-weight: 700;
}

.weight_summery_box .fat_per {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-green);
}

.expert-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
  margin: 25px auto;
  max-width: 600px;
  text-align: left;
}

.expert-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.expert-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green);
  flex-shrink: 0;
}

.expert-info h4 {
  margin: 0;
  font-size: 16px;
  color: #0369a1;
}

.expert-info p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}

.expert-quote {
  font-style: italic;
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
  border-left: 3px solid var(--primary-green);
  padding-left: 12px;
  margin: 10px 0 0;
}

.expert-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--primary-green);
  margin-top: 10px;
  font-weight: 600;
}

.info_box {
  background-color: #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.info_box img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.info_box p {
  margin: 0;
  font-size: 15px;
}

.price_card {
  border-radius: 12px;
  background-color: #e8f3e1;
  padding: 30px 25px;
  max-width: 550px;
  margin: 30px auto;
  border: 2px solid var(--primary-green);
}

.price_card .title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
}

.price_card .img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 15px auto;
  display: block;
}

.price_card .price-info {
  margin-top: 15px;
}

.price_card .original-price {
  font-size: 16px;
  color: #6c757d;
  text-decoration: line-through;
}

.price_card .discounted-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-green);
}

.price_card .urgency-text {
  font-size: 15px;
  color: #d9534f;
  font-weight: 700;
  margin-top: 5px;
}

.cta_button {
  background: #ff7700;
  border-radius: 8px;
  display: inline-block;
  padding: 18px 35px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-top: 15px;
  box-shadow: 0px 8px 15px rgba(255, 119, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 2px solid #e06800;
}

.cta_button:hover {
  transform: translateY(-3px);
  background: #e66a00;
}

.guaranty_text {
  font-size: 14px;
  color: #6c757d;
  margin-top: 15px;
  margin-bottom: 0;
}

/* ==========================================================================
   8. Facebook Reviews Section (Step 11)
   ========================================================================== */
.reviews-title {
  text-align: center;
  margin: 35px 0 20px;
}

.reviews-title h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.reviews-title .rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: #65676b;
}

.reviews-title .stars {
  color: #f59e0b;
  font-size: 20px;
}

.reviews-title .score {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 18px;
}

.fb-comments {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 25px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
  overflow: hidden;
}

.fb-comments-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e6eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #050505;
}

.fb-comments-count {
  color: #65676b;
  font-weight: 400;
  font-size: 14px;
}

.fb-write-comment {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e4e6eb;
  align-items: center;
}

.fb-write-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e4e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #65676b;
  font-size: 14px;
  flex-shrink: 0;
}

.fb-write-input {
  flex: 1;
  background: #f0f2f5;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  color: #65676b;
  cursor: not-allowed;
}

.fb-comment {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f5;
}

.fb-comment:last-child {
  border-bottom: none;
}

.fb-comment-main {
  display: flex;
  gap: 10px;
}

.fb-comment-content {
  flex: 1;
  min-width: 0;
}

.fb-comment-bubble {
  background: #f0f2f5;
  border-radius: 18px;
  padding: 8px 12px;
  display: inline-block;
  max-width: 100%;
}

.fb-comment-author {
  font-weight: 600;
  font-size: 13px;
  color: #050505;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fb-verified-badge {
  background: #1877f2;
  color: #ffffff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.fb-comment-text {
  font-size: 14px;
  color: #050505;
  margin-top: 2px;
  line-height: 1.4;
  word-wrap: break-word;
}

.fb-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-left: 12px;
  font-size: 12px;
  color: #65676b;
}

.fb-comment-action {
  font-weight: 600;
  cursor: pointer;
}

.fb-comment-action:hover {
  text-decoration: underline;
}

.fb-comment-action.liked {
  color: #1877f2;
}

.fb-comment-time {
  color: #65676b;
}

.fb-likes-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  color: #65676b;
  margin-left: auto;
}

.fb-likes-icons {
  display: flex;
}

.fb-like-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-left: -4px;
}

.fb-like-icon:first-child {
  margin-left: 0;
}

.fb-like-icon.thumb {
  background: #1877f2;
  color: #ffffff;
}

.fb-like-icon.heart {
  background: #f33e58;
  color: #ffffff;
}

.fb-replies {
  margin-left: 36px;
  margin-top: 8px;
  border-left: 2px solid #e4e6eb;
  padding-left: 12px;
}

.fb-reply {
  padding: 8px 0;
}

.fb-reply .fb-comment-bubble {
  background: #f0f2f5;
}

.fb-reply.official .fb-comment-bubble {
  background: #e7f3ff;
  border: 1px solid #cce4ff;
}

.fb-official-badge {
  background: #4aa614;
  color: #ffffff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.security-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 25px auto;
  padding: 15px;
  max-width: 500px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
}

/* ==========================================================================
   9. Toast Notification & Exit Popup
   ========================================================================== */
.notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(37, 43, 49, 0.92);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.exit-popup-overlay.show {
  display: flex;
}

.exit-popup {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  max-width: 450px;
  text-align: center;
  position: relative;
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.exit-popup h3 {
  color: #d9534f;
  font-size: 24px;
  margin: 0 0 10px;
}

.exit-popup .discount-badge {
  background: #d9534f;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  margin: 15px 0;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 12px;
  color: #6c757d;
  border-top: 1px solid #e9ecef;
}

.footer a {
  color: #6c757d;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   11. Responsive Adjustments
   ========================================================================== */
@media (max-width: 767px) {
  .step_title {
    font-size: 24px;
  }

  .step_sub_title {
    font-size: 16px;
  }

  .step_button {
    font-size: 18px;
    padding: 15px 20px;
  }

  .image-choice {
    width: calc(50% - 10px);
    padding: 12px;
  }

  .image-choice img {
    height: 110px;
  }

  .info_box {
    flex-direction: column;
    text-align: center;
  }

  .fb-replies {
    margin-left: 20px;
    padding-left: 10px;
  }
}
