/*
 * style.css — RDS Jyotish Prashna — Main stylesheet
 * For: index.php (form page)
 * Premium dark gold theme — mobile-first
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080808;
  color: #e8d5b0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Cosmic background ── */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,168,67,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(45,122,78,.05) 0%, transparent 60%);
}

/* ── Layout ── */
.wrap {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 8px; flex-wrap: wrap; gap: 8px;
}
.trust-seal {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: #4a8a4a; letter-spacing: 1px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4a8a4a;
  box-shadow: 0 0 6px #4a8a4a;
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.2); }
}
.lang-row { display: flex; gap: 6px; flex-wrap: wrap; }
.lb {
  padding: 4px 10px; border-radius: 4px; font-size: .72rem;
  border: 1px solid #2a1f0a; background: transparent; color: #7a6a50;
  cursor: pointer; transition: all .2s;
}
.lb:hover, .lb.active {
  background: #1a1208; border-color: #d4a843; color: #d4a843;
}

/* ── Hero ── */
.hero { text-align: center; padding: 24px 0 20px; }
.hero .om { font-size: 2rem; margin-bottom: 10px; display: block; }
.hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 900;
  color: #d4a843;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: .72rem; letter-spacing: 3px;
  color: #5a4a2a; text-transform: uppercase; margin-bottom: 8px;
}
.heritage { font-size: .82rem; color: #7a6a50; line-height: 1.6; }
.heritage strong { color: #c8a860; }

/* ── Pandit card ── */
.pandit-card {
  display: flex; align-items: center; gap: 14px;
  background: #0f0e0a; border: 1px solid #2a1f0a; border-radius: 10px;
  padding: 14px 16px; margin: 16px 0;
}
.pandit-avatar { font-size: 1.8rem; flex-shrink: 0; }
.pandit-info { flex: 1; }
.pandit-name { font-size: .9rem; color: #d4a843; font-weight: 600; margin-bottom: 3px; }
.pandit-cred { font-size: .72rem; color: #6a5a3a; line-height: 1.5; }
.pandit-badge {
  font-size: .6rem; letter-spacing: 2px; color: #4a8a4a;
  border: 1px solid #2a5a2a; border-radius: 3px; padding: 3px 8px;
  flex-shrink: 0; white-space: nowrap;
}

/* ── Cards ── */
.card {
  background: #0f0f0f; border: 1px solid #1e1609; border-radius: 10px;
  padding: 20px 18px; margin: 14px 0;
}
.card-title {
  font-size: .72rem; color: #7a6a50; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 16px;
}

/* ── Query grid ── */
.query-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.qbtn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 7px; cursor: pointer;
  border: 1px solid #2a1f0a; background: #0a0a0a;
  color: #c8a870; font-size: .82rem; transition: all .2s;
  font-family: inherit;
}
.qbtn:hover { border-color: #d4a843; color: #d4a843; background: #110e04; }
.qbtn.selected, .qbtn.active {
  border-color: #d4a843; background: #1a1208; color: #d4a843;
  box-shadow: 0 0 8px rgba(212,168,67,.15);
}
.qbtn span:first-child { font-size: 1rem; }

/* ── Detail card ── */
.shastra-hint {
  font-size: .78rem; color: #7a6a50; line-height: 1.7;
  border-left: 2px solid #d4a843; padding-left: 12px;
  margin-bottom: 14px;
}
.shastra-hint strong { color: #c8a860; }
label {
  display: block; font-size: .78rem; color: #8a7a5a;
  margin-bottom: 6px; margin-top: 12px;
}
textarea, input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; padding: 11px 13px; border-radius: 7px;
  border: 1px solid #2a1f0a; background: #080808; color: #e8d5b0;
  font-family: inherit; font-size: .88rem;
  transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}
textarea:focus, input:focus, select:focus {
  outline: none; border-color: #d4a843;
  box-shadow: 0 0 0 2px rgba(212,168,67,.1);
}
textarea { resize: vertical; min-height: 100px; }
.char-count { font-size: .7rem; color: #4a3a1a; text-align: right; margin-top: 4px; }

/* Context section */
#cxSection label { margin-top: 14px; }

/* ── Form grid ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }
.fg { display: flex; flex-direction: column; }

/* ── Price section ── */
.price-wrap {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 16px;
}
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-amt {
  font-size: 2rem; font-weight: 700; color: #d4a843;
  font-family: 'Cinzel', Georgia, serif;
}
.price-orig {
  font-size: 1rem; color: #4a3a1a;
  text-decoration: line-through;
}
.price-sub { font-size: .72rem; color: #5a4a2a; margin-top: 4px; }
.price-right { font-size: .72rem; color: #5a4a2a; text-align: right; line-height: 1.8; }
.disc-badge {
  display: inline-block; background: #0a1a0a; border: 1px solid #2a5a2a;
  border-radius: 4px; padding: 3px 10px; font-size: .72rem; color: #4a9a4a;
  margin-top: 6px;
}

/* Discount row */
.disc-row { margin: 14px 0; }
.disc-row label { margin-top: 0; margin-bottom: 8px; }
.disc-input-row { display: flex; gap: 8px; }
.disc-input-row input { flex: 1; }
.btn-apply {
  padding: 10px 16px; border-radius: 7px; cursor: pointer;
  border: 1px solid #d4a843; background: transparent; color: #d4a843;
  font-size: .78rem; font-family: inherit; letter-spacing: 1px;
  transition: all .2s; white-space: nowrap;
}
.btn-apply:hover { background: #1a1208; }
.disc-msg { font-size: .75rem; margin-top: 6px; min-height: 16px; }

/* Payment methods */
.pm-section { margin: 16px 0 10px; }
.pm-section label { margin-bottom: 10px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 380px) { .pm-grid { grid-template-columns: 1fr; } }
.pm-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid #2a1f0a; background: #0a0a0a;
  transition: all .2s; text-align: center;
}
.pm-btn:hover { border-color: #d4a843; background: #0f0d06; }
.pm-btn.active { border-color: #d4a843; background: #110e04; }
.pm-icon { font-size: 1.3rem; }
.pm-name { font-size: .8rem; color: #c8a870; font-weight: 600; }
.pm-sub  { font-size: .65rem; color: #5a4a2a; }

/* Trust badges */
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 12px 0 4px; font-size: .72rem; color: #4a3a1a;
}

/* ── Pay button ── */
.btn-pay {
  width: 100%; padding: 16px; border-radius: 10px; cursor: pointer;
  border: none; margin-top: 8px;
  background: linear-gradient(135deg, #c8940a, #d4a843, #b87e08);
  color: #080808; font-size: 1rem; font-weight: 700;
  font-family: 'Cinzel', Georgia, serif; letter-spacing: 1px;
  transition: all .25s; box-shadow: 0 4px 20px rgba(212,168,67,.3);
}
.btn-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(212,168,67,.4);
}
.btn-pay:active { transform: translateY(0); }
.btn-pay:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Messages ── */
.form-msg { font-size: .82rem; margin-top: 10px; min-height: 20px; text-align: center; }
.disclaimer {
  font-size: .72rem; color: #3a2a10; text-align: center;
  margin-top: 12px; line-height: 1.6;
}

/* ── Footer ── */
.footer {
  text-align: center; padding: 24px 0 10px;
  font-size: .75rem; color: #3a2a1a; line-height: 2;
  border-top: 1px solid #1a1208; margin-top: 24px;
}

/* ── Responsive tweaks ── */
@media (max-width: 400px) {
  .pandit-card { flex-wrap: wrap; }
  .query-grid { gap: 6px; }
  .qbtn { padding: 7px 10px; font-size: .78rem; }
  .price-amt { font-size: 1.6rem; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #2a1f0a; border-radius: 2px; }

/* ── Selection ── */
::selection { background: rgba(212,168,67,.25); color: #e8d5b0; }

/* ── Devanagari / Tamil / Bengali / Gujarati fonts ── */
.lang-hi textarea, .lang-hi input, .lang-hi label {
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.lang-ta textarea, .lang-ta input {
  font-family: 'Noto Sans Tamil', sans-serif;
}
.lang-bn textarea, .lang-bn input {
  font-family: 'Noto Sans Bengali', sans-serif;
}
.lang-gu textarea, .lang-gu input {
  font-family: 'Noto Sans Gujarati', sans-serif;
}
