/* ==========================================================================
   CAPITAL CHOWDARY MATRIMONY — OFFICIAL DESIGN SYSTEM & STYLESHEET
   Strict Design Lock: Maroon (#75182E, #591020), Gold (#B79A52), Ivory (#FFFAF4), Soft Pink (#F9E9E8)
   ========================================================================== */

:root {
  --wine: #75182e;
  --dark: #591020;
  --gold: #b79a52;
  --gold-light: #dfc88a;
  --cream: #fffaf4;
  --cream-soft: #fff6ee;
  --pink: #f9e9e8;
  --pink-light: #fdeded;
  --pink-bg: #faebeb;
  --bg: #fdf9f5;
  --card-bg: #ffffff;
  --text: #292323;
  --text-muted: #665b59;
  --border-light: #eeded3;
  --border-gold: #e2cc97;
  --shadow-sm: 0 2px 8px rgba(89, 16, 32, 0.05);
  --shadow-md: 0 5px 20px rgba(105, 65, 43, 0.08);
  --shadow-lg: 0 10px 30px rgba(89, 16, 32, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 30px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  touch-action: manipulation;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Playfair Display", serif;
  color: var(--dark);
  line-height: 1.15;
  margin: 0 0 10px;
}

h1 { font-size: clamp(34px, 4.5vw, 62px); }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
  margin: 0 0 12px;
}

.wrap {
  width: min(94%, 1280px);
  margin: auto;
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(110deg, #8c263c, #641128);
  color: #ffffff !important;
  border: 1px solid var(--wine);
  border-radius: 7px;
  padding: 11px 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: linear-gradient(110deg, #9e2b44, #73132e);
  box-shadow: 0 4px 12px rgba(117, 24, 46, 0.25);
  transform: translateY(-1px);
}

.btn.outline {
  background: #fff8f5;
  color: var(--wine) !important;
  border-color: var(--wine);
}

.btn.outline:hover {
  background: var(--pink-light);
  color: var(--dark) !important;
}

.btn.gold {
  background: linear-gradient(110deg, #c7aa5d, #ab8d45);
  border-color: #a4863c;
  color: #ffffff !important;
}

.btn.gold:hover {
  background: linear-gradient(110deg, #d4b86c, #ba9c52);
}

.btn.green {
  background: #188342;
  border-color: #156d37;
  color: #ffffff !important;
}

.btn.green:hover {
  background: #147239;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 5px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.badge-approved, .badge-active { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.badge-rejected, .badge-expired { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.badge-gold { background: #fff7e6; color: #997300; border: 1px solid #ffe8b3; }

/* --------------------------------------------------------------------------
   SECTION 1: TOP CONTACT BAR
   -------------------------------------------------------------------------- */
.top {
  background: var(--dark);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.top a {
  color: #ffffff;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.top a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.top-phone-link {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.top-phone-link:hover {
  color: var(--gold-light) !important;
}

.top-wa-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(37, 211, 102, 0.16);
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.top-wa-link:hover {
  background: rgba(37, 211, 102, 0.32);
  border-color: #25d366;
  color: #ffffff !important;
}

.top-wa-link .wa-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.top .coverage {
  opacity: 0.9;
}

/* Language Switcher */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 11.5px;
  margin-left: 6px;
}
.lang-switch-box .lang-btn {
  color: #f1e4d8 !important;
  text-decoration: none;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  line-height: 1.3;
}
.lang-switch-box .lang-btn:hover {
  color: #ffffff !important;
}
.lang-switch-box .lang-btn.active {
  background: #b79a52;
  color: #292323 !important;
  font-weight: 700;
}
.lang-switch-box .lang-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  margin: 0 1px;
}

/* Telugu Typography & Spacing Enhancements */
body.lang-te {
  font-family: 'Nirmala UI', 'Gautami', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}
body.lang-te h1,
body.lang-te h2,
body.lang-te h3,
body.lang-te h4 {
  font-family: 'Nirmala UI', 'Gautami', Georgia, serif;
  line-height: 1.35;
  letter-spacing: 0;
}
body.lang-te .btn {
  letter-spacing: 0.1px;
  line-height: 1.45;
  font-size: 13.5px;
}
body.lang-te .links a {
  font-size: 14px;
}
body.lang-te .eyebrow {
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   SECTION 2: NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.nav {
  background: #fffaf6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #f1e4d8;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.logo {
  height: 44px;
  width: auto;
  max-width: 38vw;
  display: block;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
}

.links a {
  color: var(--text);
  padding: 4px 0;
  position: relative;
}

.links a:hover, .links a.active {
  color: var(--wine);
}

.links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1.5px solid var(--wine);
  border-radius: 6px;
  color: var(--wine) !important;
  font-size: 13.5px;
  font-weight: 600;
  background: #ffffff;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-login-btn:hover {
  background: var(--pink-light);
  color: var(--dark) !important;
  border-color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(117, 24, 46, 0.12);
}

.nav-reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(110deg, #8c263c, #591020);
  border: 1.5px solid var(--wine);
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(117, 24, 46, 0.22);
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-reg-btn:hover {
  background: linear-gradient(110deg, #9e2b44, #6e1428);
  box-shadow: 0 4px 14px rgba(117, 24, 46, 0.35);
  transform: translateY(-1px);
}

.mobile-actions {
  display: none;
}

.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--wine);
  cursor: pointer;
  padding: 4px 8px;
}

/* --------------------------------------------------------------------------
   SECTION 3: HERO BANNER
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #f8ece0;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f8ece0 0%, #f8ece0 32%, rgba(248, 236, 224, 0.85) 45%, rgba(248, 236, 224, 0) 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 50px 2% 70px;
}

.eyebrow {
  letter-spacing: 2.5px;
  color: var(--wine);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  max-width: 600px;
  margin: 10px 0 6px;
  color: var(--dark);
}

.ornament {
  color: var(--gold);
  letter-spacing: 4px;
  margin: 8px 0 14px;
  font-size: 16px;
}

.hero p {
  max-width: 440px;
  font-size: 17px;
  color: #3b3130;
  line-height: 1.45;
  margin-bottom: 22px;
}

.hero .actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-btn {
  padding: 13px 28px !important;
  font-size: 15px !important;
  letter-spacing: 0.3px;
  border-radius: 7px !important;
  box-shadow: 0 4px 12px rgba(117, 24, 46, 0.25);
  font-weight: bold;
}

.hero-btn.outline {
  background: #ffffff !important;
  border: 2px solid var(--wine) !important;
  color: var(--wine) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-btn.outline:hover {
  background: #fff0ea !important;
  border-color: var(--dark) !important;
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(117, 24, 46, 0.2);
}

/* --------------------------------------------------------------------------
   SECTION 4: STATISTICS BAR
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  z-index: 5;
  margin: -36px auto 26px;
  background: var(--cream);
  border: 1px solid #eedfd4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0;
}

.stat {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border-right: 1px solid #e5d7c7;
  padding: 0 16px;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--dark);
  font: bold 22px Georgia, serif;
}

.stat small {
  font-size: 12.5px;
  color: var(--text-muted);
}

.ico {
  width: 36px;
  height: 36px;
  display: inline-block;
  flex-shrink: 0;
  color: var(--wine);
}

.stat .ico {
  color: var(--gold);
  width: 38px;
  height: 38px;
}

/* --------------------------------------------------------------------------
   GENERAL SECTIONS & HEADINGS
   -------------------------------------------------------------------------- */
.section {
  padding: 25px 0 35px;
}

.center {
  text-align: center;
}

.section h2 {
  margin-bottom: 6px;
}

.section h2::before,
.section h2::after {
  content: '❧';
  font-size: 20px;
  color: var(--gold);
  margin: 0 12px;
}

.sub {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 16px;
}

/* --------------------------------------------------------------------------
   SECTION 5: OUR SERVICES (6 Cards)
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.service-card {
  border: 1px solid #eadbd3;
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, #fae9e9 0%, #fcf1e5 100%);
  min-height: 130px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(117, 24, 46, 0.1);
  background: linear-gradient(130deg, #f7dfdf 0%, #faecd9 100%);
}

.service-card .ico {
  width: 32px;
  height: 32px;
}

/* --------------------------------------------------------------------------
   SECTION 6: HOW IT WORKS (4 Steps)
   -------------------------------------------------------------------------- */
.steps-box {
  background: linear-gradient(130deg, #fbedec 0%, #f9e5e5 100%);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  border: 1px solid #eed7d7;
  margin: 20px auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 22px;
}

.step {
  position: relative;
  text-align: center;
}

.step:not(:last-child)::after {
  content: '⟶';
  position: absolute;
  right: -20px;
  top: 30px;
  color: var(--gold);
  font-size: 26px;
  font-weight: bold;
}

.circle {
  width: 74px;
  height: 74px;
  border: 1px solid #ead9bd;
  background: #f9e9d5;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  box-shadow: 0 3px 10px rgba(183, 154, 82, 0.15);
}

.step b {
  color: var(--wine);
  font-size: 15px;
  display: block;
}

.step p {
  font-size: 13px;
  line-height: 1.4;
  margin: 5px auto 0;
  max-width: 220px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SECTION 7: WHY CHOOSE US (3 Columns)
   -------------------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.75fr;
  gap: 26px;
  align-items: center;
  padding: 30px 0 20px;
}

.why h2 {
  font-size: 29px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.checks li {
  margin: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.checks li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  background: #c6a64e;
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-right: 10px;
  font-size: 11px;
  font-weight: bold;
}

.hands-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold-light);
  background: #ffffff;
}

.hands {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.plan-card {
  border: 1px solid #d9c59e;
  background: url('../decorations/ivory-floral.webp') no-repeat right bottom, linear-gradient(135deg, #fff9ed 0%, #f9eee6 100%);
  background-size: 130px auto, auto;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 28px 18px;
  box-shadow: var(--shadow-sm);
}

.plan-card .ico {
  color: var(--gold);
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.plan-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.plan-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   SECTION 8: FAQ & NEED ASSISTANCE (2 Columns)
   -------------------------------------------------------------------------- */
.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 15px 0 32px;
}

.faq details {
  border: 1px solid #e6ddd6;
  border-radius: 8px;
  background: #fffdfb;
  margin: 8px 0;
  padding: 10px 15px;
  font-size: 13.5px;
  transition: var(--transition);
}

.faq details[open] {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '→';
  color: var(--gold);
  font-size: 16px;
  font-weight: bold;
}

.faq details[open] summary::after {
  content: '−';
  color: var(--wine);
}

.faq details p {
  margin: 10px 0 4px;
  color: var(--text-muted);
  line-height: 1.45;
}

.help {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f8e4e7 0%, #fff7ed 70%);
  padding: 28px 28% 22px 24px;
  border: 1px solid #eedbd5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.help-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, black 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 35%);
}

.help h2 {
  font-size: 27px;
  margin-bottom: 6px;
}

.help p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 320px;
}

.help .phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wine);
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   SECTION 9: FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: linear-gradient(100deg, #661127 0%, #801b34 100%);
  color: #ffffff;
  padding: 35px 0 0;
  font-size: 13px;
  margin-top: 20px;
}

.footgrid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr 1.5fr 0.7fr;
  gap: 28px;
}

.footer h3 {
  font: bold 14px Arial, sans-serif;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer a {
  display: block;
  margin: 6px 0;
  color: #fce8eb;
  opacity: 0.9;
}

.footer a:hover {
  color: var(--gold-light);
  opacity: 1;
  padding-left: 3px;
}

.footer .brand {
  font: bold 22px Georgia, serif;
  color: #f7dfae;
  margin-bottom: 10px;
}

.footer p {
  color: #fce8eb;
  line-height: 1.45;
  margin-bottom: 8px;
}

.bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 25px;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #e5b9c2;
}

.bottom a {
  display: inline;
  margin-left: 14px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: #188342;
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  font-weight: bold;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  background: #147037;
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   GENERIC PAGE CONTAINER & HERO BANNER FOR INNER PAGES
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #75182e 0%, #591020 100%);
  color: #ffffff;
  padding: 40px 0 45px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 8px;
}

.page-hero .breadcrumbs {
  font-size: 13px;
  color: var(--gold-light);
}

.page-hero .breadcrumbs a {
  color: #ffffff;
}

.page-hero .breadcrumbs a:hover {
  color: var(--gold-light);
}

.content-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin: 30px auto;
}

/* --------------------------------------------------------------------------
   MULTI-STEP REGISTRATION FORM (Bride & Groom)
   -------------------------------------------------------------------------- */
.reg-wizard {
  max-width: 820px;
  margin: 25px auto 40px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 36px;
}

.steps-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid #eedfd4;
  padding-bottom: 14px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.step-indicator .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0e6df;
  color: var(--dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: bold;
}

.step-indicator.active {
  color: var(--wine);
}

.step-indicator.active .step-num {
  background: var(--wine);
  color: #ffffff;
}

.step-indicator.completed .step-num {
  background: var(--gold);
  color: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

label .req {
  color: #b31d25;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8c7bc;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(117, 24, 46, 0.12);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #eedfd4;
}

/* --------------------------------------------------------------------------
   MATCHES & PROFILE CARDS
   -------------------------------------------------------------------------- */
.filter-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.profile-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.profile-img-wrap {
  position: relative;
  height: 240px;
  background: #f7ebe4;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-id-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(89, 16, 32, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.profile-body {
  padding: 16px;
  flex: 1;
}

.profile-name {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 6px;
}

.profile-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f1e4d8;
  background: var(--cream);
}

/* --------------------------------------------------------------------------
   MEMBER & ADMIN DASHBOARDS
   -------------------------------------------------------------------------- */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 120px);
}

.dashboard-sidebar {
  width: 260px;
  background: var(--dark);
  color: #ffffff;
  padding: 24px 16px;
  flex-shrink: 0;
}

.dashboard-sidebar .brand-title {
  color: var(--gold-light);
  font-size: 18px;
  font-family: Georgia, serif;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dash-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-nav li {
  margin-bottom: 6px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #f8e5e8;
  font-size: 13.5px;
}

.dash-nav a:hover, .dash-nav a.active {
  background: rgba(183, 154, 82, 0.2);
  color: #ffffff;
}

.dash-nav a.active {
  border-left: 3px solid var(--gold);
}

.dashboard-main {
  flex: 1;
  padding: 30px;
  background: #fdf9f5;
  overflow-y: auto;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-stat-card .num {
  font-size: 28px;
  font-weight: bold;
  color: var(--dark);
  font-family: Georgia, serif;
}

.dash-stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   DATA TABLES
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data-table th, table.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f2e7de;
}

table.data-table th {
  background: var(--cream);
  color: var(--dark);
  font-weight: 600;
}

table.data-table tr:hover {
  background: #fffdfa;
}

/* --------------------------------------------------------------------------
   ALERTS & NOTICES
   -------------------------------------------------------------------------- */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info    { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }
.alert-close {
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
}

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
dialog.site-modal {
  border: 1px solid #d8bd88;
  border-radius: var(--radius-lg);
  padding: 26px;
  width: min(92%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}

dialog.site-modal::backdrop {
  background: rgba(40, 12, 24, 0.65);
  backdrop-filter: blur(2px);
}

.modal-close {
  float: right;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--wine);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES (320px to 1920px)
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .links { gap: 12px; font-size: 12px; }
  .logo { height: 38px; }
  .hero { min-height: 330px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .why > div:first-child { grid-column: 1 / -1; }
  .footgrid { grid-template-columns: 1fr 1fr; }
  .footgrid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .top .wrap { justify-content: center; flex-wrap: wrap; gap: 4px 12px; }
  .top .coverage { display: none; }
  .menu { display: block; }
  .nav-actions { display: none !important; }
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ebd9c8;
  }
  .mobile-actions .nav-login-btn,
  .mobile-actions .nav-reg-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fffaf4;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #eedcd1;
  }
  .links.open { display: flex; }
  .hero { display: block; min-height: auto; }
  .hero-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.85;
    display: block;
  }
  .hero::after { display: none; }
  .hero .wrap { padding: 24px 0 45px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 16px 4px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat strong { font-size: 18px; }
  .stat small { font-size: 11px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .step:not(:last-child)::after { display: none; }
  .support { grid-template-columns: 1fr; gap: 20px; }
  .help { padding: 22px 20px; }
  .help-photo { display: none; }
  .dashboard-container { flex-direction: column; }
  .dashboard-sidebar { width: 100%; }
}

@media (max-width: 520px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid #e5d7c7; padding-bottom: 12px; }
  .stat:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  .logo { height: 32px; }
  .hero h1 { font-size: 30px; }
  .btn { padding: 9px 14px; font-size: 12px; }
}

/* --------------------------------------------------------------------------
   ADMIN PORTAL STYLES & LAYOUT
   -------------------------------------------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #fbf6f0;
}
.admin-sidebar {
  width: 270px;
  background: #470d19;
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #330811;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 99;
}
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid #eedfd4;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 90;
}
.admin-body {
  padding: 28px;
  flex: 1;
}
.admin-nav {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.admin-nav li {
  margin: 2px 0;
}
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: #fce8eb;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.admin-nav a:hover {
  background: rgba(183, 154, 82, 0.22);
  color: #ffffff;
  border-left-color: rgba(183, 154, 82, 0.6);
}
.admin-nav a.active {
  background: rgba(183, 154, 82, 0.3);
  color: #ffffff;
  font-weight: 700;
  border-left-color: var(--gold);
}
.admin-badge {
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e53e3e;
  color: #ffffff;
}
.admin-badge.badge-gold {
  background: #b79a52;
  color: #292323;
}
.admin-badge.badge-green {
  background: #25d366;
  color: #ffffff;
}
.admin-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2ccba;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  text-decoration: none;
}
.admin-quick-btn:hover {
  border-color: var(--wine);
  color: var(--wine);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.admin-quick-btn.primary {
  background: var(--wine);
  color: #ffffff;
  border-color: var(--wine);
}
.admin-quick-btn.primary:hover {
  background: #591020;
  color: #ffffff;
}
.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #ebd9c8;
  margin-bottom: 20px;
  padding-bottom: 2px;
}
.tab-nav a {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
}
.tab-nav a.active {
  color: var(--wine);
  background: #ffffff;
  border: 1px solid #ebd9c8;
  border-bottom-color: #ffffff;
  margin-bottom: -3px;
}
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-body { padding: 18px; }
  .admin-topbar { padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
}
