@media (max-width: 480px) {
  .bnp-body {
    font-size: 0.95rem;
  }
  .btn-primary,
  .btn-secondary,
  .btn-home {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
}
/* Container + breadcrumb */
.breadcrumb-nav {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.breadcrumb-nav a {
  color: #7b2cbf;
  text-decoration: none;
}
.breadcrumb-nav span {
  color: #555;
}

/* Form container */
.form-container {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  max-width: 650px;
  margin: 0 auto;
}

/* Headings */
.form-container h2 {
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Input fields */
.form-container label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: inline-block;
}
.form-container input[type="date"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.form-container small.text-muted {
  display: block;
  margin-top: 0.25rem;
  color: #777;
}

/* Buttons */


/* Modern button styles for numerology page */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  font-size: 1.08rem;
  background-color: #7b2cbf;
  color: #fff;
  box-shadow: 0 2px 8px rgba(123,44,191,0.08);
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
  background-color: #6925a6;
}
.btn-outline {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 2px solid #7b2cbf;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  font-size: 1.08rem;
  background: #fff;
  color: #7b2cbf;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-outline:hover {
  background: #f7f4fb;
  border-color: #6925a6;
  color: #6925a6;
}
.btn-home {
  /* For home icon button, use outline style */
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 2px solid #7b2cbf;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  font-size: 1.08rem;
  background: #fff;
  color: #7b2cbf;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-home:hover {
  background: #f7f4fb;
  border-color: #6925a6;
  color: #6925a6;
}

/* Result card */
.result-wrap {
  margin-top: 1.5rem;
}
.result-card {
  border-radius: 1rem;
  background: #fff;
}
.result-card h3 {
  font-weight: 700;
}
.result-card h4 {
  font-weight: 600;
  color: #7b2cbf;
}
.result-card .lead {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.result-card .bg-light {
  background-color: #f8f8f8 !important;
}
.result-card strong {
  color: #7b2cbf;
}

/* GPT output block */
pre.gpt-output {
  background: #f7f4fb;
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
}

/* Loading modal */
#loading-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
}
.loading-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
}
.loading-content {
  position: relative;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.loading-text {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #7b2cbf;
}

/* Error modal */
.modal.hidden { display: none; }
.modal .modal-content.error {
  background: #fff0f0;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  max-width: 400px;
  margin: 5% auto;
  text-align: center;
  border: 1px solid #ffcccc;
}
.modal .modal-content.error h2 {
  color: #b00020;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.modal .modal-content.error p {
  color: #b00020;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Equal-width button group */
.equal-width-group a,
.equal-width-group button {
  width: 100%;
}
@media (min-width: 480px) {
  .equal-width-group {
    flex-direction: row !important;
  }
  .equal-width-group a,
  .equal-width-group button {
    width: auto;
    flex: 1;
  }
}

.bnp-result { margin-top: 1rem; }
.bnp-hero { text-align: center; margin-bottom: .75rem; }
.bnp-emoji { font-size: 2rem; }
.bnp-title { font-weight: 800; margin: .25rem 0 .5rem; color: #6f1fb9; }
.bnp-chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.chip {
  background: #f2e9ff; color: #6f1fb9; border: 1px solid #e6d6ff;
  padding: .25rem .6rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.chip.alt { background: #eef8ff; color: #1068a3; border-color: #d9efff; }
.chip.ghost { background: #f7f7f7; color: #666; border-color: #eee; }
.bnp-card { border-radius: 1rem; padding: 1rem; }
.bnp-body { white-space: pre-wrap; line-height: 1.8; font-size: 1rem; color: #222; }

/* Remove .bnp-actions, use .equal-width-group for actions */

/* Inline highlights */
.hl-label { font-weight: 800; color: #6f1fb9; }
.hl-num   { background: #f5ebff; border: 1px solid #e6d6ff; padding: .05rem .35rem; border-radius: .5rem; }
.hl-color { background: #eef8ff; border: 1px solid #d9efff; padding: .05rem .35rem; border-radius: .5rem; }
.hl-rem   { background: #fff7e6; border: 1px solid #ffe1a6; padding: .05rem .35rem; border-radius: .5rem; }
.hl-open  { font-weight: 800; color: #2a2a2a; }  /* opener: “11-ம் தேதியில் பிறந்த நீங்கள் …” */

/* Summary footer bar */
.bnp-summary {
  margin-top: .85rem;
  padding: .6rem .75rem;
  border-top: 1px dashed #e6d6ff;
  background: #fbf9ff;
  border-radius: 0 0 1rem 1rem;
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .bnp-summary { grid-template-columns: repeat(3, 1fr); }
}
.sum-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 36px;
  padding: .35rem .5rem;
  border: 1px solid #eee;
  border-radius: .6rem;
  background: #fff;
}
.sum-label {
  font-weight: 800;
  color: #6f1fb9;
  white-space: nowrap;
}
.sum-value {
  font-weight: 600;
  color: #222;
  background: #f7f2ff;
  border: 1px solid #e6d6ff;
  padding: .1rem .45rem;
  border-radius: .5rem;
}

/* (from previous step) inline highlights inside paragraph */
.hl-label { font-weight: 800; color: #6f1fb9; }
.hl-num   { background: #f5ebff; border: 1px solid #e6d6ff; padding: .05rem .35rem; border-radius: .5rem; }
.hl-color { background: #eef8ff; border: 1px solid #d9efff; padding: .05rem .35rem; border-radius: .5rem; }
.hl-rem   { background: #fff7e6; border: 1px solid #ffe1a6; padding: .05rem .35rem; border-radius: .5rem; }
.hl-open  { font-weight: 800; color: #2a2a2a; }

/* Heading (single) */
.bnp-hero { text-align:center; margin-bottom:.75rem; }
.bnp-emoji { font-size:2rem; line-height:1; }
.bnp-title { font-weight:800; margin:.25rem 0 .5rem; color:#6f1fb9; }

/* Card + body: already defined above, removed duplicate */
/* Summary footer: already defined above, removed duplicate */

/* Inline highlights (opener only, no chips) */
.hl-open{ font-weight:800; color:#2a2a2a; }


/* Modern result card styles for numerology result */
.result-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(123,44,191,0.08);
  padding: 1.5rem 1.2rem;
  margin-bottom: 1.2rem;
}
.bnp-hero {
  text-align: center;
  margin-bottom: 0.4rem;
}
.bnp-emoji {
  font-size: 2.2rem;
  vertical-align: middle;
}
.bnp-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: #7b2cbf;
  margin-left: 0.5rem;
}
.bnp-body {
  font-size: 1.08rem;
  color: #222;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.bnp-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  background: #fbf9ff;
  border-radius: 0 0 1rem 1rem;
  padding: 0.7rem 0.5rem;
  border-top: 1px dashed #e6d6ff;
}
.sum-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.6rem;
  padding: 0.35rem 0.7rem;
  min-width: 110px;
  font-size: 0.98rem;
}
.bnp-body {
  font-size: 1.01rem;
  color: #222;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
@media (max-width: 480px) {
  .result-card {
    padding: 0.7rem 0.2rem;
  }
  .bnp-title {
    font-size: 1rem;
  }
  .bnp-body {
    font-size: 0.93rem;
    line-height: 1.6;
  }
  .bnp-summary {
    gap: 0.4rem;
    padding: 0.5rem 0.1rem;
  }
  .sum-item {
    min-width: 70px;
    font-size: 0.89rem;
    padding: 0.25rem 0.4rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-home {
    font-size: 0.93rem;
    padding: 0.5rem 0.8rem;
  }
  .bnp-summary {
    justify-content: flex-start;
  }
}
.btn-primary,
.btn-outline,
.btn-home {
  font-size: 0.97rem;
}
.bnp-summary {
  justify-content: flex-start;
}

/* Make header/footer full-bleed on mobile (no floating look) */
body { padding: 0 !important; margin: 0; }

/* Keep comfy gutters on the content card instead */
:root { --page-max: 760px; --page-pad: 12px; }           /* match Home */
.form-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--page-pad) 28px;                    /* side gutters */
  box-sizing: border-box;
}

/* Defensive: ensure top/bottom bars ignore any ancestor padding */
.header, .footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 !important;
}
