/* ========================================
   Project Profit Leak Quiz Styles
   Modern, Sleek, Professional Design
   ======================================== */

:root {
    --pplq-primary: #2563eb;
    --pplq-primary-dark: #1e40af;
    --pplq-secondary: #10b981;
    --pplq-danger: #ef4444;
    --pplq-text: #1f2937;
    --pplq-text-light: #6b7280;
    --pplq-border: #e5e7eb;
    --pplq-bg: #ffffff;
    --pplq-bg-light: #f9fafb;
    --pplq-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pplq-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Container */
.pplq-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Screen Management */
.pplq-screen {
    display: none;
    animation: pplqFadeIn 0.4s ease-in-out;
}

.pplq-screen.pplq-active {
    display: block;
}

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

/* Welcome Screen */
.pplq-welcome {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
    box-shadow: var(--pplq-shadow-lg);
}

.pplq-hero-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pplq-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.pplq-main-message {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 40px 0;
    opacity: 0.98;
    color: white;
}

/* Testimonial style for the updated welcome message */
.pplq-main-message.pplq-testimonial-style {
    font-size: 36px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 0 30px;
}

.pplq-main-message.pplq-testimonial-style::before {
    content: '"';
    font-size: 80px;
    position: absolute;
    left: -10px;
    top: -30px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.pplq-main-message.pplq-testimonial-style::after {
    content: '"';
    font-size: 80px;
    position: absolute;
    right: -10px;
    bottom: -50px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.pplq-terms {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.6;
}

.pplq-terms a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.pplq-terms a:hover {
    color: white;
    opacity: 1;
}

.pplq-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.pplq-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0.95;
}

/* Buttons */
.pplq-btn {
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

.pplq-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}

.pplq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2);
    background: #10b981;
    color: white;
}

.pplq-btn-secondary {
    background: var(--pplq-primary);
    color: white;
}

.pplq-btn-secondary:hover {
    background: var(--pplq-secondary);
    color: white;
    transform: translateY(-2px);
}

.pplq-btn-ghost {
    background: transparent;
    color: var(--pplq-text-light);
    border: 2px solid var(--pplq-border);
}

.pplq-btn-ghost:hover {
    border-color: var(--pplq-primary);
    color: var(--pplq-primary);
}

.pplq-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Progress Bar */
.pplq-progress-container {
    margin-bottom: 40px;
}

.pplq-progress-bar {
    height: 8px;
    background: var(--pplq-bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.pplq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pplq-primary), var(--pplq-secondary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Questions */
.pplq-question {
    font-size: 26px;
    font-weight: 700;
    color: var(--pplq-text);
    margin: 0 0 30px 0;
    line-height: 1.3;
}

/* Options */
.pplq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.pplq-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.pplq-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pplq-option-text {
    display: block;
    padding: 20px 24px;
    background: white;
    border: 2px solid var(--pplq-border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--pplq-text);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.pplq-option:hover .pplq-option-text {
    border-color: var(--pplq-primary);
    background: var(--pplq-bg-light);
    transform: translateX(4px);
}

.pplq-option input[type="radio"]:checked ~ .pplq-option-text {
    border-color: var(--pplq-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    font-weight: 600;
}

.pplq-option input[type="radio"]:checked ~ .pplq-option-text::before {
    content: '✓';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pplq-primary);
    font-weight: bold;
    font-size: 20px;
}

/* Navigation */
.pplq-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Interstitial Screens */
.pplq-interstitial {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--pplq-shadow-lg);
}

.pplq-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--pplq-secondary), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.pplq-interstitial-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pplq-text);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.pplq-interstitial-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--pplq-text-light);
    margin: 0 0 20px 0;
}

/* Analysis Screen */
.pplq-analysis {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--pplq-shadow-lg);
}

.pplq-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 4px solid var(--pplq-bg-light);
    border-top: 4px solid var(--pplq-primary);
    border-radius: 50%;
    animation: pplqSpin 1s linear infinite;
}

@keyframes pplqSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pplq-analysis-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--pplq-text);
    margin: 0 0 40px 0;
}

.pplq-analysis-items {
    margin: 0 auto 30px;
    max-width: 400px;
}

.pplq-analysis-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--pplq-text);
    animation: pplqCheckAppear 0.5s ease-in-out;
}

.pplq-analysis-item:nth-child(1) { animation-delay: 0.3s; }
.pplq-analysis-item:nth-child(2) { animation-delay: 0.6s; }
.pplq-analysis-item:nth-child(3) { animation-delay: 0.9s; }
.pplq-analysis-item:nth-child(4) { animation-delay: 1.2s; }

@keyframes pplqCheckAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.pplq-check {
    width: 24px;
    height: 24px;
    background: var(--pplq-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.pplq-generating {
    font-size: 16px;
    color: var(--pplq-text-light);
    font-style: italic;
}

/* Email Capture */
.pplq-email-capture {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--pplq-shadow-lg);
}

.pplq-hero-image-result {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pplq-hero-image-result img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.pplq-result-icon {
    font-size: 60px;
    text-align: center;
    margin-bottom: 30px;
}

.pplq-capture-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pplq-text);
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.3;
}

.pplq-risk-area {
    font-size: 18px;
    line-height: 1.6;
    color: var(--pplq-text-light);
    margin: 0 0 30px 0;
    text-align: center;
}

.pplq-risk-area strong {
    color: var(--pplq-primary);
    font-weight: 700;
}

.pplq-capture-subtitle {
    font-size: 16px;
    color: var(--pplq-text-light);
    margin: 0 0 40px 0;
    text-align: center;
}

.pplq-capture-subtitle-small {
    font-size: 15px;
    color: var(--pplq-text-light);
    margin: 30px 0 30px 0;
    text-align: center;
    line-height: 1.5;
}

/* Main heading for email capture screen */
.pplq-capture-main-heading {
    font-size: 28px;
    font-weight: 600;
    color: var(--pplq-text);
    margin: 40px 0;
    text-align: center;
    line-height: 1.5;
    padding: 0 20px;
}

/* Outcome Content */
.pplq-outcome-content {
    background: var(--pplq-bg-light);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
    border-left: 4px solid var(--pplq-primary);
}

.pplq-outcome-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--pplq-primary);
    margin: 0 0 20px 0;
    line-height: 1.4;
    display: block;
}

.pplq-outcome-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--pplq-text);
    margin: 0 0 16px 0;
    display: block;
}

.pplq-outcome-cta {
    font-size: 16px;
    line-height: 1.7;
    color: var(--pplq-text);
    margin: 20px 0 0 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
}

.pplq-outcome-cta strong {
    color: var(--pplq-primary);
    font-weight: 700;
}

/* Form */
.pplq-form {
    max-width: 400px;
    margin: 0 auto;
}

.pplq-form-group {
    margin-bottom: 24px;
}

.pplq-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pplq-text);
    margin-bottom: 8px;
}

.pplq-form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--pplq-border);
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pplq-form-group input:focus {
    outline: none;
    border-color: var(--pplq-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pplq-submit-btn {
    width: 100%;
    margin-top: 12px;
    background: white;
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 32px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}

.pplq-submit-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.3);
}

.pplq-mini-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: pplqSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.pplq-privacy {
    text-align: center;
    font-size: 13px;
    color: var(--pplq-text-light);
    margin: 20px 0 0 0;
}

/* Success Message */
.pplq-success-message {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--pplq-shadow-lg);
}

.pplq-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--pplq-secondary), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.pplq-success-message h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pplq-text);
    margin: 0 0 16px 0;
}

.pplq-success-message p {
    font-size: 18px;
    color: var(--pplq-text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pplq-container {
        padding: 15px;
        margin: 20px auto;
    }

    .pplq-welcome,
    .pplq-interstitial,
    .pplq-analysis,
    .pplq-email-capture {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .pplq-main-message {
        font-size: 26px;
    }

    .pplq-title {
        font-size: 26px;
    }

    .pplq-subtitle {
        font-size: 16px;
    }

    .pplq-question {
        font-size: 22px;
    }

    .pplq-option-text {
        padding: 16px 20px;
        font-size: 15px;
    }

    .pplq-nav {
        flex-direction: column-reverse;
    }

    .pplq-btn {
        width: 100%;
    }

    .pplq-interstitial-title,
    .pplq-capture-title {
        font-size: 24px;
    }
}

/* Print styles */
@media print {
    .pplq-container {
        display: none;
    }
}
