/* FMLA Eligibility Quiz */

.fmla-quiz-card {
    max-width: 600px;
    margin: -32px auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 32px;
    position: relative;
    z-index: 1;
}

/* Question cards */
.fmla-question {
    position: relative;
    padding: 20px 20px 20px 56px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.fmla-question:last-of-type {
    margin-bottom: 0;
}

.fmla-question.answered-yes {
    border-color: #2ea44f;
    background: rgba(46,164,79,0.03);
}

.fmla-question.answered-no {
    border-color: #e53935;
    background: rgba(229,57,53,0.03);
}

.fmla-question.answered-unsure {
    border-color: #f9a825;
    background: rgba(249,168,37,0.03);
}

.fmla-q-number {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B7BB8, #a594d0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fmla-q-text {
    font-size: 16px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 4px;
    line-height: 1.4;
}

.fmla-q-help {
    font-size: 14px;
    color: #695A80;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Toggle buttons */
.fmla-toggle-row {
    display: flex;
    gap: 8px;
}

.fmla-toggle {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    background: #fff;
    color: #3D2F50;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.fmla-toggle:hover {
    border-color: #8B7BB8;
    background: #f5f2fa;
}

.fmla-toggle.selected-yes {
    background: #2ea44f;
    color: #fff;
    border-color: #2ea44f;
}

.fmla-toggle.selected-no {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

.fmla-toggle.selected-unsure {
    background: #f9a825;
    color: #fff;
    border-color: #f9a825;
}

/* Result card */
.fmla-result {
    margin-top: 24px;
    animation: fmlaFadeIn 0.3s ease;
}

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

.fmla-result-inner {
    padding: 24px;
    border-radius: 14px;
    text-align: center;
}

.fmla-result-inner.eligible {
    background: linear-gradient(135deg, rgba(46,164,79,0.08), rgba(76,175,80,0.06));
    border: 1.5px solid rgba(46,164,79,0.25);
}

.fmla-result-inner.not-eligible {
    background: linear-gradient(135deg, rgba(229,57,53,0.08), rgba(230,126,34,0.06));
    border: 1.5px solid rgba(229,57,53,0.25);
}

.fmla-result-inner.maybe {
    background: linear-gradient(135deg, rgba(249,168,37,0.08), rgba(255,193,7,0.06));
    border: 1.5px solid rgba(249,168,37,0.25);
}

.fmla-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fmla-result-badge.eligible {
    background: #2ea44f;
    color: #fff;
}

.fmla-result-badge.not-eligible {
    background: #e53935;
    color: #fff;
}

.fmla-result-badge.maybe {
    background: #f9a825;
    color: #fff;
}

.fmla-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 8px;
}

.fmla-result-text {
    font-size: 15px;
    color: #695A80;
    margin: 0 0 8px;
    line-height: 1.5;
}

.fmla-result-details {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 16px;
}

.fmla-result-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #3D2F50;
    line-height: 1.4;
}

.fmla-result-check {
    flex-shrink: 0;
    font-size: 16px;
}

.fmla-result-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 24px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.fmla-result-cta:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,200,184,0.3);
}

/* Info sections */
.fmla-info-section {
    margin: 24px 0;
    padding: 24px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.fmla-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.fmla-info-icon {
    font-size: 20px;
}

.fmla-info-text {
    font-size: 15px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* Provides grid */
.fmla-provides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fmla-provides-card {
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    background: #faf8ff;
}

.fmla-provides-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.fmla-provides-heading {
    font-size: 14px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 6px;
}

.fmla-provides-text {
    font-size: 13px;
    color: #695A80;
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.fmla-faq {
    padding: 12px 0;
    border-bottom: 1px solid rgba(139,123,184,0.08);
}

.fmla-faq:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fmla-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 4px;
}

.fmla-faq-a {
    font-size: 14px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* CTA grid */
.fmla-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fmla-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.fmla-cta-card:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61,47,80,0.08);
}

.fmla-cta-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.fmla-cta-text {
    font-size: 14px;
    font-weight: 700;
    color: #3D2F50;
}

.fmla-cta-desc {
    font-size: 13px;
    color: #695A80;
    margin-top: 2px;
}

/* Disclaimer */
.fmla-disclaimer {
    margin: 16px 0 0;
    font-size: 12px;
    color: #695A80;
    text-align: center;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
    .fmla-quiz-card {
        margin: -12px 12px 20px;
        padding: 20px;
    }

    .fmla-question {
        padding: 16px 16px 16px 48px;
    }

    .fmla-q-number {
        left: 12px;
        top: 16px;
    }

    .fmla-provides-grid {
        grid-template-columns: 1fr;
    }

    .fmla-cta-grid {
        grid-template-columns: 1fr;
    }

    .fmla-info-section {
        margin: 20px 12px;
    }

    .fmla-result-inner {
        padding: 16px;
    }
}
