// Poll Frontend Styles

.simpleform-poll-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;

    .poll-wrapper {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .poll-thank-you-banner {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border-bottom: 1px solid #10b981;
        padding: 16px 20px;

        .thank-you-content {
            display: flex;
            align-items: center;
            gap: 12px;

            .thank-you-icon {
                font-size: 24px;
                animation: bounce 2s infinite;
            }

            .thank-you-text {
                flex: 1;

                strong {
                    color: #065f46;
                    font-size: 16px;
                    font-weight: 600;
                    display: block;
                    margin-bottom: 2px;
                }

                p {
                    color: #047857;
                    font-size: 14px;
                    margin: 0;
                }
            }
        }
    }

    .poll-featured-image {
        width: 100%;
        height: 250px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .poll-header {
        padding: 30px;
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
        text-align: center;

        .poll-title {
            margin: 0 0 10px 0;
            font-size: 26px;
            font-weight: 700;
        }

        .poll-description {
            margin: 0;
            font-size: 15px;
            opacity: 0.9;
        }
    }

    .poll-content {
        padding: 30px;
    }

    .poll-answers {
        display: flex;
        flex-direction: column;
        gap: 12px;

        .poll-answer-option {
            display: flex;
            align-items: center;
            padding: 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;

            &:hover {
                border-color: #f5576c;
                background: #fef2f2;
            }

            input[type="radio"],
            input[type="checkbox"] {
                margin-right: 12px;
                width: 20px;
                height: 20px;
                cursor: pointer;

                &:disabled {
                    cursor: not-allowed;
                    opacity: 0.5;
                }
            }

            &.disabled {
                opacity: 0.7;
                cursor: not-allowed;

                input[type="radio"],
                input[type="checkbox"] {
                    cursor: not-allowed;
                }

                .answer-content {
                    color: #9ca3af;
                }
            }

            .answer-content {
                display: flex;
                align-items: center;
                gap: 12px;
                flex: 1;

                .answer-image {
                    width: 60px;
                    height: 60px;
                    object-fit: cover;
                    border-radius: 6px;
                }

                .answer-text {
                    font-size: 16px;
                    color: #374151;
                }
            }

            input:checked~.answer-content {
                font-weight: 600;
                color: #f5576c;
            }
        }
    }

    .poll-footer {
        padding: 20px 30px;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;
        text-align: center;

        .poll-submit-btn {
            padding: 14px 40px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;

            &:hover:not(:disabled) {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
            }

            &:active:not(:disabled) {
                transform: translateY(0);
            }

            &:disabled {
                background: #9ca3af;
                cursor: not-allowed;
                transform: none;
                box-shadow: none;
                opacity: 0.7;
            }
        }
    }

    .poll-results-container {
        padding: 30px;

        .poll-results-content {
            h3 {
                margin: 0 0 10px 0;
                font-size: 24px;
                color: #1f2937;
                text-align: center;
            }

            .total-votes {
                text-align: center;
                font-size: 14px;
                color: #6b7280;
                margin: 0 0 30px 0;
            }

            .results-list {
                display: flex;
                flex-direction: column;
                gap: 20px;

                .result-item {
                    .result-header {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        margin-bottom: 8px;

                        .result-text {
                            font-size: 16px;
                            font-weight: 600;
                            color: #1f2937;
                        }

                        .result-stats {
                            display: flex;
                            gap: 12px;
                            font-size: 14px;

                            .percentage {
                                font-weight: 700;
                                color: #f5576c;
                            }

                            .count {
                                color: #6b7280;
                            }
                        }
                    }

                    .result-bar {
                        width: 100%;
                        height: 12px;
                        background: #e5e7eb;
                        border-radius: 6px;
                        overflow: hidden;

                        .result-bar-fill {
                            height: 100%;
                            background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
                            transition: width 0.6s ease;
                        }
                    }
                }
            }
        }
    }

    .poll-message {
        padding: 30px;
        text-align: center;
        font-size: 18px;
        color: #10b981;
    }

    .poll-error {
        padding: 20px;
        background: #fee2e2;
        color: #991b1b;
        border-radius: 8px;
        text-align: center;
    }

    // Login Required Styles (matching quiz styles)
    .poll-login-required {
        padding: 60px 30px;
        text-align: center;
        background: linear-gradient(135deg, #fef7f0 0%, #fff2e6 100%);
        border: 2px solid #fed7aa;
        border-radius: 12px;
        margin: 20px;

        .login-required-content {
            max-width: 450px;
            margin: 0 auto;

            h3 {
                color: #ea580c;
                font-size: 28px;
                margin-bottom: 20px;
                font-weight: 700;
                text-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
            }

            p {
                color: #7c2d12;
                font-size: 18px;
                margin-bottom: 30px;
                line-height: 1.6;
                font-weight: 500;
            }

            .poll-login-btn {
                display: inline-block;
                padding: 16px 40px;
                background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
                color: white;
                text-decoration: none;
                border-radius: 10px;
                font-weight: 700;
                font-size: 16px;
                transition: all 0.3s ease;
                box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
                text-transform: uppercase;
                letter-spacing: 0.5px;

                &:hover {
                    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
                    color: white;
                    text-decoration: none;
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
                }

                &:active {
                    transform: translateY(0);
                }
            }
        }
    }

    // Already Voted Styles (matching quiz styles)
    .poll-already-voted {
        padding: 60px 30px;
        text-align: center;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 2px solid #fbbf24;
        border-radius: 12px;
        margin: 20px;

        .already-voted-content {
            max-width: 500px;
            margin: 0 auto;

            h3 {
                color: #d97706;
                font-size: 28px;
                margin-bottom: 20px;
                font-weight: 700;
                text-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
            }

            p {
                color: #92400e;
                font-size: 18px;
                margin-bottom: 30px;
                line-height: 1.6;
                font-weight: 500;
            }

            .poll-revote-btn {
                display: inline-block;
                padding: 16px 40px;
                background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                color: white;
                border: none;
                border-radius: 10px;
                font-weight: 700;
                font-size: 16px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
                text-transform: uppercase;
                letter-spacing: 0.5px;

                &:hover {
                    background: linear-gradient(135deg, #059669 0%, #047857 100%);
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
                }

                &:active {
                    transform: translateY(0);
                }
            }
        }
    }
}

// Responsive
@media (max-width: 768px) {
    .simpleform-poll-container {
        margin: 20px auto;
        padding: 10px;

        .poll-header {
            padding: 20px;

            .poll-title {
                font-size: 20px;
            }
        }

        .poll-content {
            padding: 20px;
        }

        .poll-answers {
            .poll-answer-option {
                padding: 12px;

                .answer-content {
                    .answer-text {
                        font-size: 14px;
                    }
                }
            }
        }

        // Mobile coupon code styles
        .poll-reward .reward-content .coupon-code {
            padding: 20px 16px;
            margin: 20px 0;

            &::before {
                left: 16px;
                font-size: 10px;
                padding: 3px 6px;
            }

            &::after {
                right: 10px;
                font-size: 10px;
            }

            strong {
                font-size: 22px;
                letter-spacing: 2px;
            }
        }

        // Mobile thank you content
        .poll-completed .poll-message .thank-you-content {
            .thank-you-icon {
                font-size: 36px;
            }

            h3 {
                font-size: 20px;
            }

            p {
                font-size: 14px;
            }
        }

        // Mobile thank you banner
        .poll-thank-you-banner {
            padding: 12px 16px;

            .thank-you-content {
                gap: 10px;

                .thank-you-icon {
                    font-size: 20px;
                }

                .thank-you-text {
                    strong {
                        font-size: 14px;
                    }

                    p {
                        font-size: 12px;
                    }
                }
            }
        }
    }
}

// User Information Section
.poll-user-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;

    h3 {
        font-size: 18px;
        color: #111827;
        margin: 0 0 16px 0;
        font-weight: 600;
    }

    .user-info-fields {
        display: flex;
        flex-direction: column;
        gap: 16px;

        .form-field {
            display: flex;
            flex-direction: column;
            gap: 6px;

            label {
                font-size: 14px;
                font-weight: 500;
                color: #374151;

                .required {
                    color: #f5576c;
                }
            }

            input {
                padding: 12px 14px;
                border: 2px solid #e5e7eb;
                border-radius: 6px;
                font-size: 14px;
                transition: all 0.2s;

                &:hover {
                    border-color: #d1d5db;
                }

                &:focus {
                    outline: none;
                    border-color: #f5576c;
                    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
                }

                &::placeholder {
                    color: #9ca3af;
                }
            }
        }
    }

    @media (min-width: 640px) {
        .user-info-fields {
            flex-direction: row;
            gap: 16px;

            .form-field {
                flex: 1;
            }
        }
    }
}

// Poll Completed Message
.poll-completed {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;

    .poll-featured-image {
        width: 100%;
        height: 200px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .poll-header {
        padding: 30px;
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
        text-align: center;

        .poll-title {
            margin: 0 0 10px 0;
            font-size: 26px;
            font-weight: 700;
        }

        .poll-description {
            margin: 0;
            font-size: 15px;
            opacity: 0.9;
        }
    }

    .poll-message {
        padding: 40px 30px;
        text-align: center;
        background: #f9fafb;

        .thank-you-content {
            .thank-you-icon {
                font-size: 48px;
                margin-bottom: 16px;
                animation: bounce 2s infinite;
            }

            h3 {
                font-size: 24px;
                color: #10b981;
                margin: 0 0 16px 0;
                font-weight: 700;
            }

            p {
                font-size: 16px;
                color: #6b7280;
                margin: 0 0 12px 0;
                line-height: 1.5;

                &:last-child {
                    margin-bottom: 0;
                }

                &.sub-message {
                    font-size: 14px;
                    color: #9ca3af;
                    font-style: italic;
                }
            }
        }
    }

    .poll-results-section {
        padding: 30px;
        background: #fff;
        border-top: 1px solid #e5e7eb;

        .poll-results-content {
            h3 {
                margin: 0 0 10px 0;
                font-size: 24px;
                color: #1f2937;
                text-align: center;
            }

            .total-votes {
                text-align: center;
                font-size: 14px;
                color: #6b7280;
                margin: 0 0 30px 0;
            }

            .results-list {
                display: flex;
                flex-direction: column;
                gap: 20px;

                .result-item {
                    .result-header {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        margin-bottom: 8px;

                        .result-text {
                            font-size: 16px;
                            font-weight: 600;
                            color: #1f2937;
                        }

                        .result-stats {
                            display: flex;
                            gap: 12px;
                            font-size: 14px;

                            .percentage {
                                font-weight: 700;
                                color: #f5576c;
                            }

                            .count {
                                color: #6b7280;
                            }
                        }
                    }

                    .result-bar {
                        width: 100%;
                        height: 12px;
                        background: #e5e7eb;
                        border-radius: 6px;
                        overflow: hidden;

                        .result-bar-fill {
                            height: 100%;
                            background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
                            transition: width 0.6s ease;
                        }
                    }
                }
            }
        }
    }
}

// Poll Reward (Coupon Code)
.poll-reward {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;

    .poll-header {
        padding: 30px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        text-align: center;

        .poll-title {
            margin: 0 0 10px 0;
            font-size: 26px;
            font-weight: 700;
        }
    }

    .reward-content {
        padding: 40px 30px;
        text-align: center;

        h3 {
            font-size: 24px;
            color: #10b981;
            margin: 0 0 16px 0;
            font-weight: 700;
        }

        p {
            font-size: 16px;
            color: #6b7280;
            margin: 0 0 20px 0;

            &:last-child {
                margin-bottom: 0;
            }
        }

        .coupon-code {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px dashed #f59e0b;
            border-radius: 12px;
            padding: 24px;
            margin: 24px 0;
            font-family: 'Courier New', monospace;
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);

            &:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
                background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
            }

            &::before {
                content: '🎟️';
                position: absolute;
                top: -8px;
                left: 20px;
                background: #f59e0b;
                color: white;
                padding: 4px 8px;
                border-radius: 6px;
                font-size: 12px;
                font-weight: bold;
            }

            &::after {
                content: 'Click to copy';
                position: absolute;
                top: 8px;
                right: 12px;
                font-size: 11px;
                color: #92400e;
                opacity: 0.7;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                font-weight: 500;
            }

            strong {
                font-size: 28px;
                color: #92400e;
                font-weight: 700;
                letter-spacing: 3px;
                text-shadow: 1px 1px 2px rgba(146, 64, 14, 0.1);
                display: block;
                text-align: center;
                margin-top: 8px;
            }

            &.copied {
                background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
                border-color: #10b981;

                &::after {
                    content: 'Copied!';
                    color: #065f46;
                }

                strong {
                    color: #065f46;
                }
            }
        }

        small {
            font-size: 14px;
            color: #9ca3af;
        }
    }
}

// Custom Modal Styles for Poll
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;

    &.visible {
        opacity: 1;
    }

    .custom-modal {
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        width: 90%;
        overflow: hidden;
        transform: scale(0.9);
        transition: transform 0.3s ease;

        &.success {
            border-top: 4px solid #10b981;
        }

        &.error {
            border-top: 4px solid #ef4444;
        }

        &.info {
            border-top: 4px solid #3b82f6;
        }

        .custom-modal-header {
            padding: 20px 20px 0 20px;

            h3 {
                margin: 0;
                font-size: 18px;
                font-weight: 600;
                color: #1f2937;
            }
        }

        .custom-modal-body {
            padding: 10px 20px 20px 20px;
            font-size: 14px;
            color: #6b7280;
            line-height: 1.5;
        }

        .custom-modal-progress {
            height: 3px;
            background: #e5e7eb;
            overflow: hidden;

            .custom-modal-progress-indicator {
                height: 100%;
                width: 0%;
                background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
            }
        }
    }

    &.visible .custom-modal {
        transform: scale(1);
    }
}

// Animation for poll transitions
.poll-wrapper,
.poll-completed,
.poll-reward {
    animation: fadeInUp 0.5s ease-out;
}

.coupon-code {
    animation: slideInScale 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

// Loading state for submit button
.poll-submit-btn {
    &.loading {
        opacity: 0.7;
        cursor: not-allowed;
        pointer-events: none;

        &::after {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 8px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

// Multiple Questions Survey Styles
.poll-wrapper.multiple-questions {
    .survey-questions {
        display: flex;
        flex-direction: column;
        gap: 32px;

        .survey-question {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 24px;
            transition: all 0.3s ease;

            &:hover {
                border-color: #cbd5e1;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }

            .question-header {
                margin-bottom: 20px;

                .question-title {
                    font-size: 18px;
                    font-weight: 600;
                    color: #1e293b;
                    margin: 0 0 8px 0;
                    display: flex;
                    align-items: center;
                    gap: 8px;

                    .question-number {
                        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
                        color: white;
                        width: 28px;
                        height: 28px;
                        border-radius: 50%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 14px;
                        font-weight: 700;
                        flex-shrink: 0;
                    }

                    .required {
                        color: #f5576c;
                        font-size: 16px;
                        margin-left: 4px;
                    }
                }

                .question-description {
                    font-size: 14px;
                    color: #64748b;
                    margin: 0;
                    line-height: 1.5;
                }
            }

            .question-answers {
                display: flex;
                flex-direction: column;
                gap: 12px;

                .poll-answer-option {
                    display: flex;
                    align-items: center;
                    padding: 16px;
                    border: 2px solid #e5e7eb;
                    border-radius: 8px;
                    cursor: pointer;
                    transition: all 0.2s;
                    background: white;

                    &:hover {
                        border-color: #f5576c;
                        background: #fef2f2;
                    }

                    input[type="radio"],
                    input[type="checkbox"] {
                        margin-right: 12px;
                        width: 20px;
                        height: 20px;
                        cursor: pointer;

                        &:disabled {
                            cursor: not-allowed;
                            opacity: 0.5;
                        }
                    }

                    &.disabled {
                        opacity: 0.7;
                        cursor: not-allowed;

                        input[type="radio"],
                        input[type="checkbox"] {
                            cursor: not-allowed;
                        }

                        .answer-content {
                            color: #9ca3af;
                        }
                    }

                    .answer-content {
                        display: flex;
                        align-items: center;
                        gap: 12px;
                        flex: 1;

                        .answer-image {
                            width: 60px;
                            height: 60px;
                            object-fit: cover;
                            border-radius: 6px;
                        }

                        .answer-text {
                            font-size: 16px;
                            color: #374151;
                        }
                    }

                    input:checked~.answer-content {
                        font-weight: 600;
                        color: #f5576c;
                    }
                }
            }
        }
    }

    // Step-by-step mode for multiple questions
    &.step-by-step {
        .survey-question {
            background: white;
            border: none;
            padding: 0;

            .question-header {
                text-align: center;
                margin-bottom: 24px;

                .question-title {
                    font-size: 20px;
                    justify-content: center;

                    .question-number {
                        width: 32px;
                        height: 32px;
                        font-size: 16px;
                    }
                }
            }
        }
    }
}

// Mobile responsive for multiple questions
@media (max-width: 768px) {
    .poll-wrapper.multiple-questions {
        .survey-questions {
            gap: 24px;

            .survey-question {
                padding: 20px;

                .question-header {
                    .question-title {
                        font-size: 16px;

                        .question-number {
                            width: 24px;
                            height: 24px;
                            font-size: 12px;
                        }
                    }

                    .question-description {
                        font-size: 13px;
                    }
                }

                .question-answers {
                    .poll-answer-option {
                        padding: 12px;

                        .answer-content {
                            .answer-text {
                                font-size: 14px;
                            }
                        }
                    }
                }
            }
        }

        &.step-by-step {
            .survey-question {
                .question-header {
                    .question-title {
                        font-size: 18px;

                        .question-number {
                            width: 28px;
                            height: 28px;
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
}

// Survey completion styles
.survey-completed {
    .survey-results-section {
        .survey-results-content {
            h3 {
                margin: 0 0 20px 0;
                font-size: 24px;
                color: #1f2937;
                text-align: center;
            }

            .survey-summary {
                background: #f8fafc;
                border-radius: 8px;
                padding: 20px;
                margin-bottom: 24px;

                .summary-item {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 8px 0;
                    border-bottom: 1px solid #e2e8f0;

                    &:last-child {
                        border-bottom: none;
                    }

                    .summary-label {
                        font-weight: 600;
                        color: #374151;
                    }

                    .summary-value {
                        color: #6b7280;
                    }
                }
            }

            .question-results {
                display: flex;
                flex-direction: column;
                gap: 24px;

                .question-result {
                    background: white;
                    border: 1px solid #e5e7eb;
                    border-radius: 8px;
                    padding: 20px;

                    .question-result-header {
                        margin-bottom: 16px;

                        .question-result-title {
                            font-size: 16px;
                            font-weight: 600;
                            color: #1f2937;
                            margin: 0 0 4px 0;
                        }

                        .question-result-stats {
                            font-size: 14px;
                            color: #6b7280;
                        }
                    }

                    .question-result-answers {
                        display: flex;
                        flex-direction: column;
                        gap: 12px;

                        .result-item {
                            .result-header {
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                margin-bottom: 6px;

                                .result-text {
                                    font-size: 14px;
                                    font-weight: 500;
                                    color: #374151;
                                }

                                .result-stats {
                                    display: flex;
                                    gap: 8px;
                                    font-size: 12px;

                                    .percentage {
                                        font-weight: 600;
                                        color: #f5576c;
                                    }

                                    .count {
                                        color: #6b7280;
                                    }
                                }
                            }

                            .result-bar {
                                width: 100%;
                                height: 8px;
                                background: #e5e7eb;
                                border-radius: 4px;
                                overflow: hidden;

                                .result-bar-fill {
                                    height: 100%;
                                    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
                                    transition: width 0.6s ease;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
// Step-by-Step Poll Styles
.poll-wrapper.step-by-step {
    .step-navigation {
        padding: 20px 30px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;

        &.progress-bar {
            .progress-container {
                width: 100%;
                height: 8px;
                background: #e2e8f0;
                border-radius: 4px;
                overflow: hidden;
                margin-bottom: 8px;

                .progress-bar-fill {
                    height: 100%;
                    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
                    transition: width 0.3s ease;
                }
            }

            .progress-text {
                text-align: center;
                font-size: 14px;
                color: #64748b;
                font-weight: 500;
            }
        }

        &.numbers,
        &.custom-labels {
            .step-indicators {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 16px;
                margin-bottom: 12px;

                .step-indicator {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 6px;

                    .step-circle {
                        width: 32px;
                        height: 32px;
                        border-radius: 50%;
                        background: #e2e8f0;
                        color: #64748b;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 14px;
                        font-weight: 600;
                        transition: all 0.3s ease;
                    }

                    .step-label {
                        font-size: 12px;
                        color: #64748b;
                        text-align: center;
                        max-width: 80px;
                        line-height: 1.2;
                    }

                    &.active {
                        .step-circle {
                            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
                            color: white;
                            transform: scale(1.1);
                        }

                        .step-label {
                            color: #f5576c;
                            font-weight: 600;
                        }
                    }

                    &.completed {
                        .step-circle {
                            background: #10b981;
                            color: white;
                        }

                        .step-label {
                            color: #10b981;
                        }
                    }
                }
            }

            .step-text {
                text-align: center;
                font-size: 14px;
                color: #64748b;
                font-weight: 500;
            }
        }
    }

    .poll-step-content {
        .step-header {
            text-align: center;
            margin-bottom: 24px;

            h3 {
                font-size: 20px;
                color: #1e293b;
                margin: 0 0 8px 0;
                font-weight: 600;
            }

            .step-description {
                font-size: 14px;
                color: #64748b;
                margin: 0;
            }
        }
    }

    .step-footer {
        display: flex;
        justify-content: center;
        padding: 20px 30px;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;

        .step-buttons {
            display: flex;
            gap: 12px;
            align-items: center;

            .poll-prev-btn,
            .poll-next-btn,
            .poll-submit-btn {
                padding: 12px 24px;
                border: none;
                border-radius: 8px;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s;
            }

            .poll-prev-btn {
                background: #e2e8f0;
                color: #64748b;

                &:hover {
                    background: #cbd5e1;
                    transform: translateY(-1px);
                }
            }

            .poll-next-btn {
                background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
                color: white;

                &:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
                }
            }

            .poll-submit-btn {
                background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
                color: white;

                &:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
                }
            }
        }
    }
}

// Mobile responsive for step-by-step
@media (max-width: 768px) {
    .poll-wrapper.step-by-step {
        .step-navigation {
            padding: 16px 20px;

            &.numbers,
            &.custom-labels {
                .step-indicators {
                    gap: 12px;

                    .step-indicator {
                        .step-circle {
                            width: 28px;
                            height: 28px;
                            font-size: 12px;
                        }

                        .step-label {
                            font-size: 11px;
                            max-width: 60px;
                        }
                    }
                }
            }
        }

        .poll-step-content {
            .step-header {
                h3 {
                    font-size: 18px;
                }

                .step-description {
                    font-size: 13px;
                }
            }
        }

        .step-footer {
            padding: 16px 20px;

            .step-buttons {
                gap: 8px;

                .poll-prev-btn,
                .poll-next-btn,
                .poll-submit-btn {
                    padding: 10px 20px;
                    font-size: 13px;
                }
            }
        }
    }


    // Step transition animations
    .poll-step-content {
        animation: stepSlideIn 0.3s ease-out;
    }

    @keyframes stepSlideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    // Login Required Styles (matching quiz styles)
    .poll-login-required {
        padding: 60px 30px;
        text-align: center;
        background: linear-gradient(135deg, #fef7f0 0%, #fff2e6 100%);
        border: 2px solid #fed7aa;
        border-radius: 12px;
        margin: 20px;

        .login-required-content {
            max-width: 450px;
            margin: 0 auto;

            h3 {
                color: #ea580c;
                font-size: 28px;
                margin-bottom: 20px;
                font-weight: 700;
                text-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
            }

            p {
                color: #7c2d12;
                font-size: 18px;
                margin-bottom: 30px;
                line-height: 1.6;
                font-weight: 500;
            }

            .poll-login-btn {
                display: inline-block;
                padding: 16px 40px;
                background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
                color: white;
                text-decoration: none;
                border-radius: 10px;
                font-weight: 700;
                font-size: 16px;
                transition: all 0.3s ease;
                box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
                text-transform: uppercase;
                letter-spacing: 0.5px;

                &:hover {
                    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
                    color: white;
                    text-decoration: none;
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
                }

                &:active {
                    transform: translateY(0);
                }
            }
        }
    }

    // Already Voted Styles (matching quiz styles)
    .poll-already-voted {
        padding: 60px 30px;
        text-align: center;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 2px solid #fbbf24;
        border-radius: 12px;
        margin: 20px;

        .already-voted-content {
            max-width: 500px;
            margin: 0 auto;

            h3 {
                color: #d97706;
                font-size: 28px;
                margin-bottom: 20px;
                font-weight: 700;
                text-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
            }

            p {
                color: #92400e;
                font-size: 18px;
                margin-bottom: 30px;
                line-height: 1.6;
                font-weight: 500;
            }

            .poll-revote-btn {
                display: inline-block;
                padding: 16px 40px;
                background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                color: white;
                border: none;
                border-radius: 10px;
                font-weight: 700;
                font-size: 16px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
                text-transform: uppercase;
                letter-spacing: 0.5px;

                &:hover {
                    background: linear-gradient(135deg, #059669 0%, #047857 100%);
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
                }

                &:active {
                    transform: translateY(0);
                }
            }
        }
    }

    // Custom Modal Styles (matching quiz styles)
    .custom-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);

        &.visible {
            opacity: 1;
            visibility: visible;
        }

        .custom-modal {
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            width: 90%;
            max-height: 80vh;
            overflow: hidden;
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s ease;

            &.success {
                border-top: 4px solid #10b981;
            }

            &.error {
                border-top: 4px solid #ef4444;
            }

            &.info {
                border-top: 4px solid #3b82f6;
            }

            .custom-modal-header {
                padding: 20px 24px 0;

                h3 {
                    margin: 0;
                    font-size: 20px;
                    font-weight: 700;
                    color: #1f2937;
                }
            }

            .custom-modal-body {
                padding: 16px 24px 24px;
                color: #6b7280;
                font-size: 16px;
                line-height: 1.5;
            }

            .custom-modal-progress {
                height: 4px;
                background: #f3f4f6;
                overflow: hidden;

                .custom-modal-progress-indicator {
                    height: 100%;
                    width: 0%;
                    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
                    transition: width linear;
                }
            }
        }

        &.visible .custom-modal {
            transform: scale(1) translateY(0);
        }
    }

    // Mobile Responsive for Login Required and Already Voted
    @media (max-width: 768px) {
        .poll-login-required,
        .poll-already-voted {
            padding: 40px 20px;
            margin: 10px;

            .login-required-content,
            .already-voted-content {
                h3 {
                    font-size: 24px;
                }

                p {
                    font-size: 16px;
                }

                .poll-login-btn,
                .poll-revote-btn {
                    padding: 14px 32px;
                    font-size: 15px;
                }
            }
        }

        .custom-modal-overlay {
            .custom-modal {
                margin: 20px;
                max-width: none;
                width: calc(100% - 40px);

                .custom-modal-header {
                    padding: 16px 20px 0;

                    h3 {
                        font-size: 18px;
                    }
                }

                .custom-modal-body {
                    padding: 12px 20px 20px;
                    font-size: 15px;
                }
            }
        }
    }
}