/* ══════════════════════════════════════════════════════════════
   PRAKRITI-TEST.CSS
   ══════════════════════════════════════════════════════════════ */

/* PAGE LAYOUT */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* INTRO */
.intro {
  text-align: center;
  margin-bottom: 48px;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fef3e8;
  border: 1px solid #f6c589;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #7a3510;
  margin-bottom: 20px;
}
.intro h1 {
  margin-bottom: 16px;
}
.intro-desc {
  font-size: 16px;
  color: #5c5040;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.82;
}
.intro-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.intro-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8a7060;
  font-weight: 500;
}
.dosha-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.dp-card {
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.dp-vata {
  background: linear-gradient(160deg, #e8edff, #d0daff);
  border: 1px solid #b0beff;
}
.dp-pitta {
  background: linear-gradient(160deg, #fff0e0, #ffe0c0);
  border: 1px solid #ffba80;
}
.dp-kapha {
  background: linear-gradient(160deg, #e0f5ea, #c0ebce);
  border: 1px solid #80cfa0;
}
.dp-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.dp-name {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.dp-desc {
  font-size: 11px;
  color: #5c5040;
  line-height: 1.55;
}
.start-btn {
  background: #2d6a4f;
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.start-btn:hover {
  background: #1a4d38;
}

/* PROGRESS */
.progress-wrap {
  margin-bottom: 32px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}
.progress-num {
  color: #8a7060;
}
.progress-pct {
  color: #e67817;
  font-weight: 600;
}
.progress-bar {
  height: 6px;
  background: #e8ded0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e67817, #c45f0a);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.section-indicator {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.si-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e8ded0;
  transition: background 0.3s;
}
.si-dot.done {
  background: #e67817;
}
.si-dot.active {
  background: #e67817;
  opacity: 0.5;
}

/* QUESTION CARD */
.question-card {
  background: #fff;
  border: 1px solid #e4d8c8;
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(180, 130, 80, 0.07);
}
.q-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e67817;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.q-section::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #e67817;
  border-radius: 1px;
}
.q-number {
  font-size: 11px;
  font-weight: 600;
  color: #b8a090;
  margin-bottom: 6px;
}
.q-text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.35;
}
.q-sub {
  font-size: 13px;
  color: #8a7060;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* OPTIONS */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opt {
  border: 1.5px solid #e4d8c8;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
}
.opt:hover {
  border-color: #c45f0a;
  background: #fff8f2;
}
.opt.selected {
  border-color: #e67817;
  background: #fef3e8;
}
.opt-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d0c0b0;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.opt.selected .opt-radio {
  border-color: #e67817;
  background: #e67817;
}
.opt.selected .opt-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.opt-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b5040;
  margin-bottom: 2px;
}
.opt-text {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.55;
}
.opt-note {
  font-size: 12px;
  color: #8a7060;
  margin-top: 3px;
}

/* NAV BUTTONS */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.btn-back {
  background: transparent;
  border: 1.5px solid #d0c0b0;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #8a7060;
  font-family: "DM Sans", sans-serif;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.btn-back:hover {
  border-color: #8a7060;
  color: #5c5040;
}
.btn-next {
  background: #e67817;
  border: none;
  padding: 12px 28px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-next:hover:not(:disabled) {
  background: #c45f0a;
}
.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-submit {
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  border: none;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s;
}
.btn-submit:hover {
  opacity: 0.9;
}
.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* NAME STEP */
.name-step {
  background: #fff;
  border: 1px solid #e4d8c8;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(180, 130, 80, 0.07);
}
.name-step label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b5040;
  margin-bottom: 8px;
}
.name-inp {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e4d8c8;
  border-radius: 9px;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.name-inp:focus {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.gender-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.gender-btn {
  border: 1.5px solid #e4d8c8;
  border-radius: 10px;
  padding: 11px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #5c5040;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  transition: all 0.18s;
}
.gender-btn:hover,
.gender-btn.active {
  border-color: #e67817;
  background: #fef3e8;
  color: #7a3510;
  font-weight: 600;
}
.age-inp {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e4d8c8;
  border-radius: 9px;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  background: #fff;
  outline: none;
}
.age-inp:focus {
  border-color: #2d6a4f;
}

/* LOADING */
.loading-screen {
  text-align: center;
  padding: 48px 24px;
}
.loader-mandala {
  font-size: 56px;
  margin-bottom: 20px;
  animation: spin 3s linear infinite;
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-text {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.loading-sub {
  font-size: 14px;
  color: #8a7060;
}
.loading-dots::after {
  content: "...";
  animation: dots 1.5s steps(3, end) infinite;
}
@keyframes dots {
  0%,
  to {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

/* RESULTS */
.results-wrap {
  animation: fadeUp 0.5s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.results-header {
  text-align: center;
  margin-bottom: 36px;
}
.results-greeting {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #8a7060;
  margin-bottom: 8px;
}
.results-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.25;
}
.results-subtitle {
  font-size: 14px;
  color: #8a7060;
}
.dosha-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.db-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.db-label {
  width: 70px;
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}
.db-bar {
  flex: 1;
  height: 14px;
  background: #f0e8dc;
  border-radius: 7px;
  overflow: hidden;
}
.db-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 1s ease;
}
.db-vata .db-fill {
  background: linear-gradient(90deg, #6b7fd4, #4338ca);
}
.db-pitta .db-fill {
  background: linear-gradient(90deg, #e67817, #c45f0a);
}
.db-kapha .db-fill {
  background: linear-gradient(90deg, #2d6a4f, #1a3d2b);
}
.db-pct {
  width: 40px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.db-vata .db-pct {
  color: #4338ca;
}
.db-pitta .db-pct {
  color: #e67817;
}
.db-kapha .db-pct {
  color: #2d6a4f;
}
.result-section {
  background: #fff;
  border: 1px solid #e4d8c8;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 20px;
}
.rs-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8dc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rs-title span {
  font-size: 20px;
}
.rs-content {
  font-size: 14px;
  color: #3d2a1a;
  line-height: 1.85;
}
.rs-content p {
  margin-bottom: 12px;
}
.rs-content p:last-child {
  margin-bottom: 0;
}
.rs-content strong {
  color: #1a1a1a;
  font-weight: 600;
}
.rs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0;
}
.rs-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #3d2a1a;
  line-height: 1.55;
}
.rs-list li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: #f0faf3;
  border: 1.5px solid #52b788;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #2d6a4f;
  line-height: 16px;
  text-align: center;
}
.rs-list.avoid li::before {
  content: "✗";
  background: #fff5f5;
  border-color: #fed7d7;
  color: #c53030;
}
.results-cta {
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}
.results-cta h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}
.results-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 22px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn-w {
  background: #fff;
  color: #e67817;
  border: none;
  padding: 13px 26px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-btn-ow {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 13px 26px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-btn-ow:hover {
  background: rgba(255, 255, 255, 0.1);
}
.retake-btn {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #8a7060;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: "DM Sans", sans-serif;
}
.retake-btn:hover {
  color: #5c5040;
}

/* FOOTER BUTTON VARIANTS */
.fcbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
}
.fcbtn-w {
  background: #fff;
  color: #e67817;
  border-color: #fff;
}
.fcbtn-ow {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .dosha-preview {
    grid-template-columns: 1fr;
  }
  .mst {
    display: flex;
    gap: 8px;
  }
  .mst a {
    flex: 1;
    text-align: center;
  }
}

/* ── DOWNLOAD / PRINT ── */
.result-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2d6a4f;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.15s;
}
.dl-btn:hover {
  background: #1a3d2b;
}

@media print {
  /* hide everything outside the report */
  body > *:not(#app) {
    display: none !important;
  }
  #app > *:not(#screen-results) {
    display: none !important;
  }
  .no-print {
    display: none !important;
  }

  /* clean print layout */
  .results-wrap {
    max-width: 100%;
    padding: 0;
    box-shadow: none;
  }
  .results-header {
    background: #1a3d2b !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .result-section {
    break-inside: avoid;
    border: 1px solid #ddd;
    margin-bottom: 12px;
  }
  .rs-title {
    background: #f9f5f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .db-fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* page setup */
  @page {
    margin: 15mm;
    size: A4;
  }
}
