/**
 * Optimized Survey Elements CSS
 * 
 * OPTIMIZATION FEATURES:
 * ✅ GPU Acceleration (transform, will-change)
 * ✅ CSS Containment
 * ✅ Minimal reflows
 * ✅ Hardware-accelerated animations
 * ✅ Reduced selector complexity
 * 
 * @package Necox_Popup_Templates
 * @since 5.6.0 - PERFORMANCE OPTIMIZED
 */

/* ================================
   PERFORMANCE OPTIMIZATIONS
   ================================ */

/* GPU Acceleration */
.necox-survey-question {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.necox-answer-item {
    will-change: transform, background-color;
    transform: translateZ(0);
}

/* CSS Containment for better paint performance */
.necox-survey-question {
    contain: layout style paint;
}

.necox-answer-options {
    contain: layout style;
}

/* ================================
   BASE STYLES
   ================================ */

.necox-survey-question {
    position: relative;
    background: #ffffff;
    /* padding kaldırıldı - widget kontrolünden gelecek */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.necox-survey-question.necox-optimized {
    /* Mark as optimized */
    --necox-optimized: 1;
}

/* ================================
   QUESTION STYLES
   ================================ */

/* .necox-question-text base styles kaldırıldı - tamamen Elementor typography kontrolüne bırakıldı */
/* Padding ve diğer ayarlar için Elementor'un Advanced > Padding kullanın */

/* Question text as link */
a.necox-question-text {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    display: inline; /* inline-block yerine inline - responsive typography fix */
    font-size: inherit; /* Parent'tan font-size'ı al */
    font-family: inherit; /* Parent'tan font-family'yi al */
    font-weight: inherit; /* Parent'tan font-weight'i al */
    line-height: inherit; /* Parent'tan line-height'ı al */
}

a.necox-question-text:hover {
    text-decoration: none;
}

.necox-question-description {
    font-size: 14px;
    color: #718096;
    /* margin-bottom kaldırıldı - widget kontrolünden gelecek */
    line-height: 1.5;
}

/* ================================
   ANSWER OPTIONS - OPTIMIZED LAYOUT
   ================================ */

.necox-answer-options {
    display: flex;
    /* gap kaldırıldı - widget kontrolünden gelecek */
    flex-wrap: wrap;
    justify-content: center;
    /* margin-top kaldırıldı - widget kontrolünden gelecek */
}

/* Horizontal layout */
.necox-answer-options.necox-layout-horizontal {
    flex-direction: row;
}

/* Vertical layout */
.necox-answer-options.necox-layout-vertical {
    flex-direction: column;
}

/* ================================
   ANSWER ITEMS - BASE
   ================================ */

.necox-answer-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    /* color: #4b5563; - KALDIRILDI: emoji renklerini etkiliyordu */
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hover state - GPU accelerated */
.necox-answer-item:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px) translateZ(0);
}

/* Active state */
.necox-answer-item.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: scale(1.05) translateZ(0);
}

/* Focus state */
.necox-answer-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ================================
   EMOJI SPECIFIC
   ================================ */

.necox-emoji-item {
    flex-direction: column;
    min-width: 80px;
}

.necox-emoji-icon {
    font-size: 48px;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    filter: none !important;
}

.necox-emoji-item:hover .necox-emoji-icon {
    transform: scale(1.2) translateZ(0);
}

.necox-emoji-item.active .necox-emoji-icon {
    transform: scale(1.3) translateZ(0);
}

.necox-emoji-label {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* ================================
   STAR SPECIFIC
   ================================ */

.necox-star-item {
    flex-direction: column;
    min-width: 60px;
}

.necox-star-icon {
    font-size: 36px;
    /* filter: grayscale(100%); kaldırıldı - color kontrolünden gelecek */
    transition: filter 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    filter: none !important;
}

.necox-star-item:hover .necox-star-icon,
.necox-star-item.hover .necox-star-icon,
.necox-star-item.active .necox-star-icon {
    /* filter: grayscale(0%); kaldırıldı - color kontrolünden gelecek */
    transform: scale(1.1) translateZ(0);
}

.necox-star-label {
    font-size: 11px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* ================================
   HEART SPECIFIC
   ================================ */

.necox-heart-item {
    flex-direction: column;
    min-width: 70px;
}

.necox-heart-icon {
    font-size: 40px;
    /* filter: grayscale(100%); kaldırıldı - color kontrolünden gelecek */
    transition: filter 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    filter: none !important;
}

.necox-heart-item:hover .necox-heart-icon,
.necox-heart-item.active .necox-heart-icon {
    /* filter: grayscale(0%); kaldırıldı - color kontrolünden gelecek */
    transform: scale(1.15) translateZ(0);
}

.necox-heart-label {
    font-size: 11px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* ================================
   THUMB SPECIFIC
   ================================ */

.necox-thumb-item {
    flex-direction: column;
}

.necox-thumb-icon {
    font-size: 36px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    filter: none !important;
}

.necox-thumb-item:hover .necox-thumb-icon {
    transform: scale(1.2) translateZ(0);
}

.necox-thumb-label {
    font-size: 11px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* ================================
   NPS SPECIFIC - OPTIMIZED
   ================================ */

.necox-answer-type-nps {
    flex-direction: column;
    align-items: stretch;
}

.necox-nps-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.necox-nps-buttons {
    display: flex;
    /* gap kaldırıldı - widget kontrolünden gelecek */
    justify-content: space-between;
}

.necox-nps-btn {
    flex: 1;
    min-width: 40px;
    padding: 10px 8px;
}

/* ================================
   LIKERT SPECIFIC
   ================================ */

.necox-likert-btn {
    min-width: 50px;
}

/* ================================
   YES/NO SPECIFIC
   ================================ */

.necox-yesno-item {
    min-width: 120px;
    font-size: 18px;
}

/* ================================
   CHOICE SPECIFIC - OPTIMIZED
   ================================ */

.necox-choice-item {
    justify-content: flex-start;
    text-align: left;
    /* width kaldırıldı - widget kontrolünden gelecek */
}

/* Vertical layout - full width by default */
.necox-answer-options.necox-layout-vertical .necox-choice-item {
    width: 100%;
}

/* Horizontal layout - auto width, wrap */
.necox-answer-options.necox-layout-horizontal {
    flex-wrap: wrap;
    align-items: flex-start;
}

.necox-choice-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

/* Radio style (single choice) - circular indicator */
.necox-answer-type-choice[data-choice-type="radio"] .necox-choice-indicator {
    border-radius: 50%;
}

/* Checkbox style (multi choice) - square indicator */
.necox-answer-type-choice[data-choice-type="checkbox"] .necox-choice-indicator {
    border-radius: 4px;
}

.necox-choice-item.active .necox-choice-indicator {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* Radio checked - dot inside */
.necox-answer-type-choice[data-choice-type="radio"] .necox-choice-item.active .necox-choice-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Checkbox checked - checkmark */
.necox-answer-type-choice[data-choice-type="checkbox"] .necox-choice-item.active .necox-choice-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.necox-choice-text {
    flex: 1;
}

/* Choice media */
.necox-choice-icon {
    font-size: 24px;
}

.necox-choice-image {
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.necox-choice-image.necox-lazy-image {
    opacity: 0.5;
}

.necox-lazy-video-wrapper {
    position: relative;
    overflow: hidden;
}

/* ================================
   ANIMATIONS - GPU ACCELERATED
   ================================ */

/* Fade In */
@keyframes necoxFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.necox-survey-question[data-entrance-animation="fadeIn"] {
    animation: necoxFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide Up */
@keyframes necoxSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.necox-survey-question[data-entrance-animation="slideUp"] {
    animation: necoxSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom In */
@keyframes necoxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

.necox-survey-question[data-entrance-animation="zoomIn"] {
    animation: necoxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Animations */
.necox-survey-question[data-hover-animation="scale"] .necox-answer-item:hover {
    transform: scale(1.08) translateZ(0);
}

.necox-survey-question[data-hover-animation="glow"] .necox-answer-item:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ================================
   NEUMORPHISM EFFECT
   ================================ */

.necox-survey-question.necox-neumorphism {
    background: #e0e5ec;
    border: none;
}

.necox-neumorphism .necox-answer-item {
    background: #e0e5ec;
    box-shadow: 8px 8px 16px rgba(163, 177, 198, 0.6),
                -8px -8px 16px rgba(255, 255, 255, 0.5);
}

.necox-neumorphism .necox-answer-item:hover {
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6),
                inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.necox-neumorphism .necox-answer-item.active {
    box-shadow: inset 6px 6px 12px rgba(163, 177, 198, 0.6),
                inset -6px -6px 12px rgba(255, 255, 255, 0.5);
}

/* ================================
   GLASSMORPHISM EFFECT
   ================================ */

.necox-survey-question.necox-glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.necox-glassmorphism .necox-answer-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.necox-glassmorphism .necox-answer-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.necox-glassmorphism .necox-answer-item.active {
    background: rgba(255, 255, 255, 0.4);
}

/* ================================
   VIDEO BACKGROUND - OPTIMIZED
   ================================ */

.necox-video-bg {
    pointer-events: none;
}

.necox-video-bg iframe,
.necox-video-bg video {
    pointer-events: none;
}

.necox-lazy-video .necox-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #94a3b8;
}

.necox-lazy-video .necox-video-placeholder::before {
    content: '📹';
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ================================
   RESPONSIVE - OPTIMIZED
   ================================ */

@media (max-width: 768px) {
    /* Survey widget mobil genişlik */
    .necox-survey-question {
        /* padding kaldırıldı - widget responsive kontrolünden gelecek */
    }
    
    /* Popup container mobil genişlik */
    .necox-cpt-popup,
    .necox-cpt-survey,
    .elementor-location-popup {
        max-width: 95vw !important;
        width: 95vw !important;
        margin: 0 auto !important;
    }
    
    .necox-answer-options {
        /* gap kaldırıldı - widget responsive kontrolünden gelecek */
    }
    
    .necox-answer-item {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .necox-emoji-icon {
        font-size: 40px;
    }
    
    .necox-star-icon {
        font-size: 32px;
    }
    
    .necox-nps-buttons {
        /* gap kaldırıldı - widget responsive kontrolünden gelecek */
    }
    
    .necox-nps-btn {
        min-width: 32px;
        padding: 8px 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Survey widget çok küçük ekranlar */
    .necox-survey-question {
        /* padding kaldırıldı - widget responsive kontrolünden gelecek */
    }
    
    /* Popup container çok küçük ekranlar */
    .necox-cpt-popup,
    .necox-cpt-survey,
    .elementor-location-popup {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 0 auto !important;
    }
    
    
    .necox-emoji-icon {
        font-size: 36px;
    }
    
    .necox-star-icon {
        font-size: 28px;
    }
    
    .necox-nps-buttons {
        /* gap kaldırıldı - widget responsive kontrolünden gelecek */
    }
    
    .necox-nps-btn {
        min-width: 28px;
        padding: 6px 4px;
        font-size: 12px;
    }
}

/* ================================
   PRINT OPTIMIZATION
   ================================ */

@media print {
    .necox-survey-question {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .necox-video-bg {
        display: none !important;
    }
    
    .necox-answer-item {
        border: 1px solid #ccc;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */

/* Focus visible for keyboard navigation */
.necox-answer-item:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .necox-survey-question,
    .necox-answer-item,
    .necox-emoji-icon,
    .necox-star-icon {
        transition: none;
        animation: none;
    }
    
    .necox-answer-item:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .necox-answer-item {
        border-width: 3px;
    }
    
    .necox-answer-item.active {
        border-width: 4px;
    }
}

/* Survey scrollbar gizle - widget içinde */
.necox-survey-question {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}
.necox-survey-question::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
    width: 0 !important;
    height: 0 !important;
}

/* ================================
   RESPONSIVE - TABLET & MOBILE
   Survey widget viewport fix
   ================================ */

/* Tablet (768px ve altı) */
@media (max-width: 768px) {
    .necox-survey-question {
        /* Elementor responsive width ayarları burada çalışacak */
    }
}


/* ================================
   EMOJI OPACITY FORCE FIX
   Cache-resistant, maximum specificity
   ================================ */

/* Force full opacity on emoji icons - override everything */
.necox-survey-question .necox-answer-item .necox-emoji-icon,
.necox-survey-question .necox-emoji-item .necox-emoji-icon,
button.necox-answer-item .necox-emoji-icon {
    opacity: 1 !important;
    filter: none !important;
}

.necox-survey-question .necox-answer-item .necox-star-icon,
.necox-survey-question .necox-star-item .necox-star-icon,
button.necox-answer-item .necox-star-icon {
    opacity: 1 !important;
    filter: none !important;
}

.necox-survey-question .necox-answer-item .necox-heart-icon,
.necox-survey-question .necox-heart-item .necox-heart-icon,
button.necox-answer-item .necox-heart-icon {
    opacity: 1 !important;
    filter: none !important;
}

.necox-survey-question .necox-answer-item .necox-thumb-icon,
.necox-survey-question .necox-thumb-item .necox-thumb-icon,
button.necox-answer-item .necox-thumb-icon {
    opacity: 1 !important;
    filter: none !important;
}

/* ================================
   CPT SURVEY - QUESTION WIDGET FIX
   Popup içinde transparent görünme sorunu
   ================================ */
.necox-cpt-survey:has(.elementor-widget-necox-survey-question-optimized) .necox-cpt-survey-inner,
.necox-cpt-survey-content:has(.elementor-widget-necox-survey-question-optimized),
.necox-cpt-survey:has(.elementor-widget-necox-slider-rating-v2) .necox-cpt-survey-inner,
.necox-cpt-survey-content:has(.elementor-widget-necox-slider-rating-v2) {
    padding: 0 !important;
    margin: 0 !important;
}

/* ================================
   MODERN SLIDER WIDGET
   ================================ */
.necox-slider-wrapper {
    padding: 10px 0 20px;
    user-select: none;
}

/* Bubble wrapper */
.necox-slider-bubble-wrapper {
    position: relative;
    height: 36px;
    margin-bottom: 8px;
}

.necox-slider-bubble {
    position: absolute;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.08s ease;
    box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}

.necox-slider-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #3b82f6;
    border-bottom: none;
}

/* Track wrapper */
.necox-slider-track-wrapper {
    position: relative;
    padding: 4px 0;
}

/* Native range input - CSS Custom Properties ile kontrol edilir */
.necox-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    display: block;
    cursor: pointer;
    /*
     * Track fill: --ncx-fill-start / --ncx-fill-end gradient için,
     *             --ncx-fill solid renk için (fallback),
     *             --ncx-pct dolum yüzdesi, --ncx-track-bg boş alan rengi
     * NOT: nested gradient geçersiz olduğundan --ncx-fill-start/-end kullanılır
     */
    background: linear-gradient(
        to right,
        var(--ncx-fill-start, #6366f1) 0%,
        var(--ncx-fill-end,   #3b82f6) var(--ncx-pct, 50%),
        var(--ncx-track-bg,   #e2e8f0) var(--ncx-pct, 50%),
        var(--ncx-track-bg,   #e2e8f0) 100%
    );
    border-radius: 50px;
    outline: none;
    border: none;
}

/* Webkit thumb */
.necox-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    box-shadow: none; /* thumb_shadow kapalıyken default; selectors açıkken override eder */
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.necox-slider-input::-webkit-slider-thumb:hover {
    /* thumb_hover_scale selectors ile override edilir; kapalıyken transform yok */
    transform: none;
}

/* Moz thumb */
.necox-slider-input::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: #fff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    box-shadow: none; /* thumb_shadow kapalıyken default */
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Webkit track */
.necox-slider-input::-webkit-slider-runnable-track {
    border-radius: 50px;
    box-shadow: none; /* track_shadow kapalıyken bu default geçerli */
}

/* Moz track + fill */
.necox-slider-input::-moz-range-track {
    border-radius: 50px;
    background: #e2e8f0;
    box-shadow: none; /* track_shadow kapalıyken bu default geçerli */
}
.necox-slider-input::-moz-range-progress {
    border-radius: 50px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
}

/* Labels */
.necox-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.necox-slider-min,
.necox-slider-max {
    font-size: 13px;
    color: #64748b;
}

/* ================================
   SLIDER — SUCCESS / RESULTS / CUSTOM MESAJ
   Popup ile aynı boyutta görünsün
   ================================ */

/* Survey container popup içindeyken tam yüksekliği kaplar */
.necox-survey-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.necox-survey-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* Başarı, sonuç ve özel mesaj kutuları tam yüksekliği kaplar */
.necox-survey-success,
.necox-vote-results,
.necox-custom-message {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 100%;
    box-sizing: border-box;
    padding: 30px 20px;
    text-align: center;
}

/* Sonuçlar kutusu içeriği soldan başlasın */
.necox-vote-results {
    align-items: stretch;
    text-align: left;
}

/* Slider wrapper flex ile kalan alanı kaplar */
.necox-slider-wrapper {
    flex: 1;
}

/* ================================
   SLIDER WIDGET - ÇOKLU SORU (REPEATER)
   ================================ */

/* Her soru bloğu */
.necox-slider-question-item {
    padding: 4px 0;
}

/* Soru başlığı */
.necox-slider-question-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* Soru numarası */
.necox-slider-question-number {
    color: #3b82f6;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

/* Sorular arası ayırıcı çizgi */
.necox-slider-question-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* Sonuçlar — çoklu soru için her soru ayrı blok */
.necox-results-question-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.necox-results-question-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.necox-results-question-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.necox-results-avg-value {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    text-align: center;
    margin-bottom: 4px;
}

.necox-results-vote-count {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 12px;
}

.necox-results-bar-track {
    background: #e2e8f0;
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.necox-results-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border-radius: 50px;
    transition: width 1s ease;
    width: 0%;
}

.necox-results-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

/* ================================
   SLIDER — OY SONRASI DURUM
   ================================ */

/* Oy kullanılınca slider ve form elemanlarını gizle */
.necox-survey-wrapper.ncx-voted .necox-slider-wrapper,
.necox-survey-wrapper.ncx-voted .necox-survey-title,
.necox-survey-wrapper.ncx-voted .necox-survey-description {
    display: none !important;
}

/* Sonuç, başarı, özel mesaj — tam alanı kaplasın */
.necox-survey-wrapper.ncx-voted .necox-vote-results,
.necox-survey-wrapper.ncx-voted .necox-survey-success,
.necox-survey-wrapper.ncx-voted .necox-custom-message {
    flex: 1;
    min-height: 0;
}

/* Sonuç başlığı */
.necox-results-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

/* Her soru bloğu */
.necox-results-question-block {
    margin-bottom: 20px;
}

/* Soru başlığı */
.necox-results-question-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Ortalama değer */
.necox-results-avg-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

/* Oy sayısı */
.necox-results-vote-count {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* Bar track */
.necox-results-bar-track {
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 4px;
}

/* Bar fill */
.necox-results-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

/* Min/Max etiketleri */
.necox-results-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
}

/* Sonuç footer */
.necox-results-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 6px;
}

/* ================================
   SURVEY SLIDER V2 - CPT POPUP FIX
   Transparent arka plan sorunu
   ================================ */
.necox-cpt-survey .elementor-widget-necox-slider-rating-v2 .ncx2-wrapper,
.necox-cpt-survey-inner .elementor-widget-necox-slider-rating-v2 .ncx2-wrapper {
    position: relative !important;
    overflow: hidden !important;
    background: #ffffff;
}

/* Kapat düğmesinin üzerindeki transparent katmanı kaldır */
.necox-cpt-survey .elementor-widget-necox-slider-rating-v2,
.necox-cpt-survey-inner .elementor-widget-necox-slider-rating-v2 {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Sonuçlar / Başarı / Özel mesaj alanı — frontend'de kesinlikle gizli */
.elementor-widget-necox-slider-rating-v2 .ncx2-results-area,
.elementor-widget-necox-slider-rating-v2 .ncx2-success-area,
.elementor-widget-necox-slider-rating-v2 .ncx2-custom-area {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* JS ile gösterildiğinde (inline style) override */
.elementor-widget-necox-slider-rating-v2 .ncx2-results-area[style*="display:flex"],
.elementor-widget-necox-slider-rating-v2 .ncx2-results-area[style*="display: flex"],
.elementor-widget-necox-slider-rating-v2 .ncx2-success-area[style*="display:flex"],
.elementor-widget-necox-slider-rating-v2 .ncx2-success-area[style*="display: flex"],
.elementor-widget-necox-slider-rating-v2 .ncx2-custom-area[style*="display:flex"],
.elementor-widget-necox-slider-rating-v2 .ncx2-custom-area[style*="display: flex"] {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    overflow: visible !important;
}
