/* ==========================================================================
   purohit.io website theme for the kundli and matchmaking tool pages and
   their result pages. An OVERRIDE layer, loaded after kundli.css (which
   other surfaces still use unchanged): load order is
   site-base.css, seo.css, kundli-fonts.css, kundli.css, web-theme.css.

   Page chrome becomes the website's indigo glass look: the form is a card
   like the website's question box (rgba(30,37,84,.95), gold hairline, cream
   text, muted placeholder, gold primary button, indigo inputs with a gold
   focus ring). The rendered kundli sheet and match card stay light "paper"
   cards, as the website keeps device-like UI light.

   Contrast: cream (#F6F1E4) and --on-dark (#E4E1EE) on #1E2554 are above
   11:1, --muted-dark (#ABA9C2) above 5.8:1, --gold-2 above 9:1, and the
   gold button text (#241A05) on #E0A63E is above 8:1.
   ========================================================================== */

:root {
  --wt-glass: rgba(30, 37, 84, .95);
  --wt-hair: rgba(240, 200, 120, .34);
  --wt-field: #141B3D;
  --wt-field-border: rgba(240, 200, 120, .3);
  --wt-error: #FFA3A3;
}

/* kundli.css pins html and body to 100% height, which would end the sticky
   header's range after one screen. */
html, body { height: auto; min-height: 100%; }
body {
  background: var(--ink-2, #0E1329);
  color: var(--on-dark, #E4E1EE);
  font-size: 17px;
  line-height: 1.6;
}
main { position: relative; z-index: 1; }

/* The sheet is a fixed-size print artifact: keep it independent of the site
   body type scale. */
.sheetWrap, .sheetMountWrap .sheet, #exampleSheet, #exampleMatchSheet {
  font-size: 16px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: normal;
}
.sheet .tag {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  white-space: normal;
}
.sheet a { text-decoration: none; }

/* ---------- Buttons: gold pills ---------- */
.btn-primary, .btn-secondary {
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  min-height: 48px;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--gold);
  color: var(--gold-on);
  box-shadow: none;
}
.btn-primary:hover {
  background: #EBB554;
  color: var(--gold-on);
  box-shadow: 0 8px 22px rgba(224, 166, 62, .32);
}
.btn-primary:disabled { opacity: .6; box-shadow: none; }
.btn-secondary {
  background: transparent;
  color: var(--on-dark-head);
  border: 1.5px solid var(--gold-2);
}
.btn-secondary:hover { background: rgba(240, 200, 120, .14); color: #fff; }
.spinner { border-color: rgba(36, 26, 5, .3); border-top-color: var(--gold-on); }

/* ---------- Title band ---------- */
.introWrap { max-width: 760px; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 24px) 8px; }
.introEyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(240, 200, 120, .3);
  border-radius: 999px;
  background: rgba(240, 200, 120, .08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-2);
}
.introTitle {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.08;
  color: var(--on-dark-head);
}
:lang(hi) .introTitle, :lang(kn) .introTitle, :lang(ta) .introTitle { letter-spacing: 0; line-height: 1.25; }
.introSub { font-size: clamp(17px, 2vw, 20px); color: var(--on-dark); max-width: 56ch; margin: 0 auto; }

/* ---------- Form: the indigo glass card ---------- */
.formWrap { max-width: 640px; padding: 0 clamp(16px, 4vw, 24px); }
.formCard {
  background: var(--wt-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--wt-hair);
  border-radius: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 22px 56px rgba(5, 8, 22, .45);
  color: var(--on-dark-head);
  padding: clamp(22px, 4vw, 32px);
}
.formCard:focus-within { border-color: var(--gold-2); }

.field label, .fieldLabel { color: var(--on-dark-head); font-size: 15px; font-weight: 600; }
.fieldCaption { color: var(--muted-dark); }
.field .help { color: var(--muted-dark); font-size: 13.5px; }
.field .fieldEcho { color: var(--gold-2); }

.field input[type="text"],
.field input[type="date"],
.field input[type="time"],
.field input[type="tel"] {
  background: var(--wt-field);
  color: var(--on-dark-head);
  border: 1px solid var(--wt-field-border);
  border-radius: 14px;
  padding: 13px 16px;
  caret-color: var(--gold-2);
  color-scheme: dark;
}
.field input::placeholder { color: var(--muted-dark); opacity: 1; }
.field input:focus,
.field input:focus-visible {
  border-color: var(--gold-2);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(224, 166, 62, .28);
}
.phoneChip {
  background: var(--wt-field);
  color: var(--on-dark-head);
  border: 1px solid var(--wt-field-border);
  border-radius: 14px;
}

.pill {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--wt-field-border);
  min-height: 44px;
}
.pill:hover { border-color: var(--gold-2); color: var(--on-dark-head); }
.pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-on);
}

.tosRow { color: var(--on-dark); }
.tosRow a { color: var(--gold-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tosRow a:hover { color: #F6D89A; }
.tosCheckbox { accent-color: var(--gold); }
.submitBtn { border-radius: 999px; min-height: 52px; font-size: 17px; }

.formStatus { color: var(--gold-2); }
.formStatus.error { color: var(--wt-error); }
.candidateLabel { color: var(--on-dark-head); }

/* Matchmaking: the two person panels */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.personFieldsetRow { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.personFieldset {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--wt-hair);
  border-radius: 20px;
  padding: 4px 18px 18px;
  background: rgba(255, 255, 255, .03);
}
.personFieldset legend {
  padding: 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-2);
}
.slotHelp { margin: -4px 0 20px; }

/* ---------- Example sheet section ---------- */
.exampleHeading {
  font-family: var(--font-head);
  letter-spacing: -.02em;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--on-dark-head);
}
.ribbon { background: var(--gold); color: var(--gold-on); border-radius: 0; }

/* ---------- Tool page content ---------- */
.toolContent {
  max-width: 760px;
  margin: clamp(32px, 6vw, 64px) auto 0;
  padding: 0 clamp(16px, 4vw, 24px) clamp(40px, 6vw, 72px);
  color: var(--on-dark);
  line-height: 1.65;
}
.toolContent h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin: clamp(28px, 4vw, 44px) 0 12px;
  color: var(--on-dark-head);
}
.toolContent p { font-size: 17px; margin: 0 0 14px; }
.toolContent a { color: var(--gold-2); }
.toolSample img { max-width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--wt-hair); }
.toolSample figcaption { font-size: 14px; color: var(--muted-dark); margin-top: 8px; }
.toolWaCallout { text-align: center; margin: 32px 0; }
.toolWaCallout .btn-primary { display: inline-flex; margin-bottom: 8px; }
.toolFaq details.acc { border-color: var(--wt-hair); }
.tableScroll { overflow-x: auto; border: 1px solid var(--wt-hair); border-radius: 20px; background: rgba(30, 37, 84, .6); }
.kootaTable { width: 100%; border-collapse: collapse; margin: 0; font-size: 15.5px; }
.kootaTable th, .kootaTable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(240, 200, 120, .18); vertical-align: top; }
.kootaTable th { color: var(--gold-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.kootaTable tr:last-child td { border-bottom: 0; }

/* ---------- Result pages ---------- */
.viewWrap { max-width: 920px; padding: clamp(12px, 3vw, 28px) clamp(12px, 3vw, 20px) 60px; }
.viewErrorState h1 { font-family: var(--font-head); letter-spacing: -.02em; color: var(--on-dark-head); }
.viewErrorState p { color: var(--on-dark); }
.loadingPlaceholder { border-radius: 10px; }

.actionBar {
  background: var(--wt-glass);
  border: 1px solid var(--wt-hair);
  border-radius: 28px;
  padding: 16px;
}
.actionBar .btn-primary, .actionBar .btn-secondary { font-size: 15px; padding: 10px 20px; }
.stylePillGroup {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--wt-field-border);
}
.stylePill { color: var(--on-dark); min-height: 36px; }
.stylePill:hover { color: var(--on-dark-head); }
.stylePill.active { background: var(--gold); color: var(--gold-on); }

.kvHighlight {
  border: 1px solid var(--gold);
  border-radius: 24px;
  background: rgba(240, 200, 120, .08);
}
.kvHighlightEyebrow {
  font-family: var(--font-head);
  letter-spacing: .1em;
  color: var(--gold-2);
}
.kvHighlightSentence, .mvHighlightSentence {
  font-family: var(--font-head);
  color: var(--on-dark-head);
}
.kvHighlightNext, .mvHighlightNext { opacity: 1; color: var(--on-dark); }
.toast { background: var(--gold); color: var(--gold-on); border-radius: 999px; }

@media (max-width: 600px) {
  .formCard { border-radius: 24px; padding: 22px 18px; }
}

/* ---------- Matchmaking page: example match card showcase ---------- */
/* Moved here from the website homepage. Scoped to #matchmaking-showcase so
   nothing else changes. Contrast on the #0B1026 card: cream #F6F1E4 above
   15:1, #D9D6E6 above 12:1, #B9B6CC above 8:1, gold-2 above 11:1. */
.matchShowcase { max-width: 1080px; margin: clamp(40px, 7vw, 80px) auto 0; padding: 0 clamp(16px, 4vw, 24px); scroll-margin-top: calc(var(--header-h, 68px) + 12px); }
.matchShowcase .msSplit { display: grid; gap: 32px; align-items: center; }
.matchShowcase .msText, .matchShowcase .msSide { min-width: 0; }
.matchShowcase .msEyebrow { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.matchShowcase h2 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; color: var(--on-dark-head); }
:lang(hi) .matchShowcase h2, :lang(kn) .matchShowcase h2, :lang(ta) .matchShowcase h2 { line-height: 1.3; }
.matchShowcase .msLead { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.6; color: var(--on-dark); max-width: 56ch; margin: 0 0 20px; }
.matchShowcase .msCta { margin: 0; }
.matchShowcase .msCta .btn-primary { display: inline-flex; align-items: center; padding: 0 28px; text-decoration: none; }
@media (min-width: 900px) {
  .matchShowcase .msSplit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .matchShowcase .msSide { justify-self: end; width: 100%; max-width: 520px; }
}
#matchmaking-showcase .match-card { position: relative; background: #0B1026; color: #F6F1E4; border: 1px solid rgba(240, 200, 120, .28); border-radius: 28px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 60px rgba(5, 8, 22, .45); }
#matchmaking-showcase .ribbon-example { position: absolute; top: 18px; right: 18px; display: inline-flex; background: var(--gold); color: var(--gold-on); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
#matchmaking-showcase .match-top { display: flex; align-items: center; gap: 18px; padding-top: 18px; }
#matchmaking-showcase .score-ring { flex: none; width: 132px; height: 132px; }
#matchmaking-showcase .sr-track { fill: none; stroke: rgba(255, 253, 248, .12); stroke-width: 10; }
#matchmaking-showcase .sr-val { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; }
#matchmaking-showcase .score-ring text { text-anchor: middle; fill: #F6F1E4; }
#matchmaking-showcase .sr-num { font-weight: 700; font-size: 28px; }
#matchmaking-showcase .sr-max { font-size: 12px; fill: #B9B6CC !important; }
#matchmaking-showcase .match-label { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
#matchmaking-showcase .match-out { margin: 4px 0 0; font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #F6F1E4; }
#matchmaking-showcase .match-ktitle { color: #F6F1E4; font-family: var(--font-head); font-size: 17px; margin: 22px 0 10px; }
#matchmaking-showcase .kootas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#matchmaking-showcase .kootas li { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr auto; gap: 4px 12px; align-items: center; font-size: 14.5px; }
#matchmaking-showcase .k-name { font-weight: 700; color: #F6F1E4; }
#matchmaking-showcase .k-bar { height: 6px; border-radius: 3px; background: rgba(255, 253, 248, .12); overflow: hidden; }
#matchmaking-showcase .k-bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
#matchmaking-showcase .k-score { font-variant-numeric: tabular-nums; color: #D9D6E6; }
#matchmaking-showcase .k-meaning { grid-column: 1 / -1; color: #B9B6CC; font-size: 13.5px; line-height: 1.45; margin-top: -2px; }
