.matrimony-real-time-main {
  background: #f8fafc;
  color: #0f172a;
}

.matrimony-page {
  overflow: hidden;
}

.matrimony-hero {
  background:
    linear-gradient(120deg, rgba(5, 31, 73, 0.92), rgba(11, 77, 89, 0.88)),
    url("../images/hero-community.png") center/cover;
  color: #fff;
  padding: 72px 0 42px;
}

.matrimony-hero__grid,
.matrimony-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.matrimony-kicker {
  color: #f5c75c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matrimony-hero h1,
.matrimony-section h2,
.matrimony-preview h3 {
  font-family: "Playfair Display", Georgia, serif;
}

.matrimony-hero h1 {
  margin-top: 14px;
  max-width: 760px;
  font-size: 2.9rem;
  line-height: 1.04;
  font-weight: 700;
}

.matrimony-hero__copy {
  margin-top: 18px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.matrimony-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 720px;
}

.matrimony-trust-row span,
.matrimony-stat,
.matrimony-panel,
.matrimony-card,
.matrimony-search,
.matrimony-live-card,
.matrimony-process-card,
.matrimony-faq details {
  border-radius: 8px;
}

.matrimony-trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.matrimony-hero__panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.matrimony-app-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.matrimony-panel {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09);
}

.matrimony-hero__panel,
.matrimony-panel,
.matrimony-search,
.matrimony-preview,
.matrimony-card,
.matrimony-process-card {
  padding: 22px;
}

.matrimony-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.matrimony-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(245, 199, 92, 0.35);
  background: #fff7df;
  color: #7a4d00;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.matrimony-badge--blue {
  border-color: rgba(37, 99, 235, 0.18);
  background: #eff6ff;
  color: #1d4ed8;
}

.matrimony-badge--green {
  border-color: rgba(22, 163, 74, 0.18);
  background: #ecfdf3;
  color: #15803d;
}

.matrimony-section {
  padding: 58px 0;
}

.matrimony-section--white {
  background: #fff;
}

.matrimony-section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.matrimony-section h2 {
  color: #051f49;
  font-size: 2rem;
  line-height: 1.16;
  font-weight: 700;
}

.matrimony-section__lead {
  max-width: 760px;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.75;
}

.matrimony-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.matrimony-stat {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  padding: 16px;
}

.matrimony-stat strong {
  display: block;
  color: #051f49;
  font-size: 1.8rem;
  line-height: 1;
}

.matrimony-stat span {
  margin-top: 8px;
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.matrimony-search {
  border: 1px solid rgba(217, 151, 20, 0.25);
  background: #fff;
  box-shadow: 0 18px 50px rgba(5, 31, 73, 0.08);
}

.matrimony-search__grid,
.matrimony-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.matrimony-field {
  display: grid;
  gap: 8px;
  color: #051f49;
  font-size: 0.8rem;
  font-weight: 700;
}

.matrimony-field input,
.matrimony-field select,
.matrimony-field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 12px 13px;
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.matrimony-field textarea {
  min-height: 96px;
  resize: vertical;
}

.matrimony-field input:focus,
.matrimony-field select:focus,
.matrimony-field textarea:focus {
  border-color: #d99714;
  box-shadow: 0 0 0 3px rgba(217, 151, 20, 0.14);
}

.matrimony-search__actions,
.matrimony-card__actions,
.matrimony-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.matrimony-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.matrimony-button--primary {
  background: #d99714;
  color: #051f49;
}

.matrimony-button--dark {
  background: #051f49;
  color: #fff;
}

.matrimony-button--light {
  border-color: #cbd5e1;
  background: #fff;
  color: #051f49;
}

.matrimony-button[aria-pressed="true"] {
  border-color: #0f766e;
  background: #ccfbf1;
  color: #115e59;
}

.matrimony-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 16px;
  color: #475569;
  font-size: 0.92rem;
}

.matrimony-results-bar strong {
  color: #051f49;
}

.matrimony-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.matrimony-card {
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.matrimony-card__top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.matrimony-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #051f49, #0f766e);
  color: #fff;
  font-weight: 800;
}

.matrimony-card h3 {
  color: #051f49;
  font-size: 1.06rem;
  font-weight: 800;
}

.matrimony-card__id {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.matrimony-card__details {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.matrimony-card__details span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
}

.matrimony-card__details b {
  color: #0f172a;
}

.matrimony-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}

.matrimony-mini-tags span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.matrimony-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.matrimony-process-card {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.matrimony-process-card strong {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #051f49;
  color: #f5c75c;
  font-size: 0.82rem;
}

.matrimony-process-card h3 {
  margin-top: 15px;
  color: #051f49;
  font-size: 1rem;
  font-weight: 800;
}

.matrimony-process-card p {
  margin-top: 9px;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.65;
}

.matrimony-live-card {
  border: 1px solid rgba(5, 31, 73, 0.12);
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 20px;
}

.matrimony-preview {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(217, 151, 20, 0.25);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(5, 31, 73, 0.08);
}

.matrimony-preview h3 {
  color: #051f49;
  font-size: 1.5rem;
}

.matrimony-preview__card {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.matrimony-preview__line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 0;
  color: #475569;
  font-size: 0.88rem;
}

.matrimony-preview__line b {
  color: #0f172a;
}

.matrimony-message-preview {
  margin-top: 16px;
  max-height: 210px;
  overflow: auto;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.matrimony-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(217, 151, 20, 0.25);
  border-radius: 8px;
  background: #fffbeb;
  padding: 14px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
}

.matrimony-consent input {
  margin-top: 4px;
}

.matrimony-status {
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.matrimony-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.matrimony-status.is-success {
  background: #ecfdf3;
  color: #15803d;
}

.matrimony-empty {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.matrimony-faq {
  display: grid;
  gap: 12px;
}

.matrimony-faq details {
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 18px;
}

.matrimony-faq summary {
  cursor: pointer;
  color: #051f49;
  font-weight: 800;
}

.matrimony-faq p {
  margin-top: 12px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .matrimony-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    align-items: center;
  }

  .matrimony-two-col {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
    align-items: start;
  }

  .matrimony-section__head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

@media (max-width: 1100px) {
  .matrimony-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matrimony-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .matrimony-hero {
    padding: 48px 0 30px;
  }

  .matrimony-hero h1 {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .matrimony-trust-row,
  .matrimony-stats,
  .matrimony-search__grid,
  .matrimony-form-grid,
  .matrimony-results-grid,
  .matrimony-process-grid {
    grid-template-columns: 1fr;
  }

  .matrimony-section {
    padding: 42px 0;
  }

  .matrimony-section h2 {
    font-size: 1.65rem;
  }

  .matrimony-preview {
    position: static;
  }
}

/* Matrimonial story theme inspired by the supplied reference page. */
.matrimony-real-time-main {
  background: #fff8f5;
  color: #1e1b18;
}

.matrimony-page {
  padding-bottom: 0;
}

.matrimony-hero {
  background:
    linear-gradient(90deg, rgba(87, 0, 19, 0.94), rgba(87, 0, 19, 0.62) 48%, rgba(87, 0, 19, 0.12)),
    url("../images/matrimony/matrimony-hero-ai.jpg") center/cover;
  padding: 82px 0 46px;
}

.matrimony-kicker {
  color: #d4af37;
}

.matrimony-hero h1 {
  max-width: 700px;
}

.matrimony-panel,
.matrimony-card,
.matrimony-search,
.matrimony-preview,
.matrimony-process-card,
.matrimony-faq details,
.matrimony-empty {
  background: #fffdfb;
}

.matrimony-section--white {
  background: #fffdfb;
}

.matrimony-section h2,
.matrimony-stat strong,
.matrimony-field,
.matrimony-results-bar strong,
.matrimony-card h3,
.matrimony-process-card h3,
.matrimony-preview h3,
.matrimony-faq summary {
  color: #570013;
}

.matrimony-stat {
  border-color: rgba(212, 175, 55, 0.26);
  background: #fffdfb;
}

.matrimony-search,
.matrimony-preview {
  box-shadow: 0 18px 50px rgba(87, 0, 19, 0.08);
}

.matrimony-field input:focus,
.matrimony-field select:focus,
.matrimony-field textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.matrimony-button--primary {
  background: #d4af37;
  color: #40000b;
}

.matrimony-button--dark,
.matrimony-process-card strong {
  background: #570013;
}

.matrimony-button--light {
  border-color: rgba(87, 0, 19, 0.18);
  background: #fffdfb;
  color: #570013;
}

.matrimony-badge {
  background: #fff4d7;
  color: #570013;
}

.matrimony-avatar {
  background: linear-gradient(135deg, #570013, #d4af37);
}

.matrimony-preview__card {
  background: #fff8f5;
}

.matrimony-message-preview {
  background: #2d0711;
}

.matrimony-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.matrimony-story-card {
  overflow: hidden;
  border: 1px solid rgba(87, 0, 19, 0.13);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: 0 18px 44px rgba(87, 0, 19, 0.08);
}

.matrimony-story-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5ece7;
}

.matrimony-story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.matrimony-story-card:hover .matrimony-story-card__image img {
  transform: scale(1.03);
}

.matrimony-story-date {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.92);
  color: #570013;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(87, 0, 19, 0.12);
}

.matrimony-story-card__body {
  position: relative;
  padding: 26px 18px 20px;
}

.matrimony-heart-mark {
  position: absolute;
  top: -22px;
  left: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  background: #fff8f5;
  color: #d4af37;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(87, 0, 19, 0.1);
}

.matrimony-story-card h3 {
  color: #570013;
  font-size: 1.18rem;
  font-weight: 800;
}

.matrimony-story-route {
  margin-top: 6px;
  color: #8c7071;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrimony-story-card blockquote {
  margin-top: 12px;
  color: #584141;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
}

.matrimony-otp-card {
  margin-top: 14px;
  border: 1px solid rgba(87, 0, 19, 0.12);
  border-radius: 8px;
  background: #fff8f5;
  padding: 16px;
}

.matrimony-otp-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.matrimony-otp-card h3 {
  color: #570013;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.matrimony-otp-status {
  flex: 0 0 auto;
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 999px;
  background: #fff1f2;
  color: #9f1239;
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.matrimony-otp-status.is-verified {
  border-color: rgba(21, 128, 61, 0.18);
  background: #ecfdf3;
  color: #166534;
}

.matrimony-otp-actions {
  display: grid;
  grid-template-columns: max-content max-content minmax(160px, 1fr) max-content;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.matrimony-otp-code {
  margin: 0;
}

.matrimony-otp-message {
  margin-top: 10px;
  color: #725759;
  font-size: 0.84rem;
  line-height: 1.55;
}

.matrimony-otp-message.is-success {
  color: #166534;
}

.matrimony-otp-message.is-error {
  color: #b91c1c;
}

.matrimony-otp-captcha {
  min-height: 0;
}

.matrimony-app-dock {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid rgba(87, 0, 19, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.96);
  padding: 8px;
  box-shadow: 0 -12px 40px rgba(87, 0, 19, 0.12);
  backdrop-filter: blur(12px);
}

.matrimony-app-dock a {
  display: grid;
  gap: 3px;
  place-items: center;
  border-radius: 8px;
  color: #584141;
  padding: 8px 4px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
}

.matrimony-app-dock a:first-child {
  background: #fff4d7;
  color: #570013;
}

.matrimony-app-dock b {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 1100px) {
  .matrimony-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .matrimony-hero {
    padding: 48px 0 34px;
  }

  .matrimony-hero h1 {
    font-size: 1.92rem;
    line-height: 1.08;
  }

  .matrimony-stories {
    grid-template-columns: 1fr;
  }

  .matrimony-otp-card__top {
    display: grid;
  }

  .matrimony-otp-actions {
    grid-template-columns: 1fr;
  }

  .matrimony-otp-actions .matrimony-button,
  .matrimony-otp-actions .matrimony-field {
    width: 100%;
  }

  .matrimony-app-dock {
    display: grid;
  }

  .matrimony-page {
    padding-bottom: 82px;
  }
}

/* Final dock behavior: app-like, but not covering the hero or story content. */
.matrimony-app-dock {
  position: sticky;
  right: auto;
  bottom: 12px;
  left: auto;
  margin: 24px 16px 0;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.matrimony-app-dock.is-visible {
  transform: none;
}
