/* ============================================================
   ELECTION TOOL - Modern UI/UX Styles
   Theme: Purple/Indigo (#667eea → #764ba2)
   ============================================================ */

/* ============== FORM PAGE REDESIGN OVERRIDES ============== */
.election-tool-page {
    --election-bg: #f5efe5;
    --election-paper: #fffaf3;
    --election-surface: #f3ebdf;
    --election-ink: #162033;
    --election-muted: #5d6778;
    --election-line: #d7c7b4;
    --election-accent: #b45533;
    --election-accent-deep: #8a3e21;
    --election-accent-soft: #f3d9c5;
    --election-highlight: #c59c2d;
    --election-shadow: 0 18px 48px rgba(22, 32, 51, 0.08);
    background: linear-gradient(180deg, #f3ecdf 0%, #fbf7f1 36%, #f8f5ee 100%);
}

.election-tool-page .election-hero {
    background:
        radial-gradient(circle at top right, rgba(197, 156, 45, 0.2), transparent 30%),
        linear-gradient(135deg, #132033 0%, #23324d 52%, #314567 100%);
    padding: 44px 0 28px;
}

.election-tool-page .election-hero-pattern {
    opacity: 0.42;
}

.election-tool-page .election-hero-shell {
    position: relative;
}

.election-tool-page .election-hero-copy,
.election-tool-page .hero-summary-card,
.election-tool-page .election-side-card,
.election-tool-page .form-section-card,
.election-tool-page .seo-info-card,
.election-tool-page .seo-faq-card {
    box-shadow: var(--election-shadow);
}

.election-tool-page .election-hero-copy {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 32px;
    backdrop-filter: blur(12px);
}

.election-tool-page .election-hero-badge {
    background: rgba(197, 156, 45, 0.18);
    border-color: rgba(197, 156, 45, 0.4);
    color: #fff4d4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.election-tool-page .election-hero-title {
    max-width: 11ch;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.election-tool-page .election-hero-subtitle {
    max-width: 58ch;
    color: rgba(255, 249, 239, 0.86);
    font-size: 1.03rem;
    margin-bottom: 22px;
}

.election-tool-page .election-hero-features {
    gap: 12px;
    margin-bottom: 20px;
}

.election-tool-page .hero-feature {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #f7efe1;
    font-size: 0.88rem;
    padding: 10px 16px;
}

.election-tool-page .hero-outcome-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 42rem;
    background: rgba(243, 217, 197, 0.1);
    border: 1px solid rgba(243, 217, 197, 0.18);
    border-radius: 18px;
    color: #fcefdc;
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 14px 16px;
}

.election-tool-page .hero-outcome-note i {
    color: #f3d9c5;
    margin-top: 2px;
}

.election-tool-page .hero-summary-card {
    height: 100%;
    background: linear-gradient(180deg, #fff8ef 0%, #f8f0e5 100%);
    border: 1px solid rgba(180, 85, 51, 0.14);
    border-radius: 30px;
    color: var(--election-ink);
    padding: 28px;
}

.election-tool-page .hero-summary-head h2 {
    color: var(--election-ink);
    font-size: 1.45rem;
    font-weight: 800;
    margin: 14px 0 8px;
}

.election-tool-page .hero-summary-head p {
    color: var(--election-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.election-tool-page .hero-summary-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(180, 85, 51, 0.08);
    border: 1px solid rgba(180, 85, 51, 0.16);
    border-radius: 999px;
    color: var(--election-accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.election-tool-page .hero-summary-grid {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.election-tool-page .hero-summary-item {
    background: #fffdf9;
    border: 1px solid rgba(180, 85, 51, 0.09);
    border-radius: 18px;
    padding: 14px 15px;
}

.election-tool-page .hero-summary-item strong {
    display: block;
    color: var(--election-ink);
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.election-tool-page .hero-summary-item span,
.election-tool-page .hero-summary-foot-item span {
    color: var(--election-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.election-tool-page .hero-summary-foot {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed rgba(180, 85, 51, 0.22);
}

.election-tool-page .hero-summary-foot-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.election-tool-page .hero-summary-foot-item i {
    color: var(--election-accent);
}

.election-tool-page .election-form-section {
    background: transparent;
    padding: 24px 0 40px;
}

.election-tool-page .election-layout {
    display: grid;
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.election-tool-page .election-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 104px;
}

.election-tool-page .election-side-card {
    background: var(--election-paper);
    border: 1px solid rgba(180, 85, 51, 0.12);
    border-radius: 22px;
    padding: 22px;
}

.election-tool-page .election-side-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.election-tool-page .side-card-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3d9c5 0%, #f0c9a9 100%);
    border-radius: 14px;
    color: var(--election-accent-deep);
    flex-shrink: 0;
}

.election-tool-page .side-card-title {
    color: var(--election-ink);
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.election-tool-page .side-card-copy,
.election-tool-page .side-safety-copy {
    color: var(--election-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.election-tool-page .side-checklist {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.election-tool-page .side-checklist li,
.election-tool-page .side-context-value {
    color: var(--election-ink);
    font-size: 0.92rem;
    line-height: 1.55;
}

.election-tool-page .side-checklist li {
    position: relative;
    padding-left: 20px;
}

.election-tool-page .side-checklist li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--election-highlight);
}

.election-tool-page .side-context-list {
    display: grid;
    gap: 12px;
}

.election-tool-page .side-context-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px dashed rgba(180, 85, 51, 0.15);
    padding-bottom: 12px;
}

.election-tool-page .side-context-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.election-tool-page .side-context-label {
    color: #8a6f55;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.election-tool-page .form-section-card.election-form-card {
    background: var(--election-paper);
    border: 1px solid rgba(180, 85, 51, 0.12);
    border-radius: 26px;
    box-shadow: var(--election-shadow);
    padding: 30px;
}

.election-tool-page .election-form-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(180, 85, 51, 0.12);
}

.election-tool-page .election-card-eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(180, 85, 51, 0.08);
    border-radius: 999px;
    color: var(--election-accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    text-transform: uppercase;
}

.election-tool-page .section-title {
    color: var(--election-ink);
    font-size: 1.45rem;
    font-weight: 800;
    margin: 14px 0 6px;
}

.election-tool-page .section-subtitle {
    color: var(--election-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.election-tool-page .election-form-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.election-tool-page .meta-pill {
    display: inline-flex;
    align-items: center;
    background: #fbe9db;
    border-radius: 999px;
    color: var(--election-accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 12px;
}

.election-tool-page .meta-pill-soft {
    background: #efe4d4;
    color: #705f4b;
}

.election-tool-page .form-label,
.election-tool-page .form-label i {
    color: var(--election-ink);
}

.election-tool-page .label-optional,
.election-tool-page .label-note {
    color: #85745f;
}

.election-tool-page .form-control,
.election-tool-page .form-select {
    background: #fffdf9;
    border-color: rgba(180, 85, 51, 0.18);
    border-radius: 14px;
    padding: 13px 15px;
}

.election-tool-page .form-control:focus,
.election-tool-page .form-select:focus,
.election-tool-page .election-date-picker select:focus {
    border-color: rgba(180, 85, 51, 0.48);
    box-shadow: 0 0 0 4px rgba(180, 85, 51, 0.12);
}

.election-tool-page .form-hint,
.election-tool-page .field-error {
    margin-top: 8px;
}

.election-tool-page .form-hint {
    color: var(--election-muted);
}

.election-tool-page .election-form-grid {
    gap: 22px;
}

.election-tool-page .form-group-full {
    width: 100%;
}

.election-tool-page .advanced-fields {
    background: linear-gradient(180deg, #fff7ef 0%, #fbf2e8 100%);
    border: 1px dashed rgba(180, 85, 51, 0.28);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.election-tool-page .advanced-fields summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
}

.election-tool-page .advanced-fields summary::-webkit-details-marker {
    display: none;
}

.election-tool-page .advanced-fields[open] summary {
    border-bottom: 1px solid rgba(180, 85, 51, 0.14);
}

.election-tool-page .advanced-fields-title {
    color: var(--election-ink);
    font-size: 0.98rem;
    font-weight: 700;
}

.election-tool-page .advanced-fields-badge {
    display: inline-flex;
    align-items: center;
    background: #f3d9c5;
    border-radius: 999px;
    color: var(--election-accent-deep);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 10px;
    text-transform: uppercase;
}

.election-tool-page .advanced-fields-body {
    padding: 18px 20px 20px;
}

.election-tool-page .advanced-fields-copy {
    color: var(--election-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

.election-tool-page .form-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(180, 85, 51, 0.14);
}

.election-tool-page .submit-panel-copy {
    display: grid;
    gap: 4px;
    max-width: 34rem;
}

.election-tool-page .submit-panel-copy strong {
    color: var(--election-ink);
    font-size: 0.96rem;
    font-weight: 800;
}

.election-tool-page .submit-panel-copy span {
    color: var(--election-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.election-tool-page .btn-election-submit {
    background: linear-gradient(135deg, var(--election-accent) 0%, var(--election-accent-deep) 100%);
    box-shadow: 0 12px 28px rgba(138, 62, 33, 0.28);
}

.election-tool-page .btn-election-submit:hover {
    box-shadow: 0 16px 34px rgba(138, 62, 33, 0.36);
}

.election-tool-page .election-seo-section {
    background: transparent;
    padding-top: 12px;
}

.election-tool-page .election-seo-lead {
    max-width: 50rem;
    margin: 0 auto 24px;
    text-align: center;
}

.election-tool-page .seo-info-card,
.election-tool-page .seo-faq-card {
    background: var(--election-paper);
    border: 1px solid rgba(180, 85, 51, 0.12);
    box-shadow: var(--election-shadow);
}

.election-tool-page .seo-section-eyebrow {
    background: #f3e2cf;
    color: var(--election-accent-deep);
}

.election-tool-page .seo-section-title,
.election-tool-page .seo-faq-card .section-title {
    color: var(--election-ink);
}

.election-tool-page .seo-section-copy,
.election-tool-page .seo-points-list li,
.election-tool-page .election-faq-accordion .accordion-body,
.election-tool-page .seo-faq-card .section-subtitle {
    color: var(--election-muted);
}

.election-tool-page .seo-points-list i,
.election-tool-page .seo-faq-card .section-title i {
    color: var(--election-accent);
}

.election-tool-page .election-faq-accordion .accordion-button {
    color: var(--election-ink);
}

.election-tool-page .election-faq-accordion .accordion-button:not(.collapsed) {
    background: #f4e7d9;
    color: var(--election-accent-deep);
}

/* ============== FORM PAGE HERO ============== */
.election-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.election-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.election-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    margin-bottom: 20px;
}

.election-hero-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.election-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 24px;
}

.election-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
}

.hero-feature i {
    font-size: 1rem;
}

/* Hero Visual */
.election-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-meter-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.meter-ring-demo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.meter-ring-outer {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(from 135deg, #10b981 0%, #667eea 50%, #ef4444 100%);
    padding: 8px;
    animation: spin-slow 20s linear infinite;
}

.meter-ring-inner {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meter-ring-inner i {
    font-size: 2.5rem;
    color: #fff;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.meter-labels {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.meter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.meter-label-opp i { color: #10b981; }
.meter-label-press i { color: #ef4444; }

/* ============== DISCLAIMER SECTION ============== */
.election-disclaimer-section {
    padding: 24px 0;
    background: #f8f9ff;
}

.election-disclaimer-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 16px;
    padding: 20px 24px;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fbbf24;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-icon i {
    font-size: 1.2rem;
    color: #78350f;
}

.disclaimer-content {
    color: #78350f;
}

.disclaimer-content strong {
    display: block;
    margin-bottom: 6px;
}

.disclaimer-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============== ACTIVE ELECTION BANNER ============== */
.election-active-banner {
    padding: 0 0 24px;
    background: #f8f9ff;
}

.active-election-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

.election-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 20px;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.election-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.election-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.election-info-item i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1rem;
}

.election-info-item .info-label {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.election-info-item .info-value {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============== FORM SECTION ============== */
.election-form-section {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.election-form {
    max-width: 100%;
}

.election-alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.election-alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
}

.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.election-alert-error .alert-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.alert-content {
    color: #991b1b;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 0.9rem;
}

/* Form Section Cards */
.form-section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.06);
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.section-icon-candidate {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #667eea;
}

.section-icon-window {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
}

.section-title {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-label i {
    color: #667eea;
}

.label-optional,
.label-note {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 6px;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid,
.election-date-picker select.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.election-date-picker select.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.form-control::placeholder {
    color: #94a3b8;
}

.election-date-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.election-date-picker select {
    min-width: 0;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-hint i {
    color: #94a3b8;
}

.field-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 6px;
}

.field-error-client:empty {
    display: none;
}

/* Coordinates Section */
.coordinates-section,
.custom-election-section {
    margin-top: 8px;
    padding-top: 20px;
}

.coordinates-header,
.custom-election-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.coordinates-divider,
.custom-divider {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.coordinates-label,
.custom-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* How It Works Card */
.how-it-works-card {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 0;
    position: relative;
    z-index: 0;
}

.how-it-works-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0;
    background: none;
    border: none;
}

.how-it-works-card .card-header i {
    color: #667eea;
    font-size: 1.5rem;
}

.how-it-works-card .card-header h3 {
    color: #4338ca;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.how-it-works-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.how-it-works-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 0.9rem;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Submit Section */
.form-submit-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
}

.election-form > .row {
    margin-bottom: 0;
}

.btn-election-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 40px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    z-index: 2;
}

.btn-election-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

.btn-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.btn-election-submit:hover .btn-shine {
    left: 100%;
}

/* SEO Content Section */
.election-seo-section {
    padding: 24px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.seo-info-card,
.seo-faq-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.06);
}

.seo-info-card {
    height: 100%;
    padding: 28px;
}

.seo-section-eyebrow {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 999px;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    text-transform: uppercase;
}

.seo-section-title {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 16px 0 12px;
}

.seo-section-copy {
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.seo-points-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seo-points-list li {
    display: flex;
    gap: 12px;
    color: #334155;
    line-height: 1.6;
}

.seo-points-list i {
    color: #667eea;
    font-size: 1rem;
    margin-top: 2px;
}

.seo-faq-card {
    margin-top: 24px;
    overflow: hidden;
}

.seo-faq-card .section-header-row {
    margin: 0;
    padding: 28px 28px 18px;
    text-align: left;
}

.election-faq-accordion {
    padding: 0 28px 28px;
}

.election-faq-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}

.election-faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.election-faq-accordion .accordion-button {
    background: #fff;
    box-shadow: none;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    padding: 18px 20px;
}

.election-faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
}

.election-faq-accordion .accordion-body {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 18px 20px 22px;
}

/* ============== RESULTS PAGE STYLES ============== */
.results-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.results-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.results-hero-content {
    text-align: center;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    margin-bottom: 16px;
}

.results-candidate-name {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.meta-item i {
    font-size: 1rem;
}

.btn-back-to-form {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back-to-form:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Results Disclaimer */
.results-disclaimer-section {
    padding: 20px 0;
    background: #f8f9ff;
}

.results-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    color: #78350f;
    font-size: 0.9rem;
    padding: 14px 20px;
    text-align: center;
}

.results-disclaimer i {
    font-size: 1.1rem;
}

/* Results Notice */
.results-notice-section {
    padding: 0 0 20px;
    background: #f8f9ff;
}

.results-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    color: #92400e;
    font-size: 0.9rem;
    padding: 14px 20px;
    text-align: center;
}

/* Momentum Main Section */
.results-momentum-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.momentum-main-card {
    background: #fff;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
    text-align: center;
}

.momentum-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.momentum-header h2 i {
    color: #667eea;
}

.momentum-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 32px;
}

.momentum-meter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.momentum-gauge {
    position: relative;
    width: 100%;
    max-width: 280px;
}

.gauge-svg {
    width: 100%;
    height: auto;
}

.gauge-fill {
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-needle {
    transition: transform 1s ease-out;
}

.gauge-value {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.value-number {
    display: block;
    color: #0f172a;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.value-label {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
}

.momentum-meter-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 20px;
    max-width: 400px;
}

/* Index Cards Section */
.results-indices-section {
    padding: 0 0 40px;
    background: #fff;
}

.index-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.index-card-opportunity {
    border: 2px solid #10b981;
    border-top-width: 6px;
}

.index-card-pressure {
    border: 2px solid #ef4444;
    border-top-width: 6px;
}

.index-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.index-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.index-card-opportunity .index-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
}

.index-card-pressure .index-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

.index-header h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.index-header p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.index-meter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.meter-bar-container {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.meter-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

.meter-bar-opportunity {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.meter-bar-pressure {
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
}

.meter-value {
    flex-shrink: 0;
    text-align: right;
}

.meter-num {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
}

.meter-max {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
}

.index-interpretation {
    text-align: center;
}

.interpretation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
}

.interpretation-high {
    background: #ecfdf5;
    color: #059669;
}

.interpretation-moderate {
    background: #fef3c7;
    color: #d97706;
}

.interpretation-low {
    background: #fef2f2;
    color: #dc2626;
}

.interpretation-high-pressure {
    background: #fef2f2;
    color: #dc2626;
}

.interpretation-moderate-pressure {
    background: #fef3c7;
    color: #d97706;
}

.interpretation-low-pressure {
    background: #ecfdf5;
    color: #059669;
}

/* Signals Section */
.results-signals-section {
    padding: 40px 0;
    background: #f8f9ff;
}

.section-header-row {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title i {
    color: #667eea;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.signals-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.signals-card-opportunity {
    border-top: 5px solid #10b981;
}

.signals-card-pressure {
    border-top: 5px solid #ef4444;
}

.signals-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.signals-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.signals-card-opportunity .signals-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
}

.signals-card-pressure .signals-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

.signals-header h3 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.signals-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.signals-list li {
    display: flex;
    gap: 12px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.signals-card-opportunity .signals-list li i {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 3px;
}

.signals-card-pressure .signals-list li i {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 3px;
}

.signals-empty {
    color: #94a3b8;
    font-style: italic;
}

.signals-empty i {
    color: #94a3b8 !important;
}

/* Key Windows Section */
.results-windows-section {
    padding: 40px 0;
    background: #fff;
}

.windows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.window-card {
    display: flex;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.window-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.window-tone-indicator {
    width: 6px;
    flex-shrink: 0;
}

.window-card--supportive .window-tone-indicator {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.window-card--caution .window-tone-indicator {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

.window-content {
    padding: 20px;
    flex: 1;
}

.window-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.window-dates i {
    color: #667eea;
}

.window-label {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.window-tone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.window-card--supportive .window-tone-badge {
    background: #ecfdf5;
    color: #059669;
}

.window-card--caution .window-tone-badge {
    background: #fef2f2;
    color: #dc2626;
}

.windows-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.windows-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* Action Section */
.results-action-section {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
}

.action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 28px 32px;
}

.action-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-content > i {
    font-size: 2rem;
    color: #667eea;
}

.action-content h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.action-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.btn-new-analysis {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-new-analysis:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* ============== QUIET PAGE STYLES ============== */
.quiet-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.quiet-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.quiet-card {
    position: relative;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 28px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.quiet-icon-wrapper {
    position: relative;
    display: inline-flex;
    margin-bottom: 28px;
}

.quiet-icon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(245, 158, 11, 0.3);
    animation: quiet-pulse 2s ease-in-out infinite;
}

@keyframes quiet-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.5; }
}

.quiet-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiet-icon i {
    font-size: 2.5rem;
    color: #d97706;
}

.quiet-title {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.quiet-message {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.quiet-explanation {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    margin-bottom: 28px;
}

.explanation-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #e0e7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explanation-icon i {
    font-size: 1rem;
    color: #667eea;
}

.quiet-explanation p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.quiet-election-info {
    margin-bottom: 28px;
}

.election-info-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    color: #4338ca;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    margin-bottom: 12px;
}

.election-poll-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.election-poll-time i {
    color: #94a3b8;
}

.quiet-cta {
    margin-top: 8px;
}

.btn-quiet-home {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-quiet-home:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

@media (max-width: 1199px) {
    .election-tool-page .election-layout {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }

    .election-tool-page .election-form-card-head {
        flex-direction: column;
    }

    .election-tool-page .election-form-card-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .election-tool-page .election-hero-copy,
    .election-tool-page .hero-summary-card,
    .election-tool-page .form-section-card.election-form-card {
        padding: 24px;
    }

    .election-tool-page .election-layout {
        grid-template-columns: 1fr;
    }

    .election-tool-page .election-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .election-tool-page .form-submit-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .election-tool-page .btn-election-submit {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .election-tool-page .election-hero {
        padding-top: 30px;
    }

    .election-tool-page .election-hero-copy,
    .election-tool-page .hero-summary-card,
    .election-tool-page .election-side-card,
    .election-tool-page .form-section-card.election-form-card,
    .election-tool-page .seo-info-card {
        padding: 20px;
    }

    .election-tool-page .election-hero-title {
        max-width: none;
        font-size: 2.3rem;
    }

    .election-tool-page .hero-feature {
        width: 100%;
        justify-content: flex-start;
    }

    .election-tool-page .election-sidebar {
        grid-template-columns: 1fr;
    }

    .election-tool-page .side-context-item,
    .election-tool-page .advanced-fields summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .election-tool-page .form-submit-panel {
        margin-top: 24px;
        padding-top: 20px;
    }
}

/* ============== RESPONSIVE STYLES ============== */
@media (max-width: 991px) {
    .election-hero {
        padding: 40px 0;
    }
    
    .election-hero-title {
        font-size: 2rem;
    }
    
    .results-hero {
        padding: 40px 0;
    }
    
    .results-candidate-name {
        font-size: 2rem;
    }
    
    .momentum-main-card {
        padding: 28px;
    }
    
    .action-card {
        justify-content: center;
        text-align: center;
    }
    
    .action-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .election-hero {
        padding: 32px 0;
    }

    .election-date-picker {
        grid-template-columns: 1fr;
    }
    
    .election-hero-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-feature {
        width: fit-content;
    }
    
    .form-section-card {
        padding: 20px;
    }

    .seo-info-card,
    .seo-faq-card .section-header-row,
    .election-faq-accordion {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .gauge-value {
        bottom: 5px;
    }
    
    .value-number {
        font-size: 2.2rem;
    }
    
    .signals-card,
    .index-card {
        padding: 20px;
    }
    
    .windows-grid {
        grid-template-columns: 1fr;
    }
    
    .quiet-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .quiet-title {
        font-size: 1.5rem;
    }
    
    .election-info-grid {
        flex-direction: column;
        gap: 16px;
    }
}
