/* =================================================================
   श्री दिगंबर जैन परवार सभा (D.J.P.S) — Matrimonial theme
   1.  Design tokens
   2.  Base / typography
   3.  Buttons
   4.  Navbar
   5.  Hero banner
   6.  Section heads
   7.  Member cards + sliders
   8.  How it works
   9.  Forms / inner pages
   10. Footer + back-to-top
   11. Animations
   12. Responsive
   ================================================================= */

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
    --brand:          #ff2f6d;
    --brand-dark:     #e01e58;
    --secondary:      #c0392b;
    --secondary-dark: #a5301f;
    --text-dark:      #1f2937;
    --text-muted:     #6b7280;
    --light-gray:     #f8f9fa;
    --border:         #e9ecef;

    --card-radius:    10px;
    --shadow-sm:      0 2px 10px rgba(31, 41, 55, .06);
    --shadow-md:      0 10px 30px rgba(31, 41, 55, .12);
    --shadow-lg:      0 18px 40px rgba(255, 47, 109, .18);

    --section-padding: 80px;
    --header-height:   96px;

    --font-body: 'Poppins', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------------------------------------------------------------
   2. Base / typography
   --------------------------------------------------------------- */
* { scroll-margin-top: calc(var(--header-height) + 16px); }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { text-decoration: none; }

:focus-visible {
    outline: 3px solid rgba(255, 47, 109, .45);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1080;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
}

.section {
    padding: var(--section-padding) 0;
}

.section--light {
    background: var(--light-gray);
}

/* ---------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------- */
.btn-brand,
.btn-registration {
    display: inline-block;
    font-weight: 600;
    letter-spacing: .3px;
    border: 0;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.btn-brand {
    background: var(--brand);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: .9rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 47, 109, .32);
}

.btn-registration {
    background: var(--secondary);
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1rem;
}

.btn-registration:hover,
.btn-registration:focus {
    background: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(192, 57, 43, .32);
}

/* ---------------------------------------------------------------
   4. Navbar
   --------------------------------------------------------------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 1030;
    transition: box-shadow .3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(31, 41, 55, .08);
}

.navbar-brand {
    padding: 13px 0;
}

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text__main {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-text__sub {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: .4px;
}

.navbar .nav-link {
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .6px;
    color: var(--brand);
    padding: 10px 14px;
    position: relative;
    transition: color .25s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-dark);
}

.navbar-toggler {
    border-color: rgba(255, 47, 109, .35);
    padding: .35rem .6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255, 47, 109, .2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff2f6d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------------------------------------------------------------
   5. Hero banner
   --------------------------------------------------------------- */
.hero {
    width: 100%;
    line-height: 0;
    background: #3b051f;   /* matches the banner edge while an image loads */
}

/*
 | Both banners are text-heavy posters, so nothing may be cropped —
 | they scale to the full width and keep their own aspect ratio.
 */
.hero__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Auto-rotating hero — one banner visible at a time. */
.hero-swiper,
.hero-swiper .swiper-slide {
    width: 100%;
    line-height: 0;
}

.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .55;
    transition: opacity .25s ease, width .25s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--brand);
    opacity: 1;
    width: 26px;
    border-radius: 6px;
}

.hero-swiper__dots {
    bottom: 16px !important;
}

/* ---------------------------------------------------------------
   6. Section heads
   --------------------------------------------------------------- */
.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -.5px;
}

.section-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   7. Member cards + sliders
   --------------------------------------------------------------- */
.member-swiper {
    padding: 6px 4px 58px;
}

.member-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Grid layout for शिरोमणि संरक्षक — every card the same height. */
.member-grid .member-card {
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
}

.member-grid .member-card__body {
    flex: 1;
}

.member-card {
    width: 100%;
    max-width: 250px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.member-card__media {
    height: 285px;
    overflow: hidden;
    background: var(--light-gray);
}

.member-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}

.member-card:hover .member-card__media img {
    transform: scale(1.06);
}

.member-card__body {
    padding: 18px 14px 20px;
    text-align: center;
    background: #fff;
}

.member-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
    word-break: break-word;
}

.member-card__qualification {
    font-size: .8rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 2px;
}

.member-card__position {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Swiper dots */
.member-swiper .swiper-pagination {
    bottom: 12px;
}

.member-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d5d8dd;
    opacity: 1;
    margin: 0 5px !important;
    transition: background-color .25s ease, width .25s ease;
}

.member-swiper .swiper-pagination-bullet-active {
    background: var(--brand);
    width: 24px;
    border-radius: 6px;
}

.gallery-empty {
    text-align: center;
    color: var(--text-muted);
    background: #fff;
    border: 1px dashed #d6dae0;
    border-radius: var(--card-radius);
    padding: 44px 24px;
    margin: 0;
}

.gallery-empty i {
    display: block;
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 10px;
}

.gallery-empty span {
    display: block;
    font-size: .875rem;
    margin-top: 6px;
}

.gallery-empty code {
    color: var(--secondary);
    background: #fdf1ef;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------
   8. How it works
   --------------------------------------------------------------- */
.step-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 47, 109, .35);
    box-shadow: var(--shadow-md);
}

.step-card__number {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    margin-bottom: 14px;
}

.step-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.step-card__text {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    max-width: 220px;
}

.step-card__icon {
    font-size: 3.2rem;
    color: var(--brand);
    line-height: 1;
    flex-shrink: 0;
    transition: transform .35s ease;
}

.step-card:hover .step-card__icon {
    transform: scale(1.1) rotate(-4deg);
}

/* ---------------------------------------------------------------
   8b. आवश्यक जानकारी / निर्देश
   --------------------------------------------------------------- */
.notice-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    padding: 40px 44px;
    max-width: 1000px;
    margin: 0 auto;
}

.notice-list {
    counter-reset: notice;
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-list li {
    counter-increment: notice;
    position: relative;
    padding: 0 0 20px 52px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #e6e9ed;
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: 1rem;
    line-height: 1.85;
    color: #374151;
}

.notice-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.notice-list li::before {
    content: counter(notice);
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 47, 109, .1);
    color: var(--brand);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    transition: background-color .3s ease, color .3s ease;
}

.notice-list li:hover::before {
    background: var(--brand);
    color: #fff;
}

.notice-list strong {
    color: var(--text-dark);
    font-weight: 600;
}

.notice-list a {
    color: var(--brand);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 47, 109, .35);
}

.notice-list a:hover {
    color: var(--brand-dark);
}

/* ---------------------------------------------------------------
   8c. Trusted by Millions
   --------------------------------------------------------------- */
.trusted {
    position: relative;
    padding: 90px 0;
    background-image:
        linear-gradient(rgba(20, 12, 8, .68), rgba(20, 12, 8, .68)),
        url('../assets/banner/trusted.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}

.trusted__title {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -.3px;
}

.trusted__text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .95);
}

.trusted__row {
    margin-top: 54px;
}

.trusted__box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 118px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.12rem;
    font-weight: 500;
    transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.trusted__box i {
    font-size: 1.45rem;
    line-height: 1;
}

.trusted__box:hover {
    background: rgba(255, 47, 109, .22);
    border-color: var(--brand);
    transform: translateY(-4px);
}

/* ---------------------------------------------------------------
   8d. Reviews of Members
   --------------------------------------------------------------- */
.reviews {
    position: relative;
    padding: 34px 0 46px;
    background-image:
        linear-gradient(100deg, rgba(240, 45, 110, .90) 0%, rgba(250, 92, 62, .90) 100%),
        url('../assets/banner/reviews.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

.reviews__title {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.review {
    text-align: center;
    margin: 0;
    padding: 0 60px;
}

.review__avatar {
    width: 178px;
    height: 178px;
    margin: 0 auto 34px;
    border: 4px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.review__avatar i {
    font-size: 8.5rem;
    line-height: 1;
    color: #4b4b4b;
    margin-top: 26px;
}

.review__text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.62;
    color: #fff;
}

.review__quote {
    display: block;
    margin-top: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: .6;
    color: rgba(0, 0, 0, .22);
}

/* Slider arrows */
.reviews__nav {
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .9);
    font-size: 2.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: color .25s ease, transform .25s ease;
}

.reviews__nav--prev { left: 4px; }
.reviews__nav--next { right: 4px; }

.reviews__nav:hover {
    color: #fff;
}

.reviews__nav--prev:hover { transform: translateY(-50%) translateX(-4px); }
.reviews__nav--next:hover { transform: translateY(-50%) translateX(4px); }

.reviews__nav.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

/* ---------------------------------------------------------------
   8e. संपर्क सूत्र + credit banner
   --------------------------------------------------------------- */
.contact-strip {
    padding: 64px 0 48px;
    background: var(--light-gray);
}

.contact-strip__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 34px;
}

.contact-strip__logo {
    height: 76px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-strip__title {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: clamp(1.5rem, 2.8vw, 2.05rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-strip__subtitle {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.contact-person:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 47, 109, .4);
    box-shadow: var(--shadow-md);
}

.contact-person__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 47, 109, .1);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    transition: background-color .3s ease, color .3s ease;
}

.contact-person:hover .contact-person__icon {
    background: var(--brand);
    color: #fff;
}

.contact-person__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-person__name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.contact-person__number {
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: .3px;
}

/* Lead contact — same card, given weight so it reads first. */
.contact-person--lead {
    border-color: rgba(255, 47, 109, .45);
    border-width: 2px;
    box-shadow: var(--shadow-md);
    padding: 20px 24px;
    gap: 18px;
    justify-content: center;
}

.contact-person--lead .contact-person__body {
    text-align: center;
}

.contact-person--lead .contact-person__icon {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    background: var(--brand);
    color: #fff;
}

.contact-person__role {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: .85rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.35;
    margin-bottom: 2px;
}

.contact-person--lead .contact-person__name {
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-person--lead .contact-person__number {
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* Developer credit banner — shown as supplied, never cropped. */
.credit-banner {
    margin-top: 40px;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    line-height: 0;
}

.credit-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------------------
   8f. Gallery — coverflow carousel + full grid page
   --------------------------------------------------------------- */
.gallery-section {
    background: #fff;
    overflow: hidden;
}

.gallery-head {
    max-width: 640px;
    margin: 0 auto 40px;
}

.gallery-eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--brand);
    margin-bottom: 10px;
}

.gallery-title {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* The carousel itself */
.gallery-swiper {
    padding: 10px 0 20px;
    overflow: visible;
}

.gallery-swiper .swiper-slide {
    width: 300px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(31, 41, 55, .22);
    transition: opacity .4s ease;
    opacity: .45;
}

.gallery-swiper .swiper-slide-active {
    opacity: 1;
}

.gallery-swiper .swiper-slide-prev,
.gallery-swiper .swiper-slide-next {
    opacity: .75;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Round arrows below, as in the reference */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.gallery-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d7dbe0;
    background: #fff;
    color: var(--text-dark);
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.gallery-nav:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.gallery-nav.swiper-button-disabled {
    opacity: .4;
    pointer-events: none;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border: 1px solid #d7dbe0;
    border-radius: 30px;
    background: #fff;
    color: var(--text-dark);
    font-size: .92rem;
    font-weight: 600;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.btn-view-more:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

/* Full gallery page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-grid__item {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--light-gray);
    cursor: zoom-in;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.07);
}

.gallery-grid__zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(31, 41, 55, .45);
    color: #fff;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-grid__item:hover .gallery-grid__zoom,
.gallery-grid__item:focus-visible .gallery-grid__zoom {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    background: rgba(12, 16, 24, .93);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

.lightbox__figure img {
    max-width: min(1100px, 88vw);
    max-height: 82vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox__figure figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, .75);
    font-size: .88rem;
}

.lightbox__close,
.lightbox__nav {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background-color .25s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--brand);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ---------------------------------------------------------------
   9. Forms / inner pages
   --------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(120deg, #ff2f6d 0%, #c0392b 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.page-hero h1 {
    font-weight: 800;
    margin-bottom: 8px;
}

.page-hero p {
    margin-bottom: 0;
    opacity: .92;
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.form-card .form-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-card .form-control,
.form-card .form-select {
    border-radius: 6px;
    padding: .6rem .85rem;
    border-color: #dfe3e8;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(255, 47, 109, .15);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 38px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-card > form > .form-section-title:first-of-type {
    margin-top: 0;
}

.form-section-title span {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .88rem;
    display: grid;
    place-items: center;
}

.form-subsection-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand);
    margin: 22px 0 12px;
}

.req {
    color: var(--secondary);
}

.phone-group .input-group-text {
    background: var(--light-gray);
    border-color: #dfe3e8;
    border-radius: 6px 0 0 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.phone-group .form-control {
    border-radius: 0 6px 6px 0;
}

.form-required-note {
    margin: 0 0 4px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--light-gray);
    border: 1px solid var(--border);
    font-size: .88rem;
    color: #4b5563;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.toggle-field {
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    padding: 14px 16px;
    height: 100%;
    transition: border-color .25s ease, background-color .25s ease;
}

/* Highlight only when the answer is "Yes" (value="1"), not merely answered. */
.toggle-field:has(input[value="1"]:checked) {
    border-color: rgba(255, 47, 109, .45);
    background: rgba(255, 47, 109, .04);
}

/* "By post" is unavailable until the booklet is chosen. */
.toggle-field.is-disabled {
    opacity: .6;
}

.toggle-field .form-check {
    margin-bottom: 0;
    min-height: auto;
}

.toggle-field .form-check-input {
    cursor: pointer;
}

.toggle-field .form-check-input:disabled {
    cursor: not-allowed;
}

.toggle-field .form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(255, 47, 109, .15);
}

.toggle-field .form-check-label {
    padding-left: 8px;
    font-size: .93rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.toggle-field .form-check-input:disabled ~ .form-check-label {
    opacity: .55;
    cursor: not-allowed;
}

.toggle-field__hint {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    color: var(--text-muted);
}

.payment-lead {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 22px;
}

.payment-lead strong {
    color: var(--brand);
}

/* Conditional block for divorcee details */
.divorcee-details {
    border: 1px dashed rgba(255, 47, 109, .45);
    border-radius: 8px;
    background: rgba(255, 47, 109, .035);
    padding: 16px 18px;
}

.divorcee-details__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    color: #4b5563;
}

.divorcee-details__note i {
    color: var(--brand);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Fee breakdown shown above the QR code */
.fee-guide {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light-gray);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.fee-guide__intro {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: .92rem;
    color: #4b5563;
    margin-bottom: 14px;
}

.fee-guide__intro i {
    color: var(--brand);
    margin-top: 3px;
    flex-shrink: 0;
}

.fee-guide__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fee-guide__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.fee-guide__list li:last-child {
    margin-bottom: 0;
}

/* The row matching the current booklet choice */
.fee-guide__list li.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(255, 47, 109, .12);
}

.fee-guide__list li.is-active .fee-guide__amount {
    background: var(--brand);
    color: #fff;
}

.fee-guide__amount {
    flex-shrink: 0;
    min-width: 76px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgba(255, 47, 109, .1);
    color: var(--brand);
    font-weight: 700;
    font-size: 1rem;
    transition: background-color .25s ease, color .25s ease;
}

.fee-guide__text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.fee-guide__text small {
    color: var(--text-muted);
    font-size: .82rem;
}

.fee-guide__note {
    margin: 14px 0 0;
    font-size: .86rem;
    line-height: 1.7;
    color: var(--text-muted);
}

@media (max-width: 575.98px) {
    .fee-guide { padding: 14px; }
    .fee-guide__list li { flex-direction: column; gap: 8px; }
    .fee-guide__amount { min-width: 0; align-self: flex-start; }
}

.payment-qr {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.fee-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 47, 109, .3);
    border-radius: 8px;
    background: rgba(255, 47, 109, .06);
}

.fee-total__label {
    font-size: .93rem;
    font-weight: 600;
    color: var(--text-dark);
}

.fee-total__value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
}

.terms-check {
    padding-top: 8px;
}

.terms-check .form-check-input {
    margin-top: .3em;
}

.terms-check .form-check-label {
    font-size: .93rem;
    color: #4b5563;
    padding-left: 4px;
}

.terms-check a {
    color: var(--brand);
    font-weight: 600;
}

.terms-check a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.form-note {
    display: flex;
    gap: 10px;
    margin: 4px 0 0;
    padding: 14px 16px;
    border-radius: 6px;
    background: rgba(255, 47, 109, .07);
    border: 1px solid rgba(255, 47, 109, .2);
    font-size: .9rem;
    line-height: 1.65;
    color: #4b5563;
}

.form-note i {
    flex-shrink: 0;
    color: var(--brand);
    margin-top: 3px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 26px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--brand);
}

.info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 14px 0 6px;
}

.info-card p {
    color: var(--text-muted);
    font-size: .93rem;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   10. Footer + back-to-top
   --------------------------------------------------------------- */
.site-footer {
    background: var(--text-dark);
    color: #cbd5e1;
    padding: 48px 0 28px;
}

.site-footer .brand-text__sub { color: #e2e8f0; }
.site-footer .brand-text__main { color: #ff6b95; }

.footer-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.footer-nav a {
    color: #cbd5e1;
    font-size: .93rem;
    transition: color .25s ease;
}

.footer-nav a:hover {
    color: var(--brand);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .12);
    margin: 28px 0 20px;
    opacity: 1;
}

.footer-copy {
    font-size: .9rem;
    color: #9aa5b1;
}

.footer-legal {
    margin-top: 10px;
    font-size: .84rem;
}

.footer-legal li {
    color: #6b7686;
}

.footer-legal a {
    color: #9aa5b1;
    transition: color .25s ease;
}

.footer-legal a:hover {
    color: var(--brand);
}

/* Privacy / Terms page typography */
.legal-updated {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.legal-heading {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.notice-card > .legal-heading:first-child {
    margin-top: 0;
}

.legal-text {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: .97rem;
    line-height: 1.85;
    color: #374151;
}

.legal-list {
    font-family: 'Noto Sans Devanagari', var(--font-body);
    font-size: .97rem;
    line-height: 1.85;
    color: #374151;
    padding-left: 22px;
    margin-bottom: 0;
}

.legal-list li {
    margin-bottom: 8px;
}

.legal-list li::marker {
    color: var(--brand);
}

.legal-text a,
.legal-list a {
    color: var(--brand);
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.15rem;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    box-shadow: var(--shadow-lg);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-dark);
}

/* ---------------------------------------------------------------
   11. Animations
   --------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal,
    .member-card,
    .step-card,
    .member-card__media img,
    .step-card__icon {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ---------------------------------------------------------------
   12. Responsive
   --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px;
        --header-height: 92px;
    }

    .navbar-collapse {
        padding: 8px 0 18px;
    }

    .navbar .nav-link {
        padding: 10px 0;
    }

    .navbar .nav-link::after {
        left: 0;
        right: 0;
        bottom: 2px;
    }

    .btn-brand {
        display: inline-block;
    }

    .step-card__text {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 52px;
        --header-height: 84px;
    }

    .brand-logo { height: 56px; }
    .brand-text__main { font-size: 1.1rem; }
    .brand-text__sub { font-size: .7rem; }

    .section-head { margin-bottom: 34px; }

    .member-card { max-width: 300px; }
    .member-card__media { height: 240px; }
    .member-card__name { font-size: .92rem; }
    .member-card__position { font-size: .8rem; }

    .step-card { padding: 24px 22px; }
    .step-card__icon { font-size: 2.6rem; }

    .notice-card { padding: 26px 20px; }

    .notice-list li {
        padding-left: 42px;
        font-size: .95rem;
        line-height: 1.75;
    }

    .notice-list li::before {
        width: 28px;
        height: 28px;
        font-size: .8rem;
    }

    .trusted { padding: 60px 0; }
    .trusted__row { margin-top: 34px; }

    .trusted__box {
        min-height: 90px;
        font-size: 1rem;
        padding: 18px 16px;
    }

    .review { padding: 0 34px; }

    .review__avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .review__avatar i {
        font-size: 5.8rem;
        margin-top: 18px;
    }

    .review__text {
        font-size: .95rem;
        line-height: 1.65;
    }

    .review__quote { font-size: 4rem; }

    .gallery-swiper .swiper-slide {
        width: 230px;
        height: 310px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .lightbox { padding: 12px; gap: 4px; }
    .lightbox__close, .lightbox__nav { width: 38px; height: 38px; font-size: 1rem; }

    .contact-strip { padding: 48px 0 36px; }

    .contact-strip__head {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 26px;
    }

    .contact-strip__logo { height: 62px; }
    .credit-banner { margin-top: 28px; }

    .reviews__nav {
        font-size: 2rem;
        width: 32px;
    }

    .reviews__nav--prev { left: -8px; }
    .reviews__nav--next { right: -8px; }
}

@media (max-width: 575.98px) {
    .brand-text__main {
        font-size: .95rem;
        white-space: normal;
    }
    .brand-text__sub { font-size: .62rem; }
    .form-card { padding: 22px; }
}
