/* =========================================================
   theme.css — modern matrimony-site theme
   Inspired by the clean, card-based, red/maroon-accented look
   used by mainstream Indian matrimony platforms.
   ========================================================= */

:root {
  --brand-red: #b3123f;
  --brand-red-dark: #8a0e30;
  --brand-gold: #d69e2e;
  --ink: #23202b;
  --muted: #6b6674;
  --bg: #f7f5f8;
  --card: #ffffff;
  --border: #eae6ee;
  --success: #1f9d55;
  --danger: #d9342b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(35, 32, 43, 0.06);
  --shadow-lg: 0 8px 30px rgba(35, 32, 43, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar / header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-red);
}
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-gold));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a { color: var(--ink); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--brand-red); text-decoration: none; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nav.nav--open { display: flex; }
  .nav a, .nav .btn {
    padding: 13px 20px;
    border-radius: 0;
    width: auto;
    text-align: left;
  }
  .nav .btn { margin: 6px 20px; width: auto; text-align: center; }
  .site-header__inner { position: relative; }
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--brand-red); color: var(--brand-red); }
.btn-outline:hover { background: var(--brand-red); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 60%, #5c0a22 100%);
  color: #fff;
  padding: 56px 20px 90px;
}
.hero h1 { font-size: 34px; margin: 0 0 8px; }
.hero p { margin: 0 0 26px; opacity: .92; font-size: 16px; }

.hero-split {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 1080px) { .hero-split { grid-template-columns: 1fr 1.1fr; } .hero-illus { display: none; } }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

.hero-illus { display: flex; align-items: center; justify-content: center; }
.hero-illus img { width: 100%; max-width: 300px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.25)); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px;
}
.hero-trust span { font-size: 13px; opacity: .95; display: flex; align-items: center; gap: 6px; }

.search-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  max-width: 460px;
  margin: 0;
  overflow: hidden;
}
.search-card__head {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 20px;
}
.search-card__body { padding: 22px; }
.search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.search-card__foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 22px 20px;
}
.search-card__foot a { font-weight: 700; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.field select, .field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}
.field select:focus, .field input:focus { outline: 2px solid var(--brand-gold); border-color: var(--brand-gold); }

/* ---------- Cards / grid ---------- */
.section { padding: 46px 20px; }
.section-title { font-size: 24px; margin: 0 0 22px; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-card__photo {
  aspect-ratio: 3/4;
  background: #f0eef2 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.profile-card__photo.no-photo { background-image: url('/images/illus-avatar.svg'); background-size: cover; }
.profile-card__body { padding: 14px; }
.profile-card__name { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.profile-card__meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fdf0e8;
  color: var(--brand-gold);
}
.badge-verified { background: #e7f7ee; color: var(--success); }

/* ---------- Forms / auth pages ---------- */
.auth-wrap {
  max-width: 460px;
  margin: 50px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.auth-wrap h1 { font-size: 22px; margin: 0 0 6px; }
.auth-wrap .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--brand-gold); border-color: var(--brand-gold);
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Registration wizard ---------- */
.wizard-wrap { max-width: 640px; margin: 40px auto; padding: 0 20px; }
.wizard-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wizard-topbar .wizard-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); }
.wizard-topbar .wizard-back:hover { color: var(--brand-red); text-decoration: none; }
.wizard-topbar .wizard-back .arrow { font-size: 20px; line-height: 1; }
.wizard-topbar .wizard-step-count { font-weight: 700; color: var(--muted); font-size: 14px; white-space: nowrap; }
.wizard-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.wizard-progress__bar { height: 100%; background: linear-gradient(90deg, var(--brand-red), var(--brand-gold)); border-radius: 999px; transition: width .25s ease; }
.wizard-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; }
.wizard-card h2 { font-size: 17px; margin: 0 0 16px; }
.wizard-card h2:not(:first-child) { margin-top: 26px; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wizard-actions .btn-primary { flex: 1; }
.wizard-skip { text-align: center; margin-top: 14px; font-size: 13px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.choice-pill {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; color: var(--ink); user-select: none;
}
.choice-pill:hover { border-color: var(--brand-red); }
.choice-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-pill.is-selected { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f6c8c4; }
.alert-success { background: #e9f9ef; color: var(--success); border: 1px solid #b9ecca; }
.alert-info { background: #eef4fd; color: #1a56b0; border: 1px solid #c6dcf7; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 780px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  height: fit-content;
}
.dash-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.dash-side a:hover, .dash-side a.active { background: #fdf0f3; color: var(--brand-red); text-decoration: none; }
.dash-side .group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 12px 4px; }
.dash-side .group-label:first-child { padding-top: 4px; }
.dash-side hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; box-shadow: var(--shadow); overflow-x: auto; }
.card table { max-width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #1c1720; color: #cfc7d6; padding: 40px 20px 24px; margin-top: 60px; }
.site-footer a { color: #efe6f2; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 780px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 12px; }
.site-footer .bottom { margin-top: 28px; border-top: 1px solid #332b39; padding-top: 18px; font-size: 12px; color: #948d9c; text-align: center; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Homepage trust / elite / testimonial bands ---------- */
.feature-band { padding: 60px 20px; }
.feature-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .feature-band__grid { grid-template-columns: 1fr; } }
.feature-band .eyebrow { color: var(--brand-red); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.feature-band h2 { font-size: 28px; margin: 0 0 14px; }
.feature-band h2 span { color: var(--brand-red); }
.feature-band p.lead { color: var(--muted); font-size: 15px; margin: 0 0 26px; max-width: 460px; }
.feature-icons { display: flex; gap: 22px; margin-bottom: 30px; flex-wrap: wrap; }
.feature-icon { text-align: center; width: 100px; }
.feature-icon .ic {
  width: 56px; height: 56px; border-radius: 14px; background: #fdf0f3;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 10px; color: var(--brand-red);
}
.feature-icon span { font-size: 13px; font-weight: 700; color: var(--ink); }
.feature-visual {
  aspect-ratio: 4/3; border-radius: 18px;
  background: linear-gradient(135deg, #fdf0f3 0%, #fdf3e8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: var(--brand-red);
}
.feature-visual img { width: 55%; max-width: 220px; }

.elite-band {
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, #4a0a1e 70%, #2f0713 100%);
  color: #fff; padding: 64px 20px;
}
.elite-band__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .elite-band__grid { grid-template-columns: 1fr; } }
.elite-visual {
  aspect-ratio: 4/3; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}
.elite-visual img { width: 48%; max-width: 200px; }
.elite-band h2 { font-size: 26px; margin: 0 0 22px; }
.elite-list { list-style: none; margin: 0 0 26px; padding: 0; }
.elite-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.elite-list .ic {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.elite-list strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.elite-list span { font-size: 13px; opacity: .82; }
.elite-band .btn-primary { background: var(--brand-gold); color: #3a2a00; }
.elite-band .btn-primary:hover { background: #c28a1f; color: #3a2a00; }

.testimonial-section { padding: 60px 20px; text-align: center; }
.testimonial-card {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 38px; max-width: 900px; margin: 30px auto 0;
  display: grid; grid-template-columns: 1fr 220px; gap: 30px; align-items: center;
  text-align: left; position: relative;
}
@media (max-width: 680px) { .testimonial-card { grid-template-columns: 1fr; } }
.testimonial-card .quote-mark { font-size: 42px; color: var(--brand-gold); line-height: 1; font-family: Georgia, serif; }
.testimonial-card p.quote { font-size: 15px; color: var(--ink); margin: 6px 0 16px; }
.testimonial-card .names { font-weight: 800; font-size: 15px; }
.testimonial-card .source { font-size: 12.5px; color: var(--muted); }
.testimonial-photo {
  aspect-ratio: 4/3; border-radius: 14px;
  background: linear-gradient(135deg, #fdf0f3, #fdf3e8);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--brand-red);
}
.testimonial-photo img { width: 62%; max-width: 160px; }
.testimonial-avatars { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.testimonial-avatars .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f0eef2; color: var(--muted); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; cursor: default;
}
.testimonial-avatars .av.active { border-color: var(--brand-red); background: #fdf0f3; color: var(--brand-red); }

/* ---------- Pricing / membership plans ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 60%, #5c0a22 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: 28px; }
.page-hero p { margin: 0; opacity: .92; font-size: 15px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin: 46px 0 30px;
  align-items: stretch;
}
.plan-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plan-card--featured {
  border-color: var(--brand-red);
  box-shadow: 0 10px 34px rgba(179, 18, 63, 0.18);
}
.plan-card--lifetime { border-color: var(--brand-gold); }

.plan-ribbon {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
  padding: 6px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(179, 18, 63, 0.35);
}

.plan-name { margin: 6px 0 14px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.plan-card--featured .plan-name, .plan-card--lifetime .plan-name { color: var(--brand-red); }

.plan-price { margin: 0 0 6px; line-height: 1; }
.plan-price .amount { font-size: 38px; font-weight: 800; color: var(--ink); }
.plan-price .period { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan-subtext { font-size: 12.5px; color: var(--muted); margin: 0 0 22px; }

.plan-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--ink);
}
.plan-features li:last-child { border-bottom: none; }
.plan-check, .plan-cross {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.plan-check { background: #e6f7ec; color: var(--success); }
.plan-cross { background: #f1eef4; color: #b6aec2; }

.plan-card .btn { width: 100%; padding: 13px 20px; font-size: 14.5px; }
.plan-card--featured .btn-primary { background: linear-gradient(90deg, var(--brand-red), var(--brand-red-dark)); }
.plan-card--lifetime .btn { background: var(--brand-gold); color: #3a2a00; border-color: var(--brand-gold); }
.plan-card--lifetime .btn:hover { background: #c28a1f; color: #3a2a00; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin: 30px 0;
  align-items: start;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card h4 { margin: 18px 0 4px; font-size: 14px; color: var(--brand-red); }
.contact-info-card h4:first-child { margin-top: 0; }
.contact-info-card p { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; }
.contact-map iframe { display: block; width: 100%; border: 0; }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.captcha-row img { border-radius: 6px; border: 1px solid var(--border); }
.captcha-row input { flex: 1; }
