/* AstroTheme — Kundali Milan (/kundali-milan): intro and the couple's result.
   Loaded after base.css + pages.css + sky.css + kundali.css. */

.as-mtone-mint { --as-mtone: #3fae6a; --as-mtone-bg: #e8f6ea; --as-mtone-ink: #23753f; }
.as-mtone-gold { --as-mtone: #e0a63a; --as-mtone-bg: #fdf1dc; --as-mtone-ink: #9a5d0a; }
.as-mtone-rose { --as-mtone: #e46a7e; --as-mtone-bg: #fde8ec; --as-mtone-ink: #b4223f; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.as-mamp { font-style: italic; color: #f3c160; }
.as-msky .as-sky-lead { margin: 0 0 18px; }
.as-mring-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; justify-self: center; }
.as-mring { --p: 100; position: relative; display: grid; place-content: center; text-align: center; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, #1f2558 80%, transparent 81%),
              conic-gradient(var(--as-mtone, #f3c160) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
  box-shadow: 0 0 40px rgba(243, 193, 96, .25); animation: as-mring-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes as-mring-in { from { transform: scale(.85) rotate(-40deg); opacity: 0; } }
.as-mring-num { font: 700 64px/1 var(--as-serif); color: #fff; }
.as-mring-num small { font-size: 24px; color: #cfcdea; }
.as-mring-word { margin-top: 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #cfcdea; }
.as-mverdict { padding: 7px 20px; border-radius: 30px; font-weight: 600; font-size: 15px; color: #fff; background: var(--as-mtone); }

/* Intro ring: the eight koota names orbit the 36 */
.as-mring-intro { width: 300px; height: 300px; margin: 10px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .07) 58%, transparent 59%),
              radial-gradient(closest-side, transparent 98%, rgba(243, 193, 96, .55) 99%); box-shadow: none; animation: none; }
.as-mring-intro .as-mring-num { font-size: 82px; color: #f3c160; }
.as-mring-tag { position: absolute; top: 50%; left: 50%; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(243, 193, 96, .4); font-size: 12px; font-weight: 500; color: #f6e7c4;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateY(-150px) rotate(calc(var(--i) * -45deg));
  animation: as-mtag 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); }
@keyframes as-mtag { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* ── On-page form (the campaign landing form) ────────────────────────────── */
.as-mform-card { scroll-margin-top: 90px; margin-bottom: 26px; padding: 24px; background: #fff; border-radius: 20px;
  box-shadow: 0 18px 44px rgba(28, 39, 87, .16); border-top: 4px solid var(--as-gold); }
.as-mform-card header { margin-bottom: 16px; }
.as-mform-card h2 { font-size: 22px; margin: 0 0 4px; }
.as-mform-card header p { margin: 0; font-size: 14px; color: var(--as-muted); }
.as-milan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.as-milan-person { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--as-line); border-radius: 14px; min-width: 0; }
.as-milan-person legend { padding: 0 6px; font: 700 15px var(--as-serif); color: var(--as-ink); }
.as-milan-boy { background: #f4f7ff; }
.as-milan-girl { background: #fff4f6; }
.as-milan-form .as-btn { border-radius: 10px; }

/* ── The couple ──────────────────────────────────────────────────────────── */
.as-mcouple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.as-mcouple-heart { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #e46a7e;
  font-size: 22px; box-shadow: 0 8px 20px rgba(228, 106, 126, .3); }
.as-mperson { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 18px 10px; background: #fff;
  border-radius: 18px; box-shadow: 0 12px 30px rgba(28, 39, 87, .1); border-top: 4px solid #5b8fe0; min-width: 0; }
.as-mperson-girl { border-top-color: #e46a7e; }
.as-mperson-art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 6px; }
.as-mperson-art .as-zimg-sm { width: 46px; height: 40px; }
.as-mperson > small { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--as-muted); }
.as-mperson > strong { font: 700 20px var(--as-serif); color: var(--as-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-mperson-dob { font-size: 12.5px; color: var(--as-muted); }
.as-mperson dl { width: 100%; margin: 10px 0 0; font-size: 13.5px; }
.as-mperson dl div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--as-line); }
.as-mperson dt { color: var(--as-muted); }
.as-mperson dd { margin: 0; font-weight: 600; color: var(--as-ink); text-align: right; }

/* ── Koota table ─────────────────────────────────────────────────────────── */
.as-mkootas { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.as-mkoota { padding: 12px 0; border-bottom: 1px solid var(--as-line-soft); }
.as-mkoota:last-child { border-bottom: 0; padding-bottom: 0; }
.as-mkoota-head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.as-mkoota-head strong { font: 700 16px var(--as-serif); color: var(--as-ink); }
.as-mkoota-head small { font-size: 12.5px; color: var(--as-muted); }
.as-mkoota-head b { font: 700 18px var(--as-serif); color: var(--as-ink); white-space: nowrap; }
.as-mkoota-head b span { font-size: 13px; color: var(--as-muted); }
.as-mkoota .as-meter-bar { height: 8px; border-radius: 8px; background: #f2ece4; overflow: hidden; }
.as-mkoota .as-meter-bar span { display: block; height: 100%; width: var(--v); border-radius: 8px;
  background: linear-gradient(90deg, #f3c160, #e0a63a); animation: as-mbar 1s ease-out both; }
.as-mkoota.is-full .as-meter-bar span { background: linear-gradient(90deg, #7fd39b, #3fae6a); }
.as-mkoota.is-zero .as-mkoota-head b { color: #b4223f; }
@keyframes as-mbar { from { width: 0; } }
.as-mkoota p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }

/* ── Doshas ──────────────────────────────────────────────────────────────── */
.as-mdosha { border-left: 4px solid #e46a7e; }
.as-mdosha.is-cancelled { border-left-color: #3fae6a; }
.as-mdosha h2 em { margin-left: 6px; padding: 2px 10px; border-radius: 20px; background: #e8f6ea; color: #23753f;
  font: 600 12px var(--as-sans); font-style: normal; vertical-align: middle; text-transform: uppercase; letter-spacing: .8px; }

/* ── Intro ───────────────────────────────────────────────────────────────── */
.as-mintro-kootas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.as-mintro-koota { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(28, 39, 87, .08); }
.as-mintro-koota b { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(145deg, #3b2a66, #1c2757); color: #f3c160; font: 700 19px var(--as-serif); }
.as-mintro-koota strong { display: block; font: 700 16px var(--as-serif); color: var(--as-ink); }
.as-mintro-koota small { display: block; font-size: 13px; color: var(--as-muted); }

.as-mscale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.as-mscale div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--as-mtone-bg);
  border-top: 4px solid var(--as-mtone); }
.as-mscale strong { font: 700 20px var(--as-serif); color: var(--as-mtone-ink); }
.as-mscale span { font-weight: 600; color: var(--as-ink); font-size: 14px; }
.as-mscale small { font-size: 12px; color: var(--as-muted); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) { .as-mscale { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .as-msky .as-sky-lead { margin: 0 auto 18px; }
  .as-mring { width: 180px; height: 180px; }
  .as-mring-num { font-size: 52px; }
  .as-mring-intro { width: 250px; height: 250px; }
  .as-mring-intro .as-mring-num { font-size: 64px; }
  .as-mring-tag { font-size: 11px; transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateY(-122px) rotate(calc(var(--i) * -45deg)); }
  .as-mintro-kootas { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .as-milan-form { grid-template-columns: 1fr; }
  .as-mform-card { padding: 18px 16px; }
}
@media (max-width: 560px) {
  .as-mcouple { grid-template-columns: 1fr 1fr; }
  .as-mcouple-heart { display: none; }
  .as-mperson { padding: 16px 12px 6px; }
  .as-mperson dl { font-size: 12.5px; }
  .as-mperson dl div { flex-direction: column; gap: 0; text-align: left; }
  .as-mperson dd { text-align: left; }
  .as-mkoota-head { grid-template-columns: 1fr auto; }
  .as-mkoota-head small { grid-row: 2; grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .as-mring, .as-mring-tag, .as-mkoota .as-meter-bar span { animation: none; } }
/* Campaign traffic is mostly mobile: drop the decorative ring so the form sits right under the headline. */
@media (max-width: 760px) { .as-msky:not(.is-result) .as-mring-wrap { display: none; } }
