/* ==========================================================================
   Dr. Umesh Marathe – MMC Election 2026 Voter Portal (Sr. No. 29)
   Design language: editorial / clinical — deep navy + crimson + warm cream.
   Distinct from the Patil portal (which is modern blue + amber).
   ========================================================================== */

:root {
    --navy:        #0c2340;
    --navy-2:      #15315b;
    --navy-3:      #1c4079;
    --crimson:     #c8102e;
    --crimson-dk:  #9a0c24;
    --gold:        #c8a04a;
    --gold-dk:     #9c7a31;
    --cream:       #faf6ef;
    --cream-2:     #f3ecdf;
    --paper:       #ffffff;
    --ink:         #1a1f2c;
    --ink-2:       #4a5366;
    --ink-3:       #7a8295;
    --line:        #e6dfd1;
    --line-strong: #d4c9b0;
    --shadow-sm:   0 2px 6px rgba(12, 35, 64, 0.06);
    --shadow-md:   0 8px 24px rgba(12, 35, 64, 0.10);
    --shadow-lg:   0 18px 48px rgba(12, 35, 64, 0.18);
    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cream);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(200, 16, 46, 0.04), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(12, 35, 64, 0.06), transparent 40%);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin: 0;
}

a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-dk); text-decoration: underline; }

/* ============================ HERO BANNER ============================ */

.hero-banner-img {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-banner-img img {
    display: block;
    max-width: 100%;
    max-height: 42vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .hero-banner-img img { max-height: 32vh; }
}

/* ============================ MAIN CONTENT ============================ */

.m-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

/* ============================ SEARCH CARD ============================ */

.m-search-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 6px solid var(--crimson);
    border-radius: var(--radius-lg);
    padding: 36px 40px 28px;
    box-shadow: var(--shadow-md);
}

.m-search-ribbon {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--cream);
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gold);
}
.m-ribbon-pill {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
}
.m-ribbon-num {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--paper);
    line-height: 1;
    background: var(--crimson);
    padding: 4px 14px;
    border-radius: 999px;
    border: 2px solid var(--gold);
}

.m-search-head {
    text-align: center;
    margin: 14px 0 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.m-search-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.m-search-head h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.m-sub {
    color: var(--ink-2);
    font-size: 14px;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================ FORM ============================ */

.m-form { display: grid; gap: 18px; }

.m-field { display: flex; flex-direction: column; gap: 6px; }

.m-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
}
.m-req { color: var(--crimson); }
.m-opt { color: var(--ink-3); font-weight: 600; font-size: 10px; letter-spacing: 0.6px; text-transform: none; }

.m-field input {
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--cream);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 13px 16px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.m-field input::placeholder { color: var(--ink-3); }
.m-field input:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(12, 35, 64, 0.08);
}

.m-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: end;
}
.m-divider {
    align-self: center;
    padding-bottom: 12px;
}
.m-divider span {
    display: inline-block;
    background: var(--cream);
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.m-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--navy);
    color: var(--paper);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: none;
    border-radius: var(--radius);
    padding: 16px 24px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.30);
    transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
    margin-top: 4px;
}
.m-submit:hover {
    background: var(--navy-2);
    box-shadow: 0 10px 28px rgba(12, 35, 64, 0.36);
    transform: translateY(-1px);
}
.m-submit:active { transform: translateY(0); }

/* ============================ TRUST STRIP ============================ */

.m-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
}
.m-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-2);
}
.m-trust-item svg { color: var(--crimson); flex-shrink: 0; }
.m-trust-item div { display: flex; flex-direction: column; line-height: 1.25; }
.m-trust-item strong { font-size: 13px; color: var(--navy); font-weight: 700; }
.m-trust-item span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.4px; text-transform: uppercase; }

/* ============================ ERROR / EMPTY STATES ============================ */

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--crimson-dk);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-2);
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.empty-state svg { color: var(--gold-dk); margin-bottom: 14px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 420px; margin: 0 auto; }

/* ============================ RESULTS ============================ */

.results-page { padding-top: 8px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--paper);
    color: var(--navy);
    border: 1px solid var(--line-strong);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    transition: background 0.15s;
}
.back-link:hover { background: var(--cream-2); text-decoration: none; }

.results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
}
.results-header h2 {
    font-size: 26px;
    font-weight: 700;
}
.results-header .count {
    color: var(--crimson);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    justify-items: center;
}

.voter-slip-wrap {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ============================ VOTER CARD (slip) ============================
   Narrow, portrait-oriented "slip" with a perforated/serrated bottom edge —
   reads like a polling-counter token rather than a wide web card.
   ========================================================================== */

.voter-card {
    width: 100%;
    max-width: 440px;
    background: var(--paper);
    background-image:
        repeating-linear-gradient(0deg,
            transparent 0,
            transparent 27px,
            rgba(12, 35, 64, 0.025) 27px,
            rgba(12, 35, 64, 0.025) 28px);
    box-shadow:
        0 2px 4px rgba(12, 35, 64, 0.06),
        var(--shadow-lg);
    border: 1px solid var(--line);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* perforated/scalloped top + bottom edges so the card reads as a "slip" */
.voter-card::before,
.voter-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background-image:
        radial-gradient(circle at 8px 0, var(--cream) 6px, transparent 6.5px);
    background-size: 16px 12px;
    background-repeat: repeat-x;
    z-index: 2;
    pointer-events: none;
}
.voter-card::before { top: -1px; transform: rotate(180deg); }
.voter-card::after  { bottom: -1px; }

.voter-card-header {
    background: var(--navy);
    color: var(--paper);
    padding: 22px 22px 16px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    position: relative;
}
.voter-card-header::after {
    content: 'OFFICIAL · MMC ELECTION 2026';
    display: block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: var(--gold);
    opacity: 0.85;
}
.voter-card-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--paper);
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 0;
    line-height: 1.25;
    word-break: break-word;
}
.sr-badge {
    display: inline-block;
    background: var(--crimson);
    color: var(--paper);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
}

.voter-card-body { padding: 18px 20px 20px; }

.info-row {
    display: grid;
    grid-template-columns: 20px 90px 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}
.info-row:last-of-type { border-bottom: none; }
.info-row svg { color: var(--navy-3); }
.info-row .label {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.info-row .value {
    color: var(--ink);
    font-weight: 600;
    word-break: break-word;
}

/* Polling strip */
.polling-strip {
    margin-top: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 12px 14px;
}
.polling-strip-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--crimson);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.polling-strip-name {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
    line-height: 1.3;
}
.polling-strip-address {
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.5;
}

/* Time strip */
.time-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.time-strip > div {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--navy);
    font-weight: 600;
}
.time-strip svg { color: var(--crimson); flex-shrink: 0; }

/* Vote CTA slate */
.vote-cta-slate {
    margin-top: 14px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--paper);
    border-radius: 6px;
    padding: 14px 16px;
    border: 2px solid var(--gold);
    text-align: center;
}
.vote-cta-slate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200, 160, 74, 0.3);
}
.vote-cta-slate-check {
    background: var(--gold);
    color: var(--navy);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.vote-cta-slate-check svg { width: 12px; height: 12px; }
.vote-cta-slate-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.vote-cta-slate-title strong { color: var(--gold); font-weight: 800; }
.vote-cta-slate-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.vote-cta-slate-num {
    background: var(--paper);
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.vote-cta-slate-num:nth-child(5) {
    background: var(--crimson);
    color: var(--paper);
    border-color: var(--gold);
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Action buttons — sit OUTSIDE the slip (excluded from download) */
.card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 440px;
    margin: 12px auto 0;
    padding: 0;
    background: transparent;
    border-top: none;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--paper);
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    text-decoration: none;
}
.action-btn:hover {
    background: var(--navy);
    color: var(--paper);
    border-color: var(--navy);
    text-decoration: none;
    transform: translateY(-1px);
}
.action-btn.btn-wa:hover { background: #25d366; border-color: #25d366; color: var(--paper); }
.action-btn.btn-map:hover { background: var(--crimson); border-color: var(--crimson); color: var(--paper); }

/* ============================ FOOTER NOTE ============================ */

.m-footer-note {
    text-align: center;
    margin-top: 36px;
    padding: 16px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-2);
    font-size: 13px;
}
.m-footer-note strong { color: var(--crimson); font-weight: 700; }

/* ============================ SITE FOOTER ============================ */

.site-footer {
    background: var(--navy);
    color: var(--cream);
    margin-top: 40px;
    border-top: 4px solid var(--gold);
}
.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 28px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.site-footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--paper);
    font-size: 18px;
    margin: 0 0 4px;
    font-weight: 700;
}
.site-footer-col h5 {
    font-family: 'Inter', sans-serif;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200, 160, 74, 0.25);
}
.site-footer-col p {
    color: rgba(250, 246, 239, 0.78);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 6px;
}
.site-footer-col p strong { color: var(--paper); font-weight: 700; }
.site-footer-col p.mr {
    color: rgba(250, 246, 239, 0.55);
    font-size: 12px;
    margin-top: 6px;
}

.site-footer-brand {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.site-footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.site-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(250, 246, 239, 0.08);
    border: 1px solid rgba(200, 160, 74, 0.4);
    color: var(--cream);
    transition: background 0.18s, border-color 0.18s, transform 0.12s, color 0.18s;
}
.site-footer-socials a:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-2px);
    text-decoration: none;
}
.site-footer-sr {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--crimson);
    color: var(--paper);
    border: 2px solid var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.site-footer-slate {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.site-footer-num {
    background: rgba(250, 246, 239, 0.08);
    border: 1px solid rgba(200, 160, 74, 0.4);
    color: var(--cream);
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-footer-num.is-ours {
    background: var(--crimson);
    border-color: var(--gold);
    color: var(--paper);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.site-footer-bottom {
    border-top: 1px solid rgba(200, 160, 74, 0.2);
    padding: 16px 24px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(250, 246, 239, 0.55);
    font-size: 11px;
    letter-spacing: 0.3px;
}

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
        padding: 30px 20px 24px;
    }
}
@media (max-width: 560px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px 18px 22px;
    }
    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 14px 18px;
    }
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 700px) {
    .m-content { padding: 22px 12px 32px; }
    .m-search-card { padding: 30px 20px 22px; border-radius: var(--radius); }
    .m-search-head h1 { font-size: 26px; }
    .m-sub { font-size: 13px; }

    .m-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .m-divider { padding: 0; text-align: center; }

    .m-trust {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .results-header h2 { font-size: 22px; }

    .voter-card-header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
    .voter-card-header h3 { font-size: 17px; }
    .voter-card-body { padding: 16px 18px; }

    .info-row {
        grid-template-columns: 22px 1fr;
        row-gap: 2px;
    }
    .info-row .label { grid-column: 2; }
    .info-row .value { grid-column: 2; }

    .card-actions { grid-template-columns: 1fr; padding: 12px 18px 18px; }
    .action-btn { padding: 12px; }
}

@media (max-width: 420px) {
    .m-search-card { padding: 26px 16px 20px; }
    .m-ribbon-num { font-size: 18px; padding: 3px 11px; }
    .m-search-head h1 { font-size: 23px; }
    .vote-cta-slate-num { width: 34px; height: 34px; font-size: 14px; }
}
