/* Global Styles & Variables */
:root {
    --bg-deep-navy: #0B1120;
    --accent-orange: #F94118;
    --accent-yellow: #F5B800;
    --accent-blue-highlight: #3B82F6;
    --accent-orange-hover: #D83412;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Fraunces & Tiro Tamil Variables */
    --fraunces-style: 'Fraunces', serif;
    --tiro-tamil-style: 'Tiro Tamil', serif;
}

* { margin:0; padding:0; box-sizing:border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: linear-gradient(to bottom, #0B1120 0%, #4e372c 100%); 
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary); 
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Temple Pattern */
.background-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0.9; 
    pointer-events: none;
}
.temple-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Layout Containers */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 60px 24px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 4-Box OTP Input Style */
.otp-box {
    width: 64px;
    height: 64px;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.otp-box:focus {
    border-color: var(--accent-orange) !important;
    background: rgba(249, 65, 24, 0.05) !important;
}

/* Question Progress Utility */
.progress-bar-container {
    width: 100%;
    margin-bottom: 32px;
}

/* Logo Fix (Top Left) */
.top-logo-container {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 100;
}
.top-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* LIVE Badge & Blinking Animation */
.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 33, 27, 0.4);
    border: 1px solid rgba(249, 65, 24, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 10px var(--accent-orange); }
    100% { opacity: 0.2; transform: scale(0.9); }
}

/* Responsive Hero Typography (Reduced Size for Refinement) */
.hero-title {
    font-family: var(--fraunces-style);
    font-weight: 900;
    font-size: clamp(25px, 6vw, 68px); /* Fluid Scaling */
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.hero-title .highlight-orange {
    color: var(--accent-orange);
}

/* Tamil Typography Scaled Down */
.tamil-title {
    font-family: var(--tiro-tamil-style); 
    font-size: clamp(16px, 3vw, 25px); /* Scaled for mobile readability */
    line-height: 1.5;
    color: var(--accent-yellow);
    margin-bottom: 40px;
   margin-top: 40px;
   text-align: center; font-weight: 800;
}

#hero-view .tamil-title {
    font-size: clamp(20px, 4vw, 36px); /* Hero title needs more impact */
}

.hero-description {
    max-width: 640px;
    font-size: clamp(12px, 1.5vw, 18px);
    color: var(--text-secondary);
    margin: 0 auto 48px;
    line-height: 1.7;
    opacity: 0.8;
}

/* Premium Start Button Scaled Down */
.btn-survey-start {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(270deg, var(--accent-orange), #ff6b3d, var(--accent-orange));
    background-size: 200% auto;
    color: white;
    padding: clamp(16px, 2vw, 20px) clamp(32px, 4vw, 56px);
    border-radius: 100px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 15px 45px rgba(249, 65, 24, 0.3);
    border: none;
    justify-content: center;
    cursor: pointer;
    animation: button-wave 3s ease infinite;
}

@keyframes button-wave {
    0% { background-position: 0% 50%; box-shadow: 0 15px 45px rgba(249, 65, 24, 0.3); }
    50% { background-position: 100% 50%; box-shadow: 0 15px 60px rgba(249, 65, 24, 0.5); }
    100% { background-position: 0% 50%; box-shadow: 0 15px 45px rgba(249, 65, 24, 0.3); }
}
.btn-survey-start .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature Grid Footer Responsive */
.feature-footer {
    display: flex;
    gap: clamp(16px, 3vw, 48px);
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(10px, 1.2vw, 13px);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}
.feature-item i { font-size: 10px; color: var(--accent-yellow); width: 12px; }

/* Survey Card Responsive (Optimized Width) */
.survey-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 680px; /* Reduced from 850px for desktop elegance */
    padding: clamp(24px, 5vw, 30px);
    display: none;
    animation: premiumSlide 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes premiumSlide { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Survey view: avoid inner scrollbars (use page scroll instead) */
#survey-form-view {
    justify-content: flex-start;
}

@media (min-width: 769px) {
    #survey-form-view {
        padding: 40px 24px;
    }
}

#survey-form-view .survey-card {
    display: flex !important;
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

#dynamic-question-container {
    overflow: visible;
    padding-bottom: 0;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.q-fade-out {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(5px);
}

.q-fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Reduce vertical density so options fit without scroll */
#survey-form-view .progress-bar-container {
    margin-bottom: 34px !important;
}

#survey-form-view .survey-nav-footer {
    margin-top: 34px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
}

/* Unified Mobile Input Group */
.mobile-input-group {
    display: flex;
    align-items: center;
    background: rgba(45, 33, 27, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2px 24px;
    margin: 15px 0;
    transition: all 0.3s ease;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.mobile-input-group:focus-within {
    border-color: var(--accent-orange);
    background: rgba(249, 65, 24, 0.05);
    box-shadow: 0 0 20px rgba(249, 65, 24, 0.1);
}
.mobile-input-group .prefix {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-right: 16px;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
}
.mobile-input-group input {
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 16px 0 !important;
    width: 100% !important;
    text-align: left !important;
    color: #FFF !important;
    box-shadow: none !important;
}
.mobile-input-group input:focus {
    outline: none !important;
}

/* Premium Toast Notification */
.toast-container {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    min-width: 320px;
    animation: toastIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-error { border-left: 4px solid #F87171; }
.toast-success { border-left: 4px solid #12B76A; }
.toast-info { border-left: 4px solid var(--accent-yellow); }

/* Questionnaire Responsive Layer - High Density Compact View */
@media (max-width: 768px) {
    .container { padding: 5px 8px; min-height: unset !important; }
    .top-logo-container { position: relative; top: 0; display: flex; left: 0; margin: 15px auto; justify-content: center; }
    .top-logo { height: 45px; }
    
    .survey-card { padding: 20px 16px; border-radius: 16px; width: 100%; margin: 0 auto; }
    .progress-bar-container { margin-bottom: 15px !important; }
    
    .question-number-badge { font-size: 18px; margin-bottom: 4px; }
    .survey-card .question-header { font-size: 18px !important; margin-bottom: 20px; line-height: 1.3; }
    
    .options-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .option-card { padding: 12px 16px; gap: 12px; border-width: 2px; }
    .option-main-text { font-size: 15px; }
    
    .survey-nav-footer { margin-top: 24px !important; gap: 12px; }
    .btn-survey-start, .btn-nav-back { padding: 14px 24px; font-size: 15px !important; }
    
    .feature-footer { margin-top: 20px !important; padding-top: 15px; gap: 10px; }
    .feature-item { font-size: 10px; }
    
    .background-wrapper { opacity: 0.4; }
    .temple-img:nth-child(2) { display: none; }
    
    .mobile-input-group { margin: 16px 0; padding: 0 16px; }
    .mobile-input-group input { font-size: 18px !important; padding: 12px 0 !important; }
}

/* Question Card Typography */
.question-header {
    font-family: var(--fraunces-style);
    font-size: clamp(22px, 4vw, 26px);
    line-height: 1.25;
    margin-bottom: 28px;
    color: #FFFFFF;
    font-weight: 800;
}

.question-number-badge {
    color: var(--accent-orange);
    font-family: var(--fraunces-style);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Option Cards (2-Column Grid) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.option-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 3px solid transparent;
    min-width: 0;
}
.option-card:hover { 
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.option-card.active {
    border-color: var(--accent-orange);
    background: #FFF;
}
.option-card.active .radio-circle {
    background: var(--accent-orange);
    box-shadow: inset 0 0 0 3px #FFF;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-card.active .checkbox-box {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.option-card.active .radio-circle {
    background: var(--accent-orange);
    box-shadow: inset 0 0 0 3px #FFF;
}

.option-text-group {
    text-align: left;
    flex: 1;
    min-width: 0;
}
.option-main-text {
    display: block;
    color: #111827;
    font-weight: 800;
    font-size: 15px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}
.option-sub-text {
    display: block;
    color: #6B7280;
    font-size: 12px;
    font-weight: 500;
}

/* Bottom Navigation Bar */
.survey-nav-footer {
    display: flex;
   justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    width: 100%;
}

/* Ensure phone layout wins (base .options-grid is defined later in the file) */
@media (max-width: 575.98px) {
    .options-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Teaser (Question 7) view */
.teaser-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.teaser-lottie {
    width: 170px;
    height: 170px;
    margin: 0 auto 6px;
}
.teaser-lottie lottie-player {
    width: 100%;
    height: 100%;
}
.teaser-title {
    margin-bottom: 6px;
}
.teaser-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}
.teaser-actions {
    margin-top: 8px;
    width: 100%;
    display: flex;
    gap: 14px;
    justify-content: center;
}
.teaser-actions .teaser-btn-secondary,
.teaser-actions .teaser-btn-primary {
    flex: 1;
    max-width: 350px;
}

/* Final success lottie size */
#lottie-success {
    width: 190px;
    height: 190px;
    margin: 0 auto 12px;
}
#lottie-success lottie-player {
    width: 100%;
    height: 100%;
}
.btn-nav-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-nav-back:hover { background: rgba(255, 255, 255, 0.15); }

/* Dropdown Premium Styling */
.premium-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
}

/* Windows/Chrome fix: ensure dropdown option text is visible */
.premium-select option,
.premium-select optgroup {
    color: #111827;
    background-color: #FFFFFF;
}

.premium-select:focus {
    border-color: rgba(245, 184, 0, 0.7);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.12);
}

/* Inline scheme preview (Question 8) */
.scheme-preview {
    margin-top: 16px;
}

.scheme-empty-hint {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 14px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.scheme-preview .accordion-header {
    font-size: 12px;
    padding: 10px 12px;
}

.scheme-preview .accordion-item.active .accordion-content {
    padding: 0 14px 14px;
}

.scheme-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px;
}

.scheme-title {
    color: white;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 10px;
    text-align: left;
    font-family: var(--tiro-tamil-style);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scheme-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scheme-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 184, 0, 0.10);
    border: 1px solid rgba(245, 184, 0, 0.22);
    color: var(--accent-yellow);
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.scheme-pill span {
    color: rgba(255,255,255,0.75);
    font-weight: 700;
}

.scheme-pill strong {
    color: var(--accent-yellow);
    font-weight: 900;
    letter-spacing: -0.2px;
}

/* Mini pills + scheme lines (Question 9 occupation details) */
.scheme-pill.scheme-pill--mini {
    padding: 5px 7px;
    border-radius: 10px;
    font-size: 10px;
    gap: 8px;
}

.scheme-lines {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scheme-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.scheme-line__text {
    flex: 1;
    color: rgba(255,255,255,0.85);
    font-size: 10px;
    line-height: 1.55;
    text-align: left;
    font-weight: 700;
    font-family: var(--tiro-tamil-style);
}

.scheme-line__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.occupation-preview .accordion-header {
    font-size: 16px;
    padding: 10px 12px;
}

.occupation-section {
    margin-top: 12px;
}

.occupation-section:first-child {
    margin-top: 0;
}

.occupation-section-title {
    font-size: 15px;
    font-weight: 900;
    text-align: left;
	color: rgb(249 65 23);
    margin: 0 0 8px;
    letter-spacing: 0.2px;
}

/* Weaver (நெசவாளர்) sub flow helpers */
.weaver-type-row {
    width: 100%;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.weaver-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 184, 0, 0.10);
    border: 1px solid rgba(245, 184, 0, 0.22);
    color: var(--accent-yellow);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.weaver-change-btn {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.weaver-change-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255,255,255,0.22);
}

.weaver-change-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.14);
    border-color: rgba(245, 184, 0, 0.35);
}

@media (max-width: 768px) {
    .scheme-line {
        flex-direction: column;
        gap: 8px;
    }
    .scheme-line__meta {
        justify-content: flex-start;
    }
    .weaver-type-row {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
}

/* Q8: scheme + next/back in same row */
.family-nav-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.family-nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .family-nav-row {
        grid-template-columns: 1fr;
    }
    .family-nav-actions {
       justify-content: space-between;
    }
}

/* Lottie Player Container */
#lottie-success {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
}

/* Responsive Mobile Multi-Step (kept in the high-density block above) */
/* Accordion System */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.accordion-header {
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.accordion-header:hover { background: rgba(255, 255, 255, 0.05); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .accordion-content {
    max-height: 5000px;
    padding: 0 18px 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Benefit Summary Specifics - Enhanced Responsive Architecture */
.benefit-summary-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center;
    max-width: 800px !important;
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

.candidate-hero {
    margin-bottom: 32px;
    position: relative;
    width: 100%;
}

.candidate-hero-img-wrapper {
    width: 100%;
    max-width: 340px;
    height: clamp(280px, 50vw, 380px);
    border-radius: 16px;
    border: 2px solid rgba(245,184,0,0.35);
    overflow: hidden;
    margin: 0 auto 0;
    background: #1a1f2e;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,184,0,0.1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.candidate-hero-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Gradient overlay at bottom of portrait */
.candidate-hero-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(10,14,24,0.92) 0%, rgba(10,14,24,0.5) 55%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Text overlay inside the image wrapper */
.candidate-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 18px 20px;
    text-align: left;
}

.candidate-hero-party-badge {
    background: var(--accent-orange);
    color: white;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.candidate-hero-cons-title {
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}

.candidate-hero-name {
    font-size: clamp(20px, 5vw, 30px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

/* ===== TN ELECTION BANNER ===== */
.election-banner {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(245,184,0,0.3);
    box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,184,0,0.08);
    background: linear-gradient(135deg, #0d1525 0%, #1a2540 50%, #0d1525 100%);
    position: relative;
}

.election-banner-top-stripe {
    height: 6px;
    background: linear-gradient(90deg, #000000 0%, #000000 33%, #ffffff 33%, #ffffff 66%, #FF0000 66%, #FF0000 100%);
}

.election-banner-bottom-stripe {
    height: 6px;
    background: linear-gradient(90deg, #FF0000 0%, #FF0000 33%, #ffffff 33%, #ffffff 66%, #000000 66%, #000000 100%);
}

.election-banner-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    position: relative;
    padding: 20px 16px 16px;
}

.election-banner-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.election-banner-photo-frame {
    width: clamp(240px, 60vw, 400px);
    height: clamp(280px, 70vw, 400px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a2a50 0%, #0a1020 100%);
    border-radius: 12px;
    border: 5px solid transparent;
    border-image: linear-gradient(to bottom, #000000 0%, #000000 33%, #ffffff 33%, #ffffff 66%, #FF0000 66%, #FF0000 100%) 1;
    box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.election-banner-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Bottom gradient on photo */
.election-banner-photo-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(10,16,32,0.7) 0%, transparent 100%);
    pointer-events: none;
}

.election-banner-cons {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 1.2;
    font-family: var(--tiro-tamil-style);
    margin-top: 4px;
}

.election-banner-name {
    font-size: clamp(18px, 4.5vw, 26px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.election-banner-party-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255,255,255,0.65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    margin-top: 2px;
}

@media (max-width: 500px) {
    .election-banner-body {
        padding: 16px 12px 12px;
    }
    .election-banner-center {
        gap: 8px;
    }
    .election-banner-photo-frame {
        width: clamp(210px, 65vw, 340px);
        height: clamp(210px, 75vw, 340px);
    }
    .election-banner-cons {
        font-size: clamp(14px, 3.5vw, 18px);
    }
    .election-banner-name {
        font-size: clamp(16px, 4vw, 22px);
    }
}

.benefit-summary-subtitle {
    font-size: clamp(11px, 3.5vw, 16px);
    font-weight: 800;
    margin-bottom: 12px;
    font-family: var(--fraunces-style);
    color: #9CA3AF;
    line-height: 1.3;
}

.benefit-shine-box {
    background: rgba(45, 33, 27, 0.4);
    border: 2px solid var(--accent-yellow);
    border-radius: 20px;
    padding: clamp(16px, 4vw, 24px) 10px;
    margin-bottom: 20px;
    position: relative;
}

.benefit-direct-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-yellow);
    color: black;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
}

.summary-accordion {
    text-align: left;
}

.summary-accordion-item {
    margin-top: 10px;
}

.summary-list {
    padding: 10px;
    color: #D1D5DB;
    font-size: clamp(11px, 2.5vw, 12px);
    line-height: 1.9;
    list-style: none;
}

.btn-home-return {
    margin-top: 20px;
}

.benefit-amount-calc {
    font-size: clamp(32px, 8vw, 72px);
    line-height: 1;
    letter-spacing: -2px;
    color: var(--accent-yellow);
    font-family: var(--fraunces-style);
    filter: drop-shadow(0 0 15px rgba(245, 184, 0, 0.3));
}

/* Selected District Badge */
.selected-district-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 184, 0, 0.1);
    border: 1px solid rgba(245, 184, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--accent-yellow);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Shimmer Shine Animation - Glassy Effect */
.benefit-shine-box {
    position: relative;
    overflow: hidden;
}

.benefit-shine-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.0) 70%,
        transparent 100%
    );
    animation: shine-sweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    15% {
        left: 100%;
        opacity: 1;
    }
    20% {
        left: 100%;
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@media (max-width:575.98px) {
    
 .live-badge {
    font-size: 11px !important;
 }
	     .btn-survey-start, .btn-nav-back {
	        padding: 8px 18px !important;
	     }
	         .feature-item { font-size: 8px; }
	         .feature-item svg {
	            width: 14px !important;
	            height: 14px !important;
	         }
	         /* Survey question view: tighter typography + option cards */
	         #survey-form-view .progress-bar-container span {
	            font-size: 12px !important;
	         }
	         .survey-card {
	            padding: 16px 14px !important;
	         }
	         .question-number-badge {
	            font-size: 16px !important;
	            margin-bottom: 6px !important;
	         }
	         .survey-card .question-header {
	            font-size: 16px !important;
	            line-height: 1.25 !important;
	            margin-bottom: 16px !important;
	         }
	         .options-grid {
	            gap: 10px !important;
	         }
	         .option-card {
	            padding: 10px 12px !important;
	            gap: 10px !important;
	            border-width: 2px !important;
	         }
	         .radio-circle,
	         .checkbox-box {
	            width: 16px !important;
	            height: 16px !important;
	         }
	         .option-main-text {
	            font-size: 14px !important;
	         }
	         .survey-nav-footer {
	            margin-top: 18px !important;
	         }
	         .premium-select {
	            font-size: 14px !important;
	            padding: 14px 16px !important;
	            background-position: right 16px center !important;
	            background-size: 18px 18px !important;
	         }
	         .premium-select option,
	         .premium-select optgroup {
	            font-size: 14px;
	         }
	         .teaser-lottie {
	            width: 120px;
	            height: 120px;
	         }
	         .teaser-desc {
	            font-size: 13px;
	         }
	         .teaser-actions {
	            flex-direction: column;
	         }
	         .teaser-actions .teaser-btn-secondary,
	         .teaser-actions .teaser-btn-primary {
	            max-width: none;
	            width: 100%;
	         }
	         #lottie-success {
	            width: 130px;
	            height: 130px;
	         }
	         .resend-otp-link {
	            font-size: 12px !important;
	            letter-spacing: 0 !important;
	            line-height: 1.4 !important;
	            max-width: 260px;
	            text-align: center;
	         }
	         .change-number-link {
	            font-size: 11px !important;
	            line-height: 1.4 !important;
	            max-width: 260px;
	            text-align: center;
	         }
	         .tamil-title {
	   
	    margin-bottom: 10px;
	   margin-top: 10px; 
}
.accordion-item.active .accordion-content {
    padding: 5px !important;
}
/* Reduce vertical density so options fit without scroll */
#survey-form-view .progress-bar-container {
    margin-bottom: 34px !important;
}
/* 4-Box OTP Input Style */
.otp-box {
    width: 54px;
    height: 54px;
}
.btn-nav-back {
    font-size: 14px !important;
}
    .mobile-input-group input {
        font-size: 15px !important;
    }
    .mobile-input-group .prefix {
    font-size: 15px !important;
    }
      .hero-description{
        margin: 0 auto 28px !important;
    }
}
