/*
 * Public site - Brulloft-style layout (light, airy sections, square shapes, framed buttons,
 * navy headings) with the Kodi palette (teal brand, pink accent) and the admin panel's Outfit font.
 * "gold" names are kept for existing classes; they map to the pink accent.
 */
:root {
    --brand: #007a8a;
    --brand-dark: #005e68;
    --brand-deep: #004b53;
    --brand-soft: #ecfdff;
    --gold: #ff007f;
    --gold-text: #d6006b; /* darker pink for small text on light backgrounds */
    --gold-soft: #ffe3f1;
    --navy: #051145;      /* headings */
    --ink: #051145;
    --body: #54595f;      /* paragraph text */
    --muted: #6b7180;
    --line: #e6e9f2;
    --bg-soft: #f6f8ff;   /* hero / banners */
    --bg-alt: #fafbff;    /* alternating sections */
    --bg-band: #f9f9f9;   /* call-to-action band */
    --cream: #ffffff;
    --radius: 0px;
    --shadow: 0 10px 15px rgba(0, 29, 8, .08);
    --shadow-lg: 0 20px 40px rgba(5, 17, 69, .1);
    --font: 'Outfit', 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font);
    color: var(--body);
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font);
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}
p { color: var(--body); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold-text) !important; }
.bg-cream { background: var(--bg-alt); }
.min-w-0 { min-width: 0; } /* not in Bootstrap 5.3 - lets flex children shrink so text-truncate works */

/* ------------------------------------------------------------------ Buttons
 * Square buttons; primary ones carry an offset outline frame that slides in on hover. */
.btn { border-radius: 0; font-weight: 600; padding: .7rem 1.5rem; letter-spacing: .01em; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-brand, .btn-gold { position: relative; z-index: 0; color: #fff; border-width: 0; }
.btn-brand { background: var(--brand); }
.btn-gold { background: var(--gold); }
.btn-brand:not(.btn-sm)::after, .btn-gold:not(.btn-sm)::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border: 1px solid currentColor; transform: translate(6px, 6px); transition: transform .25s ease;
}
.btn-brand:not(.btn-sm)::after { border-color: var(--brand); }
.btn-gold:not(.btn-sm)::after { border-color: var(--gold); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-gold:hover, .btn-gold:focus { background: #d6006b; color: #fff; }
.btn-brand:hover::after, .btn-gold:hover::after { transform: translate(0, 0); }
.btn-outline-brand { border: 1px solid var(--brand); color: var(--brand); background: #fff; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-light { border-radius: 0; background: #fff; border: 1px solid var(--line); color: var(--navy); }

/* -------------------------------------------------------------------- Forms */
.form-control, .form-select { border-radius: 0; border-color: var(--line); padding: .7rem 1rem; color: var(--navy); background-color: #fff; }
.form-select { padding-right: 2.5rem; } /* keep room for the dropdown arrow */
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(0, 122, 138, .12); }
.form-control::placeholder { color: #a3a8b4; }
.form-label { font-weight: 500; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.required::after { content: " *"; color: #d6006b; }

/* ------------------------------------------------------------------- Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 20px rgba(5, 17, 69, .06); }
.site-header .navbar { padding: 1rem 0; }
.brand-mark { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); }
.brand-mark img { width: 42px; height: 42px; }
.brand-mark span { font-size: 1.45rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.site-header .nav-link { position: relative; color: var(--navy); font-weight: 500; padding: .5rem 1rem !important; }
.site-header .nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand); }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.header-link { color: var(--navy); font-weight: 500; }
.header-link:hover { color: var(--brand); }
.header-link.btn { text-decoration: none; border: 0; font-size: inherit; }
.header-link.dropdown-toggle::after { vertical-align: .15em; }
.navbar-toggler { color: var(--navy); }
.site-header .nav-link, .site-header .btn, .site-header .header-link, .brand-mark span { white-space: nowrap; }
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { padding-top: .8rem; }
    .site-header .nav-link::after { left: 0; right: auto; width: 40px; }
}

/* --------------------------------------------------------------------- Hero
 * Split layout: text on the left, a framed picture on the right, on a pale background
 * with a striped corner. Used by the home banners and by the fallback hero. */
.hero, .banner-slider { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero::before, .banner-slider::before {
    content: ""; position: absolute; top: 0; right: 0; width: 240px; height: 240px; pointer-events: none;
    background: repeating-linear-gradient(-45deg, rgba(5, 17, 69, .06) 0 2px, transparent 2px 14px);
}
.hero { padding: 90px 0 140px; }
.hero-eyebrow, .section-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--brand); font-size: 1rem; font-weight: 500; letter-spacing: .02em; font-style: italic;
}
.hero-eyebrow::before, .section-eyebrow::before { content: "\2766"; color: var(--gold); font-style: normal; font-size: 1.1em; line-height: 1; }
.hero h1, .banner-text h1, .banner-text .h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.12; color: var(--navy); margin-bottom: 1.25rem; }
.hero .lead, .banner-text .lead { color: var(--body); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2rem; font-size: .95rem; color: var(--navy); }
.hero-points i { color: var(--brand); margin-right: .35rem; }
.hero-badge { display: inline-flex; gap: .4rem; align-items: center; background: #fff; box-shadow: var(--shadow); padding: .4rem .9rem; font-size: .85rem; color: var(--navy); }

/* Framed picture: a white mat with an offset outline, like a photo frame */
.hero-frame { position: relative; margin: 0 1.5rem 1.5rem 0; }
.hero-frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--brand); z-index: 0; }
.hero-frame > * { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; background: #fff; box-shadow: var(--shadow-lg); }
.hero-frame picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-frame .hero-art { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #fff, var(--brand-soft)); }
.hero-frame .hero-art img { width: 46%; height: auto; aspect-ratio: auto; box-shadow: none; background: none; }
.hero-frame .hero-tag {
    position: absolute; left: -24px; bottom: 32px; z-index: 2; aspect-ratio: auto; width: auto;
    background: #fff; box-shadow: var(--shadow-lg); padding: .9rem 1.2rem; display: flex; gap: .8rem; align-items: center;
}
.hero-frame .hero-tag .num { font-size: 1.6rem; font-weight: 700; color: var(--brand); line-height: 1; }
.hero-frame .hero-tag small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }

/* Home banners (Admin > Home Banners) in the same split layout */
.banner-slider { padding: 80px 0 130px; }
.banner-slider .carousel-item { transition-duration: .7s; }
.banner-slider .banner-frame > picture { aspect-ratio: 4 / 4.2; }
.banner-slider .banner-frame.wide > picture { aspect-ratio: 1920 / 700; } /* image-only banner */
.banner-slider .carousel-indicators { position: static; justify-content: flex-start; margin: 2rem 0 0; gap: .4rem; }
.banner-slider .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border: 0; margin: 0; background: var(--navy); opacity: .2; }
.banner-slider .carousel-indicators .active { opacity: 1; background: var(--brand); }
.banner-slider .banner-nav { display: flex; gap: .5rem; margin-top: 1.5rem; }
.banner-slider .banner-nav button { width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.banner-slider .banner-nav button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Search box under the hero */
.search-card { background: #fff; box-shadow: var(--shadow-lg); padding: 1.75rem; color: var(--navy); position: relative; z-index: 2; border-top: 3px solid var(--brand); }
.search-overlap { margin-top: -86px; position: relative; z-index: 3; }

/* ------------------------------------------------------------- Section heads */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head p { margin: .75rem 0 0; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; color: var(--navy); margin: .5rem 0 0; }
.divider-ornament { display: none; }

/* --------------------------------------------------------------- Stat strip */
.stat-tile { background: #fff; box-shadow: var(--shadow); padding: 1.75rem 1.25rem; text-align: center; height: 100%; border-bottom: 3px solid transparent; transition: border-color .2s, transform .2s; }
.stat-tile:hover { border-color: var(--brand); transform: translateY(-4px); }
.stat-tile .num { font-size: 2.4rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.stat-tile .lbl { color: var(--muted); font-size: .9rem; margin-top: .25rem; }

/* -------------------------------------------------------------- Broker card */
.broker-card { background: #fff; box-shadow: var(--shadow); padding: 1.6rem; height: 100%; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.broker-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); transition: width .3s; }
.broker-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.broker-card:hover::after { width: 100%; }
.broker-card .avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft); background: var(--brand-soft); }
.broker-card h3 { font-size: 1.15rem; margin: 0; }
.broker-card .meta { color: var(--muted); font-size: .88rem; }
.broker-card .chips span { background: var(--gold-soft); color: #c2006a; padding: .2rem .65rem; font-size: .75rem; font-weight: 500; }
.badge-featured { background: var(--gold); color: #fff; font-weight: 600; font-size: .7rem; padding: .25rem .6rem; }
.badge-verified { color: #1f8a5b; font-size: .82rem; font-weight: 600; }

/* ------------------------------------------------------------- Profile card */
.profile-card { background: #fff; box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.profile-card .photo { aspect-ratio: 4 / 4.2; background: var(--brand-soft); position: relative; overflow: hidden; }
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.profile-card:hover .photo img { transform: scale(1.05); }
.profile-card .code { position: absolute; left: 0; top: 14px; background: var(--brand); color: #fff; font-size: .72rem; padding: .25rem .65rem; letter-spacing: .04em; }
.profile-card .select-box { position: absolute; right: 10px; top: 10px; background: #fff; padding: .3rem .45rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.profile-card .select-box input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--brand); }
.profile-card .body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }
.profile-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }
.profile-card .facts { list-style: none; padding: 0; margin: .6rem 0 1rem; font-size: .86rem; color: var(--muted); }
.profile-card .facts li { display: flex; gap: .45rem; padding: .15rem 0; }
.profile-card .facts i { color: var(--brand); }
.profile-card.selected { outline: 2px solid var(--brand); }

/* ----------------------------------------------------------- Filter sidebar */
.filter-panel { background: #fff; box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 100px; border-top: 3px solid var(--brand); }
.filter-panel h5 { font-size: 1.05rem; font-weight: 600; }

/* ----------------------------------------------------- Broker profile header */
.broker-hero { position: relative; background: var(--bg-soft); padding: 60px 0 100px; overflow: hidden; }
.broker-hero::before { content: ""; position: absolute; top: 0; right: 0; width: 220px; height: 220px; background: repeating-linear-gradient(-45deg, rgba(5, 17, 69, .06) 0 2px, transparent 2px 14px); pointer-events: none; }
.broker-hero .avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow-lg); background: #fff; }
.broker-hero .tag { display: inline-flex; align-items: center; gap: .3rem; background: #fff; box-shadow: var(--shadow); padding: .25rem .7rem; font-size: .8rem; font-weight: 500; color: var(--navy); }
.broker-hero .stat .fs-3 { color: var(--brand); }
.contact-card { background: #fff; box-shadow: var(--shadow); padding: 1.6rem; border-top: 3px solid var(--brand); }
.contact-card .row-item { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.contact-card .row-item:last-child { border-bottom: 0; }
.contact-card .row-item i { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card small { color: var(--muted); display: block; font-size: .78rem; }
.overlap-up { margin-top: -60px; }

/* ---------------------------------------------------- Bulk download bar */
.selection-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%); background: var(--navy); color: #fff; padding: .7rem .8rem .7rem 1.2rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .2s; z-index: 1040; max-width: calc(100% - 32px); }
.selection-bar.show { transform: translateX(-50%) translateY(0); }
.selection-bar .btn { border-radius: 0 !important; }

/* ------------------------------------------------------------ Profile detail */
.detail-card { background: #fff; box-shadow: var(--shadow); padding: 1.6rem; margin-bottom: 1.5rem; }
.detail-card h5 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.detail-card h5 i { color: var(--brand); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem 1.5rem; }
.kv div { padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; display: flex; justify-content: space-between; gap: 1rem; }
.kv dt { color: var(--muted); font-weight: 400; }
.kv dd { margin: 0; font-weight: 500; text-align: right; color: var(--navy); }
.profile-photo-main { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; background: var(--brand-soft); }
.gallery-thumb { width: 70px; height: 70px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb:hover { border-color: var(--brand); }

/* ------------------------------------------------- "How it works" service cards */
.step { background: #fff; box-shadow: var(--shadow); padding: 2.4rem 2rem; height: 100%; position: relative; text-align: center; transition: transform .25s, box-shadow .25s; }
.step::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--brand); transform: translateX(-50%); transition: width .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step:hover::after { width: 100%; }
.step .n { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1.4rem; }
.step .n::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--brand); opacity: .5; }
.step .step-no { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.6rem; font-weight: 700; color: var(--bg-soft); line-height: 1; -webkit-text-stroke: 1px var(--line); }
.step h5 { font-size: 1.2rem; margin-bottom: .6rem; }

/* ---------------------------------------------------------- Call-to-action band */
.cta-band { background: var(--bg-band); padding: 70px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; bottom: 0; width: 200px; height: 200px; background: repeating-linear-gradient(-45deg, rgba(5, 17, 69, .05) 0 2px, transparent 2px 14px); }
.cta-band .section-title { margin-top: .25rem; }

/* --------------------------------------------------------------- Auth pages */
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; padding: 60px 0; background: var(--bg-soft); }
.auth-card { background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-aside { position: relative; background: var(--brand-deep); color: #fff; padding: 2.75rem; height: 100%; }
.auth-aside::after { content: ""; position: absolute; right: 0; bottom: 0; width: 160px; height: 160px; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 14px); }
.auth-aside h1, .auth-aside h2, .auth-aside h3, .auth-aside p { color: #fff; }
.auth-aside li { margin-bottom: .7rem; }
.auth-aside .bi { color: #ff7ab8; }
.form-section-title { font-size: .85rem; letter-spacing: .02em; color: var(--brand); font-weight: 600; margin: 1.6rem 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }

/* -------------------------------------------------------- Inner page banner */
.page-banner { position: relative; background: var(--bg-soft); padding: 70px 0; text-align: center; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; top: 0; right: 0; width: 220px; height: 220px; background: repeating-linear-gradient(-45deg, rgba(5, 17, 69, .06) 0 2px, transparent 2px 14px); pointer-events: none; }
.page-banner::after { content: ""; position: absolute; left: 0; bottom: 0; width: 140px; height: 140px; background: repeating-linear-gradient(-45deg, rgba(255, 0, 127, .07) 0 2px, transparent 2px 14px); pointer-events: none; }
.page-banner h1, .page-banner .h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.page-banner p { color: var(--body); max-width: 640px; margin-left: auto; margin-right: auto; }
.page-banner .opacity-75 { opacity: 1 !important; }
.page-banner .breadcrumb { justify-content: center; }
.page-banner .breadcrumb a { color: var(--brand); }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.cms-content { background: #fff; box-shadow: var(--shadow); padding: 2.5rem; line-height: 1.85; }
.cms-content h2, .cms-content h3, .cms-content h4, .cms-content h5 { margin-top: 1.2rem; }

/* ------------------------------------------------------------------- Footer */
.site-footer { position: relative; background: var(--bg-alt); color: var(--body); padding: 90px 0 0; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer h6 { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.4rem; position: relative; padding-bottom: .7rem; }
.site-footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--brand); }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand-mark span { color: var(--navy) !important; }
.site-footer .social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1rem; }
.site-footer .social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.site-footer .text-gold { color: var(--brand) !important; }
.site-footer .bottom { border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 1.4rem 0; font-size: .86rem; }

.empty-state { background: #fff; box-shadow: var(--shadow); padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--brand); }

.pagination { gap: .35rem; }
.pagination .page-link { color: var(--navy); border-color: var(--line); border-radius: 0 !important; min-width: 42px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

.modal-content { border-radius: 0; border: 0; box-shadow: var(--shadow-lg); }
.alert { border-radius: 0; }
.badge { border-radius: 0; }
.dropdown-menu { border-radius: 0; }

@media (max-width: 991.98px) {
    .filter-panel { position: static; }
    .hero, .banner-slider { padding: 56px 0 120px; }
    .hero-frame { margin: 2.5rem 1.5rem 0 0; }
    .section { padding: 80px 0; }
    .site-header .navbar-collapse { padding-top: .8rem; }
}
@media (max-width: 575.98px) {
    .hero::before, .banner-slider::before, .page-banner::before, .broker-hero::before { width: 110px; height: 110px; }
    .hero-frame .hero-tag { left: 0; }
    .section { padding: 64px 0; }
    .page-banner { padding: 50px 0; }
}

/* ---------------------------------------- Language switch (English / தமிழ்) */
.lang-switch { display: inline-flex; border: 1px solid var(--line); padding: 2px; background: #fff; }
.lang-switch a { padding: .3rem .7rem; font-size: .82rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.active { background: var(--brand); color: #fff; }

/* Tamil: Tamil script needs more line height, and Latin-style letter spacing does not apply */
:lang(ta) body { line-height: 1.75; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(ta) .font-display { letter-spacing: 0; line-height: 1.4; }
:lang(ta) .section-eyebrow, :lang(ta) .hero-eyebrow, :lang(ta) .form-section-title { letter-spacing: 0; font-style: normal; }
:lang(ta) .hero h1, :lang(ta) .banner-text h1, :lang(ta) .banner-text .h1 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
:lang(ta) .section-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
:lang(ta) .site-header .nav-link { padding: .5rem .7rem !important; font-size: .92rem; }
:lang(ta) .site-header .nav-link::after { left: .7rem; right: .7rem; }
:lang(ta) .site-header .nav-link, :lang(ta) .site-header .btn, :lang(ta) .brand-mark span { white-space: nowrap; }
@media (max-width: 1399.98px) {
    :lang(ta) .site-header .navbar-collapse { padding-top: .8rem; }
}

/* ------------------------------------------------------- Broker sign-up steps */
.signup-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.signup-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; position: relative; font-size: .8rem; color: var(--muted); text-align: center; }
.signup-steps li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.signup-steps li:first-child::before { display: none; }
.signup-steps .num { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); font-weight: 600; color: var(--muted); }
.signup-steps li.done .num { background: var(--brand); border-color: var(--brand); color: #fff; }
.signup-steps li.done::before, .signup-steps li.current::before { background: var(--brand); }
.signup-steps li.current .num { border-color: var(--brand); color: var(--brand); }
.signup-steps li.current { color: var(--navy); font-weight: 600; }
@media (max-width: 575.98px) { .signup-steps .txt { display: none; } .signup-steps li.current .txt { display: block; } }
.otp-box { border: 1px solid var(--line); padding: 1rem; height: 100%; background: #fff; }
.otp-input { font-size: 1.4rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

/* Radio "cards" (broker organisation details) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.choice-card { position: relative; display: block; cursor: pointer; margin: 0; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: flex; align-items: center; gap: .55rem; height: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); font-weight: 500; color: var(--navy); background: #fff; transition: border-color .15s, background .15s; }
.choice-card span i { color: var(--muted); font-size: 1.15rem; }
.choice-card:hover span { border-color: #6cb3ba; }
.choice-card input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.choice-card input:checked + span i { color: inherit; }
.choice-card input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice-sm span { padding: .5rem 1.4rem; }
.ts-wrapper .ts-control { border-radius: 0 !important; }

/* Checkbox "pills" (organiser questions) and answer chips on the organiser page */
.check-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.check-pill { position: relative; margin: 0; cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 500; transition: border-color .15s, background .15s; }
.check-pill span::before { content: ""; width: 1rem; height: 1rem; border: 1.5px solid #b8bfd0; flex: none; background: #fff center / .75rem no-repeat; }
.check-pill:hover span { border-color: #6cb3ba; }
.check-pill input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.check-pill input:checked + span::before { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath fill=%27none%27 stroke=%27%23fff%27 stroke-width=%272.4%27 d=%27M3 8.5l3 3 7-7%27/%3E%3C/svg%3E"); }
.check-pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.answer-list { display: grid; gap: 1rem; }
.answer-list dt { color: var(--navy); font-weight: 600; margin-bottom: .35rem; }
.answer-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.answer-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; background: var(--brand-soft); color: var(--brand-deep); font-size: .875rem; font-weight: 500; }
.answer-chip i { color: var(--brand); }
.filter-group-title { font-size: .8rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
:lang(ta) .filter-group-title { text-transform: none; letter-spacing: 0; }

/* "Create an account" chooser: member vs marriage organiser */
.account-choice { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); padding: 2rem; border-top: 3px solid var(--brand); }
.account-choice .icon { width: 56px; height: 56px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.6rem; margin-bottom: 1rem; }
.account-choice h2 { color: var(--navy); }

/* Camera capture dialog (assets/js/app.js, [data-camera-for]) */
.camera-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.camera-box { background: var(--bs-body-bg, #fff); border-radius: 16px; padding: 16px; width: 100%; max-width: 440px; text-align: center; }
.camera-box video, .camera-box canvas { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #000; }
.camera-box video { transform: scaleX(-1); }
