/* =====================================================
   KUNDALI MATCHING — matching.css
   Crystal Aid
   ===================================================== */

/* ── Form wrapper ─────────────────────────────────── */
.matching-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Person cards ─────────────────────────────────── */
.matching-person-card {
  background: linear-gradient(135deg, #1a0e2e 0%, #0d0820 100%);
  border: 1px solid rgba(184,134,75,0.3);
  border-radius: 16px;
  padding: var(--space-6) var(--space-6);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.matching-person-card label { color: rgba(255,255,255,0.7); font-size:13px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.04em; }
.matching-person-card input, .matching-person-card select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.matching-person-card input::placeholder { color: rgba(255,255,255,0.3); }
.matching-person-card input:focus { outline:none; border-color:rgba(184,134,75,0.7); background:rgba(255,255,255,0.11); }
.matching-person-card input[readonly] { color:rgba(255,255,255,0.5); background:rgba(255,255,255,0.04); }

.matching-person-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.matching-person-header h3 { color:#fff; font-size:18px; margin:0; }
.matching-person-header p  { color:rgba(255,255,255,0.5); font-size:13px; margin:4px 0 0; }

.matching-person-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold-deep), #B8860B);
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.p2-num { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }

/* ── VS divider ───────────────────────────────────── */
.matching-vs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--space-4) 0;
}
.matching-vs-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(184,134,75,0.4), transparent); }
.matching-vs-circle {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #1a0e2e, #2d1654);
  border: 2px solid rgba(184,134,75,0.5);
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(184,134,75,0.2);
}

/* ── Submit button ────────────────────────────────── */
.matching-submit-btn {
  background: linear-gradient(135deg, var(--gold-deep) 0%, #B8860B 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(184,134,75,0.4);
}
.matching-submit-btn:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 8px 32px rgba(184,134,75,0.55); }
.matching-submit-btn:disabled { opacity:.4; cursor:not-allowed; transform:none; }

/* ── Score banner ─────────────────────────────────── */
.matching-score-banner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-7);
  background: linear-gradient(135deg, #1a0e2e, #0d0820);
  border: 1px solid rgba(184,134,75,0.4);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(184,134,75,0.1);
}
@media (max-width:600px) { .matching-score-banner { flex-direction:column; text-align:center; } }

.matching-score-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(184,134,75,0.5);
  display: flex; flex-direction:column;
  align-items:center; justify-content:center;
  flex-shrink: 0;
  background: rgba(184,134,75,0.08);
  box-shadow: 0 0 30px rgba(184,134,75,0.2);
}
.matching-score-num { font-size: 36px; font-weight: 800; color: var(--gold); line-height: 1; }
.matching-score-den { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.matching-score-info h2 { font-size:22px; color:#fff; margin:0 0 8px; }
.matching-recommendation {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.rec-excellent  { background: rgba(16,185,129,0.2); color:#34D399; border:1px solid rgba(16,185,129,0.3); }
.rec-good       { background: rgba(59,130,246,0.2); color:#60A5FA; border:1px solid rgba(59,130,246,0.3); }
.rec-average    { background: rgba(245,158,11,0.2); color:#FBBF24; border:1px solid rgba(245,158,11,0.3); }
.rec-poor       { background: rgba(239,68,68,0.2);  color:#F87171; border:1px solid rgba(239,68,68,0.3); }

/* ── Koota table ──────────────────────────────────── */
.koota-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.koota-table th {
  background: var(--parchment); padding: 9px 12px; text-align:left;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-soft); border-bottom:1px solid var(--line);
}
.koota-table td { padding: 10px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.koota-table tr:last-child td { border-bottom:none; }
.koota-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.koota-name { font-weight:700; color:var(--ink); }
.koota-name small { display:block; font-weight:400; font-size:11px; color:var(--ink-soft); margin-top:2px; }
.koota-bar-wrap { display:flex; align-items:center; gap:8px; }
.koota-bar { flex:1; height:6px; background:var(--line); border-radius:3px; overflow:hidden; }
.koota-bar-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--gold-deep),var(--gold)); transition:width .6s ease; }
.koota-score-text { font-size:12px; font-family:var(--font-mono); color:var(--ink-soft); white-space:nowrap; }
.koota-status { display:inline-block; font-size:10px; padding:2px 8px; border-radius:10px; font-family:var(--font-mono); }
.status-strong { background:#dcfce7; color:#166534; }
.status-medium { background:#fef9c3; color:#854d0e; }
.status-weak   { background:#fee2e2; color:#991b1b; }
.status-neutral{ background:#f3f4f6; color:#6b7280; }

/* ── Dosha cards ──────────────────────────────────── */
.dosha-card {
  padding: var(--space-4);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.dosha-card-title { font-size:14px; font-weight:700; margin-bottom:6px; display:flex; align-items:center; gap:8px; }
.dosha-present { border-color:#fca5a5; background:#fff5f5; }
.dosha-present .dosha-card-title { color:#dc2626; }
.dosha-absent  { border-color:#bbf7d0; background:#f0fdf4; }
.dosha-absent  .dosha-card-title { color:#16a34a; }
.dosha-card p  { font-size:12.5px; color:var(--ink-soft); margin:0; line-height:1.6; }

/* ── Remedy pills ─────────────────────────────────── */
.remedy-pill {
  display: flex; flex-direction:column; align-items:center; gap:4px;
  padding: 12px 16px;
  background: rgba(184,134,75,0.12);
  border: 1px solid rgba(184,134,75,0.25);
  border-radius: 12px;
  font-size: 12px; color: rgba(255,255,255,0.8);
  min-width: 90px;
}
.remedy-pill span { font-size:24px; }
