@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

:root {
  --bg: #f8f4ee;
  --bg-soft: #fffaf4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(111, 78, 55, 0.12);
  --text: #2d1f17;
  --muted: #7c685b;
  --gold: #B3848F;
  --rose: #d88eb3;
  --violet: #9b82c9;
  --blue: #79a9cf;
  --green: #81bca5;
  --danger: #c85c5c;
  --shadow: 0 24px 60px rgba(117, 85, 54, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lora', serif;
  font-weight: 300;
  background:
    radial-gradient(circle at top left, rgba(216, 142, 179, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(121, 169, 207, 0.16), transparent 26%),
    radial-gradient(circle at bottom center, rgba(199, 149, 77, 0.16), transparent 30%),
    linear-gradient(160deg, #fffdf9 0%, #fbf5ef 46%, #f5ede4 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 18%, rgba(199, 149, 77, .22), transparent 60%),
    radial-gradient(2px 2px at 18% 60%, rgba(155, 130, 201, .16), transparent 60%),
    radial-gradient(1.5px 1.5px at 29% 35%, rgba(121, 169, 207, .16), transparent 60%),
    radial-gradient(2px 2px at 44% 20%, rgba(199, 149, 77, .18), transparent 60%),
    radial-gradient(2px 2px at 58% 48%, rgba(216, 142, 179, .14), transparent 60%),
    radial-gradient(1.5px 1.5px at 67% 22%, rgba(129, 188, 165, .16), transparent 60%),
    radial-gradient(2px 2px at 76% 64%, rgba(199, 149, 77, .14), transparent 60%),
    radial-gradient(2px 2px at 88% 18%, rgba(121, 169, 207, .12), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 52%, rgba(216, 142, 179, .14), transparent 60%);
  opacity: .9;
}

/*.container {*/
/*  width: min(1180px, calc(100% - 32px));*/
/*  margin: 0 auto;*/
/*  padding: 28px 0 70px;*/
/*  position: relative;*/
/*  z-index: 1;*/
/*}*/


/* Shared Home Page Header/Footer */
img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-container {
  width: min(calc(100% - 40px), 1280px);
  margin: auto;
  position: relative;
  z-index: 2;
}

/* 
    .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 28px 0 70px;
      position: relative;
      z-index: 1;
    } */



.main-card {
  margin: 55px 55px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 242, 0.82));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-head {
  padding: 30px 24px 24px;
  border-bottom: 1px solid rgba(111, 78, 55, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.panel-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.panel-title-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
}

.panel-title-wrap h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.panel-title-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.read-more-btn {
  display: none;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, 100%);
}

.progress {
  flex: 1;
  height: 10px;
  background: rgba(111, 78, 55, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-radius: inherit;
  transition: width 400ms ease;
}

.step-label {
  font-size: .95rem;
  color: var(--muted);
  white-space: nowrap;
}

.section {
  display: none;
  padding: 26px;
  animation: fadeUp .35s ease;
}

.section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.zodiac-card,
.option-card,
.result-card,
.custom-card {
  border: 1px solid rgba(111, 78, 55, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(251, 243, 236, 0.74));
  border-radius: 22px;
  padding: 6px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.zodiac-card {
  padding: 18px 10px;
  text-align: center;
}

.zodiac-card p {
  font-size: 0.85rem;
}

.zodiac-card:hover,
.option-card:hover,
.result-card:hover,
.custom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 149, 77, 0.45);
  box-shadow: 0 18px 40px rgba(117, 85, 54, 0.12);
}

.zodiac-card.selected,
.option-card.selected,
.custom-card.selected {
  border-color: rgba(199, 149, 77, 0.95);
  background: linear-gradient(160deg, rgba(255, 244, 226, 0.98), rgba(255, 255, 255, 0.8));
  box-shadow: 0 0 0 1px rgba(199, 149, 77, 0.18), 0 20px 50px rgba(117, 85, 54, 0.12);
}

.zodiac-symbol {
  font-size: 1.7rem;
  margin-bottom: 12px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #af52de, #8c44cb);
  box-shadow: 0 4px 10px rgba(175, 82, 222, 0.2);
}

.zodiac-icon {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.result-sign-box .zodiac-symbol {
  margin: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(175, 82, 222, 0.2);
}

.result-sign-box .zodiac-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 1;
  margin-top: 0;
}

.zodiac-card h3,
.result-card h3,
.custom-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #2d1f17;
}

.zodiac-card p,
.option-card p,
.result-card p,
.custom-card p,
.question-copy,
.mini-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.question-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.question-box,
.side-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 78, 55, 0.08);
  border-radius: 26px;
  padding: 22px;
}

.q-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  margin-bottom: 4px;
}

.question-title {
  margin: 0 0 4px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant: normal;
  text-transform: none;
}

.options-grid {
  display: grid;
  gap: 14px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  text-align: left;
}

.option-bullet {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
  background: rgba(199, 149, 77, 0.1);
  flex-shrink: 0;
}

.option-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #2d1f17;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  outline: 0;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: .98rem;
  font-weight: 700;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #d4a45d, var(--gold));
  box-shadow: 0 14px 30px rgba(199, 149, 77, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(111, 78, 55, 0.1);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px dashed rgba(111, 78, 55, 0.18);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error {
  margin-top: 16px;
  color: var(--danger);
  font-size: .95rem;
  min-height: 20px;
}

.result-top {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-result {
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(111, 78, 55, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 243, 235, 0.78));
  position: relative;
  overflow: hidden;
}

.hero-result::after {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 149, 77, 0.1), transparent 65%);
  pointer-events: none;
}

.result-kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 800;
  text-transform: capitalize;
  font-variant: small-caps;
  margin-bottom: 14px;
}

.hero-result h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 1rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-result .quote {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(111, 78, 55, 0.08);
  color: var(--text);
  font-size: .92rem;
}

.score-board {
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(111, 78, 55, 0.08);
}

.score-board h3,
.results-grid h3,
.customization h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.score-row {
  margin-bottom: 14px;
}

.score-row:last-child {
  margin-bottom: 0;
}

.score-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .93rem;
}

.score-bar {
  height: 10px;
  background: rgba(111, 78, 55, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 700ms ease;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.result-card.active {
  border-color: rgba(199, 149, 77, 0.95);
  background: linear-gradient(160deg, rgba(255, 244, 226, 0.98), rgba(255, 255, 255, 0.82));
  box-shadow: 0 0 0 1px rgba(199, 149, 77, 0.18), 0 18px 40px rgba(117, 85, 54, 0.14);
}

.result-card ul,
.hero-result ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.75;
}

.result-card .tag {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: capitalize;
  font-variant: small-caps;
}

.customization {
  margin-top: 22px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(111, 78, 55, 0.08);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.custom-card.selected::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4a45d, var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
}

.summary-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 78, 55, 0.08);
  color: var(--muted);
  line-height: 1.75;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  font-size: .92rem;
}

@media (max-width: 1100px) {

  .question-shell,
  .result-top {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .custom-grid,
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 100%);
  }

  .main-card {
    margin: 20px 0;
  }

  .section {
    padding: 18px;
  }

  .panel-head {
    padding: 22px 18px 18px;
  }

  .intro-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  }
  
  .intro-desc.expanded {
    white-space: normal;
    -webkit-mask-image: none;
    mask-image: none;
  }
  
  .read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--heading, #4a2331);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
    text-decoration: underline;
  }

  #globalBackBtn {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    align-self: flex-start;
    margin-bottom: -21px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.12);
    border-radius: 50%;
  }

  .custom-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .progress-wrap {
    min-width: 100%;
  }



  .question-title {
    font-size: 1.45rem;
  }

  .question-box,
  .side-box {
    padding: 16px;
    border-radius: 20px;
  }

  .chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .chip {
    font-size: 0.75rem;
    padding: 7px 3px;
    text-align: center;
    border-radius: 12px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .options-grid {
    gap: 8px;
  }

  .option-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .option-bullet {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .option-card strong {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 0;
  }

  .nav-buttons {
    flex-direction: column;
    margin-top: 14px;
  }

  .nav-buttons .btn {
    width: 100%;
    padding: 12px;
  }

  .error {
    display: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300 !important;
}

h1,
h2 {
  text-transform: capitalize;
  font-variant: small-caps;
}