/* =============================================
   Sri Thangam Matrimony - Main Stylesheet
   Bright festive palette (gold + blush + coral)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Nunito:wght@300;400;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700&display=swap');

:root {
  /* Bright gold — celebratory, high energy */
  --gold: #E8A317;
  --gold-mid: #F5B82E;
  --gold-light: #FFD666;
  --gold-muted: #F5C84A;
  --gold-dark: #C97808;
  --gold-deep: #A65F00;
  /* Coral & rose — typical vibrant matrimony accents */
  --rose: #E8486D;
  --rose-light: #FF6B8A;
  --rose-soft: #FFD0DC;
  --rose-deep: #C2185B;
  /* Surfaces — airy blush whites */
  --cream: #FFFAF7;
  --cream-dark: #FFE8F0;
  --cream-muted: #F8D0E0;
  --ivory: #FFFFFF;
  --white: #FFFFFF;
  --text-dark: #3D2434;
  --text-mid: #6B4A5C;
  --text-light: #9A7288;
  --border: #F3C4D4;
  --border-strong: #E8A0B8;
  --shadow: rgba(232, 72, 109, 0.1);
  --shadow-deep: rgba(200, 120, 20, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans Tamil', 'Nunito', sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, #FFF5F9 55%, #FFECF2 100%);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.65;
}

/* Navigation stays Latin / English labels */
nav[lang="en"],
nav[lang="en"] a {
  font-family: 'Nunito', sans-serif;
}

/* Tamil main content: prefer Tamil-capable type (Cormorant has poor Tamil coverage) */
.site-content-ta .hero h1,
.site-content-ta .section-title,
.site-content-ta .about-hero h1 {
  font-family: 'Noto Sans Tamil', 'Cormorant Garamond', serif;
  font-style: normal;
}
.site-content-ta .section-title {
  font-style: normal;
}

footer {
  font-family: 'Noto Sans Tamil', 'Nunito', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* Bilingual: Tamil (default) vs English — toggled by body.site-lang-en */
body.site-lang-ta .tr-en { display: none !important; }
body.site-lang-en .tr-ta { display: none !important; }
.tr-ta.inline, .tr-en.inline { display: inline; }
body.site-lang-ta .tr-en.inline { display: none !important; }
body.site-lang-en .tr-ta.inline { display: none !important; }

/* ---- TOP BAR ---- */
.top-bar {
  background: linear-gradient(90deg, #AD1457 0%, #C2185B 35%, #D81B60 70%, #C2185B 100%);
  color: #FFF8FC;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: #FFFFFF; }

/* ---- HEADER ---- */
header {
  background: var(--ivory);
  border-bottom: 3px solid var(--gold-light);
  box-shadow: 0 4px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lang-switch-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-switch-btn:hover {
  border-color: var(--gold-mid);
  color: var(--gold-dark);
}
.lang-switch-btn.active {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 100%);
  border-color: var(--gold-dark);
  color: var(--text-dark);
}
.logo img { height: 70px; }

/* ---- NAV ---- */
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s;
  white-space: nowrap;
}
nav ul li a:hover, nav ul li a.active {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 45%, var(--gold) 100%);
  color: var(--text-dark);
  box-shadow: 0 3px 12px rgba(245, 184, 46, 0.45);
}
nav ul li a.btn-register {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose) 55%, var(--rose-deep) 100%);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(200, 24, 91, 0.35);
}
nav ul li a.btn-register:hover {
  background: linear-gradient(180deg, #FF8FA8 0%, #E91E63 50%, #AD1457 100%);
}

/* ---- HERO SECTION ---- */
.hero {
  background:
    linear-gradient(165deg, #FFF9FC 0%, #FFF0F6 28%, #FFE4EE 58%, #FFD6E8 100%);
  padding: 56px 20px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 65% 55% at 20% 40%, rgba(255, 214, 102, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 48%, rgba(255, 107, 138, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 50% 45% at 50% 95%, rgba(245, 184, 46, 0.2) 0%, transparent 48%);
}
/* Soft ramp into stats bar */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 152, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--rose-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero p {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* About Us (home top section) */
.hero.about-hero {
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero.about-hero h1 {
  margin-bottom: 10px;
}
.hero.about-hero .about-tagline {
  margin-bottom: 28px;
  font-size: 16px;
}
.hero.about-hero .about-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.hero.about-hero .about-body p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mid);
}
.hero.about-hero .about-body p:last-child {
  margin-bottom: 0;
}

/* ---- SEARCH BOX (on hero) ---- */
.search-box {
  background: var(--ivory);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 40px var(--shadow-deep),
    0 4px 12px var(--shadow);
}
.search-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold-dark);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 14px;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.search-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-grid select, .search-grid input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(232, 72, 109, 0.06);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-grid select:focus, .search-grid input:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.35);
}
.btn {
  display: inline-block;
  padding: 11px 30px;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 40%, var(--gold) 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(245, 184, 46, 0.5);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #FFEAA0 0%, var(--gold-light) 45%, var(--gold-mid) 100%);
  box-shadow: 0 6px 22px rgba(245, 184, 46, 0.55);
}
.btn-rose {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose) 55%, var(--rose-deep) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
}
.btn-rose:hover {
  background: linear-gradient(180deg, #FF9EB5 0%, #E91E63 45%, #AD1457 100%);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--rose-light);
  color: var(--rose-deep);
}
.btn-outline:hover {
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose) 100%);
  color: var(--white);
  border-color: var(--rose-deep);
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: linear-gradient(95deg, #FFB300 0%, #FFA000 25%, #FF8F00 55%, #F57C00 100%);
  color: #FFFEF9;
  padding: 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(183, 28, 28, 0.25);
  display: block;
}
.stat-item .lbl { font-size: 13px; color: rgba(255, 255, 255, 0.92); }

/* ---- SECTION ---- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}
.section-compact {
  padding: 28px 20px 24px;
}

/* ---- ABOUT PAGE: compact 3-column grid ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.about-card {
  margin-bottom: 0 !important;
  padding: 18px 20px !important;
  display: flex;
  flex-direction: column;
}
.about-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rose-deep);
  font-size: 20px;
  margin: 0 0 6px;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.45;
}
.about-list li:last-child {
  border-bottom: 0;
}
.about-tick {
  color: var(--gold-mid);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 14px; }
}
.section-compact .section-subtitle {
  margin-bottom: 14px;
}
.section-compact .divider {
  margin-bottom: 16px;
}
.section-compact .carousel-wrap {
  margin-top: 4px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  color: var(--rose-deep);
  font-style: italic;
  margin-bottom: 6px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-mid), var(--rose-light));
  border-radius: 2px;
  margin-bottom: 30px;
}

/* ---- HOME CAROUSEL (profiles + communities) ---- */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.carousel-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track > .profile-card,
.carousel-track > .community-card,
.carousel-track > a.profile-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold-mid);
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  box-shadow: 0 2px 10px var(--shadow);
}
.carousel-btn:hover:not(:disabled) {
  background: var(--gold-mid);
  color: var(--white);
  border-color: var(--gold-dark);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.profiles-carousel .profile-card {
  width: 168px;
  max-width: 168px;
}
.profiles-carousel .profile-pic {
  height: 96px;
  font-size: 36px;
}
.profiles-carousel .profile-info {
  padding: 10px 10px 6px;
}
.profiles-carousel .profile-info .pname {
  font-size: 15px;
  margin-bottom: 2px;
  line-height: 1.2;
}
.profiles-carousel .profile-info .pcaste {
  font-size: 11px;
  margin-bottom: 4px;
}
.profiles-carousel .profile-info .pdetails {
  font-size: 11px;
  margin-bottom: 6px;
  line-height: 1.35;
}
.profiles-carousel .lock-msg {
  font-size: 10px;
  padding: 5px 6px;
  margin: 0 8px 10px;
  line-height: 1.3;
}
.community-carousel .carousel-track.community-grid,
.community-carousel .community-grid {
  display: flex;
  grid-template-columns: unset;
}
.community-carousel .community-card {
  width: 148px;
  min-width: 148px;
  padding: 14px 12px;
}
.community-carousel .community-card .name {
  font-size: 13px;
  margin-bottom: 4px;
}
.community-carousel .community-card .counts {
  font-size: 11px;
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .profiles-carousel .profile-card {
    width: 152px;
    max-width: 152px;
  }
  .community-carousel .community-card {
    width: 132px;
    min-width: 132px;
  }
}

/* ---- COMMUNITY CARDS (HOME) ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.community-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.community-card:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
}
.community-card .name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.community-card .counts {
  font-size: 12px;
  color: var(--text-light);
}
.community-card .counts span {
  display: inline-block;
  background: var(--cream-dark);
  padding: 2px 8px;
  border-radius: 20px;
  margin: 2px;
}

/* ---- PROFILE CARDS ---- */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.25s;
}
.profile-card:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-3px);
}
.profile-pic {
  width: 100%;
  height: 140px;
  background: linear-gradient(145deg, #FFE5F0 0%, #FFD6E8 40%, var(--gold-light) 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.profile-info { padding: 14px; }
.profile-info .pname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.profile-info .pcaste {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.profile-info .pdetails {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.lock-msg {
  font-size: 12px;
  color: var(--rose-deep);
  background: linear-gradient(180deg, #FFF5F8 0%, var(--rose-soft) 100%);
  padding: 6px 10px;
  border-radius: 4px;
  margin: 0 14px 14px;
}

.profile-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-pic-blur {
  filter: blur(12px);
  transform: scale(1.06);
}

/* ---- REGISTRATION: STEP LAYOUT ---- */
.reg-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.reg-stepnav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 16px;
}
.reg-step-item {
  display: grid;
  grid-template-columns: 36px 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans Tamil', 'Nunito', sans-serif;
  color: var(--text-dark);
  transition: all 0.2s;
}
.reg-step-item:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 4px 14px var(--shadow);
}
.reg-step-item.is-active {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, #FFFBF3, #FDF1DA);
  box-shadow: 0 6px 18px rgba(139, 21, 56, 0.08);
}
.reg-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.reg-step-item.is-active .reg-step-num,
.reg-step-item.is-visited .reg-step-num {
  background: var(--gold-dark);
  color: var(--white);
}
.reg-step-icon { font-size: 22px; line-height: 1; }
.reg-step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg-step-text strong { font-size: 14px; line-height: 1.2; }
.reg-step-text small { color: var(--text-light); font-size: 11.5px; }

.reg-form-wrap {
  padding: 26px 28px !important;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.reg-form-wrap form { min-width: 0; }
.reg-progress {
  margin: -6px 0 18px;
}
.reg-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.reg-progress-label {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 600;
}
.reg-progress-label strong {
  color: var(--gold-dark);
  font-size: 16px;
  margin: 0 2px;
}
.reg-progress-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rose-deep);
  font-size: 18px;
}
.reg-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}
.reg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-dark));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.reg-step { display: none; }
.reg-step.is-active { display: block; }
.reg-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.reg-side-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.reg-side-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.reg-side-card strong {
  display: block;
  font-size: 14px;
  color: var(--gold-dark);
  margin-bottom: 2px;
}
.reg-side-card[style*="gold-dark"] strong { color: var(--cream); }
.reg-side-card p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}
.reg-side-card[style*="gold-dark"] p { color: rgba(255,255,255,0.9); }
.reg-side-card p a { text-decoration: none; }

.reg-subhead {
  font-family: 'Noto Sans Tamil', 'Nunito', sans-serif;
  color: var(--gold-dark);
  font-size: 16px;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ---- Planet palette ---- */
.planet-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
}
.planet-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  min-width: 70px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans Tamil', 'Nunito', sans-serif;
  color: var(--text-dark);
  transition: all 0.15s;
}
.planet-chip:hover {
  border-color: var(--gold-mid);
}
.planet-chip.is-active {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(139, 21, 56, 0.25);
}
.planet-chip strong {
  font-size: 16px;
  line-height: 1;
}
.planet-chip small {
  font-size: 11px;
  opacity: 0.85;
}

/* ---- Rasi / Amsam charts ---- */
.rasi-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
  min-width: 0;
}
.rasi-chart-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.rasi-chart-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--rose-deep);
  margin-bottom: 10px;
}
.rasi-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(52px, 1fr));
  gap: 3px;
  background: var(--gold-dark);
  border: 2px solid var(--gold-dark);
  border-radius: 6px;
  padding: 3px;
  width: 100%;
  min-width: 0;
}
.rasi-cell {
  border: 0;
  border-radius: 3px;
  background: var(--white);
  text-align: center;
  font-family: 'Noto Sans Tamil', 'Nunito', sans-serif;
  font-size: 12px;
  padding: 2px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rasi-cell:focus {
  outline: 2px solid var(--gold-mid);
  outline-offset: -2px;
}
.rasi-cell:hover {
  background: #FFF9EC;
}
.rasi-center {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 3px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--gold-dark);
}

/* Place specific cells in the 4x4 grid (South-Indian layout) */
.rasi-chart input[data-cell="r1"],  .rasi-chart input[data-cell="a1"]  { grid-column: 1; grid-row: 1; }
.rasi-chart input[data-cell="r2"],  .rasi-chart input[data-cell="a2"]  { grid-column: 2; grid-row: 1; }
.rasi-chart input[data-cell="r3"],  .rasi-chart input[data-cell="a3"]  { grid-column: 3; grid-row: 1; }
.rasi-chart input[data-cell="r4"],  .rasi-chart input[data-cell="a4"]  { grid-column: 4; grid-row: 1; }
.rasi-chart input[data-cell="r12"], .rasi-chart input[data-cell="a12"] { grid-column: 1; grid-row: 2; }
.rasi-chart input[data-cell="r5"],  .rasi-chart input[data-cell="a5"]  { grid-column: 4; grid-row: 2; }
.rasi-chart input[data-cell="r11"], .rasi-chart input[data-cell="a11"] { grid-column: 1; grid-row: 3; }
.rasi-chart input[data-cell="r6"],  .rasi-chart input[data-cell="a6"]  { grid-column: 4; grid-row: 3; }
.rasi-chart input[data-cell="r10"], .rasi-chart input[data-cell="a10"] { grid-column: 1; grid-row: 4; }
.rasi-chart input[data-cell="r9"],  .rasi-chart input[data-cell="a9"]  { grid-column: 2; grid-row: 4; }
.rasi-chart input[data-cell="r8"],  .rasi-chart input[data-cell="a8"]  { grid-column: 3; grid-row: 4; }
.rasi-chart input[data-cell="r7"],  .rasi-chart input[data-cell="a7"]  { grid-column: 4; grid-row: 4; }

@media (max-width: 900px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-stepnav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .reg-step-item {
    flex: 0 0 220px;
    padding: 10px 12px;
  }
  .reg-step-text small { display: none; }
  .reg-side-strip { grid-template-columns: 1fr; }
  .rasi-charts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .planet-chip { min-width: 56px; padding: 6px 8px; }
  .planet-chip small { display: none; }
  .rasi-chart { grid-template-rows: repeat(4, minmax(46px, 1fr)); }
  .rasi-cell { font-size: 11px; }
  .rasi-center { font-size: 14px; }
}

/* ---- PLANS SECTION ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 30px var(--shadow);
}
.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.plan-card .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.plan-card .price span { font-size: 18px; }
.plan-card .duration {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.plan-card ul {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
}
.plan-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.plan-card ul li::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 700;
}

/* ---- FORM STYLES ---- */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 20px var(--shadow);
}
.form-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-row > * { min-width: 0; }
.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-section .section-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.contact-icon {
  font-size: 22px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.contact-text strong { display: block; color: var(--gold-dark); font-size: 14px; }
.contact-text span { font-size: 14px; color: var(--text-mid); }

/* ---- FOOTER ---- */
footer {
  background: linear-gradient(165deg, #4A1942 0%, #3D1038 50%, #2D0B2E 100%);
  color: #FFFFFF;
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand p {
  font-size: 13px;
  color: #FFFFFF;
  margin-top: 14px;
  line-height: 1.7;
  opacity: 0.95;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13px;
  color: #FFFFFF;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.95;
}
.footer-col ul li a:hover {
  color: var(--gold-light);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #FFFFFF;
  opacity: 0.92;
}
.footer-brand img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  nav ul { justify-content: center; }
  .hero h1 { font-size: 32px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .search-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}
