.wpfec-widget,
.wpfec-widget * {
    box-sizing: border-box;
}

.wpfec-card {
    width: 100%;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.wpfec-intro-wrap {
    margin-bottom: 24px;
}

.wpfec-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 13px;
    padding: 6px 11px;
    color: #0f766e;
    background: #ecfdf5;
    border-radius: 999px;
    font-size: 0.84em;
    font-weight: 750;
}

.wpfec-title {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
}

.wpfec-intro {
    max-width: 760px;
    margin: 0;
    opacity: 0.78;
}

.wpfec-progress-wrap {
    margin-bottom: 22px;
}

.wpfec-progress-text {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 0.9em;
    font-weight: 650;
}

.wpfec-progress {
    height: 8px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.1);
    border-radius: 999px;
}

.wpfec-progress__fill {
    display: block;
    width: 0;
    height: 100%;
    background: #0f766e;
    border-radius: inherit;
    transition: width 220ms ease;
}

.wpfec-widget [hidden],
.wpfec-question[hidden],
.wpfec-result[hidden],
.wpfec-quiz[hidden],
.wpfec-progress-wrap[hidden],
.wpfec-back[hidden] {
    display: none !important;
}

.wpfec-question__title {
    margin: 0 0 16px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.18;
}

.wpfec-help {
    margin: -8px 0 16px;
    color: #6b7280;
    font-size: 0.94em;
}

.wpfec-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wpfec-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 15px 16px;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.wpfec-option::after {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 999px;
    opacity: 0.28;
}

.wpfec-option:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.wpfec-option.is-selected {
    color: #ffffff;
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.18);
}

.wpfec-option.is-selected::after {
    background: currentColor;
    box-shadow: inset 0 0 0 4px #0f766e;
    opacity: 1;
}

.wpfec-navigation {
    margin-top: 18px;
}

.wpfec-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    opacity: 0.62;
}

.wpfec-back::before {
    content: "←";
}

.wpfec-back:hover {
    opacity: 1;
}

.wpfec-result {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 4px;
    padding: 26px;
    background: #ecfdf5;
    border-radius: 22px;
}

.wpfec-result__eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 0.88em;
    font-weight: 700;
}

.wpfec-result__headline {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
}

.wpfec-result__amount-label {
    margin: 0 0 4px;
    font-size: 0.92em;
    font-weight: 800;
    opacity: 0.62;
}

.wpfec-result__amount {
    margin: 0 0 6px;
    color: #0f766e;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 900;
    line-height: 0.98;
}

.wpfec-result__comparison,
.wpfec-result__sales {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 1.04em;
    font-weight: 650;
}

.wpfec-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.wpfec-metric {
    min-width: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
}

.wpfec-metric span {
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 0.78em;
    font-weight: 750;
}

.wpfec-metric strong {
    display: block;
    font-size: 1.22em;
    line-height: 1.1;
}

.wpfec-breakdown-title {
    margin: 8px 0 10px;
    font-size: 1em;
}

.wpfec-breakdown {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wpfec-breakdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.wpfec-breakdown li span::before {
    content: "✓";
    margin-right: 8px;
    font-weight: 900;
}

.wpfec-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
    padding: 15px 22px;
    color: #ffffff !important;
    background: #0f766e;
    border-radius: 999px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    transition: transform 180ms ease, filter 180ms ease;
}

.wpfec-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.96);
}

.wpfec-disclaimer {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 0.82em;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .wpfec-card {
        padding: 24px;
    }

    .wpfec-options,
    .wpfec-metrics {
        grid-template-columns: 1fr;
    }

    .wpfec-result {
        padding: 20px;
    }
}
