/* Quiz Funnel Builder - Public Styles */

.qfb-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Splash Screen */
.qfb-splash-screen {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    display: none;
}

.qfb-splash-screen.qfb-active {
    display: block;
}

.qfb-splash-content {
    max-width: 600px;
    margin: 0 auto;
}

.qfb-quiz-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.qfb-quiz-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Progress Bar */
.qfb-progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 30px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.qfb-progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.qfb-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Questions */
.qfb-questions-wrapper {
    position: relative;
    min-height: 400px;
}

.qfb-question {
    display: none;
    animation: fadeIn 0.4s ease;
}

.qfb-question.qfb-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qfb-question-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.qfb-question-image img {
    width: 100%;
    height: auto;
    display: block;
}

.qfb-question-text {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a202c;
    line-height: 1.4;
}

/* Answers */
.qfb-answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qfb-answer {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qfb-answer:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.qfb-answer.qfb-selected {
    border-color: #667eea;
    background: #f7fafc;
}

.qfb-answer img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.qfb-answer-text {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    flex: 1;
}

/* Opt-in Gate */
.qfb-optin-gate {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    animation: fadeIn 0.4s ease;
}

.qfb-optin-gate h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #1a202c;
}

.qfb-optin-gate p {
    font-size: 18px;
    color: #718096;
    margin-bottom: 30px;
}

.qfb-optin-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qfb-optin-form input {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.qfb-optin-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Results */
.qfb-results {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    animation: fadeIn 0.4s ease;
}

.qfb-result-image {
    margin-bottom: 30px;
}

.qfb-result-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.qfb-result-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
}

.qfb-result-description {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
}

/* Social Share */
.qfb-social-share {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.qfb-social-share p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #718096;
}

.qfb-share {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 5px;
}

.qfb-share-facebook {
    background: #1877f2;
    color: white;
}

.qfb-share-twitter {
    background: #1da1f2;
    color: white;
}

.qfb-share-linkedin {
    background: #0077b5;
    color: white;
}

.qfb-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button */
.qfb-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.qfb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.qfb-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .qfb-quiz-container {
        padding: 15px;
    }
    
    .qfb-quiz-title {
        font-size: 28px;
    }
    
    .qfb-question-text {
        font-size: 22px;
    }
    
    .qfb-answer {
        padding: 15px;
    }
    
    .qfb-answer-text {
        font-size: 16px;
    }
    
    .qfb-result-title {
        font-size: 28px;
    }
}

/* True/False Questions */
.qfb-answers-true_false {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qfb-answer-true,
.qfb-answer-false {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 160px;
}

.qfb-answer-true {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.qfb-answer-false {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
}

.qfb-answer-true:hover,
.qfb-answer-false:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.qfb-answer-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
}

.qfb-answer-true .qfb-answer-text,
.qfb-answer-false .qfb-answer-text {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

/* Slider Questions */
.qfb-answers-slider {
    display: block;
}

.qfb-slider-container {
    padding: 40px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.qfb-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.qfb-slider-label-min,
.qfb-slider-label-max {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.qfb-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #ef4444 0%, #fbbf24 50%, #10b981 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 20px;
}

.qfb-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.qfb-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.qfb-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.qfb-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.qfb-slider-value {
    text-align: center;
    margin-bottom: 30px;
}

.qfb-slider-value-text {
    display: inline-block;
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
}

.qfb-slider-continue {
    text-align: center;
}

.qfb-slider-next {
    padding: 15px 60px;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qfb-answers-true_false {
        grid-template-columns: 1fr;
    }
    
    .qfb-slider-labels {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .qfb-slider-value-text {
        font-size: 36px;
    }
}

/* Opt-in form enhancements */
.qfb-optin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.qfb-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.qfb-button-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

.qfb-button-secondary {
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
}

.qfb-button-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.qfb-optin-privacy {
    text-align: center;
    margin-top: 15px;
    color: #9ca3af;
}

.qfb-optin-content input[type="text"],
.qfb-optin-content input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.qfb-optin-content input[type="text"]:focus,
.qfb-optin-content input[type="email"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 480px) {
    .qfb-optin-actions {
        gap: 10px;
    }
}
