.pe-section {
    --pe-purple: #4F1E60;
    --pe-purple-soft: #6b2d82;
    --pe-purple-muted: #8b6a9a;
    --pe-yellow: #f5e042;
    --pe-yellow-hover: #e5d02e;
    --pe-bg: #f8f2fb;
    --pe-card: #ffffff;
    --pe-text: #2a1833;
    --pe-border: rgba(79, 30, 96, 0.12);
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
    background: linear-gradient(165deg, #faf5fc 0%, #efe3f5 45%, #f7f0e8 100%);
}

.pe-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(245, 224, 66, 0.18), transparent 60%),
        radial-gradient(ellipse 45% 50% at 5% 80%, rgba(79, 30, 96, 0.1), transparent 55%);
}

.pe-header {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.pe-header__title {
    margin: 0 0 12px;
    color: var(--pe-purple);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.35;
}

.pe-header__subtitle {
    margin: 0 0 10px;
    color: var(--pe-purple-soft);
    font-size: 1.05rem;
    font-weight: 600;
}

.pe-header__intro {
    margin: 0;
    color: var(--pe-purple-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.pe-disabled {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    text-align: center;
    background: var(--pe-card);
    border-radius: 18px;
    border: 1px solid var(--pe-border);
    color: var(--pe-purple-muted);
}

.pe-wizard {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    background: var(--pe-card);
    border-radius: 24px;
    border: 1px solid var(--pe-border);
    box-shadow: 0 24px 48px rgba(79, 30, 96, 0.1);
    padding: 28px 28px 32px;
}

.pe-progress {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pe-border);
    overflow-x: auto;
}

.pe-progress__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 64px;
    opacity: 0.45;
    transition: opacity 0.25s ease;
}

.pe-progress__item.is-active,
.pe-progress__item.is-done {
    opacity: 1;
}

.pe-progress__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: #efe6f3;
    color: var(--pe-purple);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pe-progress__item.is-active .pe-progress__dot {
    background: var(--pe-purple);
    color: #fff;
    transform: scale(1.08);
}

.pe-progress__item.is-done .pe-progress__dot {
    background: var(--pe-yellow);
    color: var(--pe-purple);
}

.pe-progress__label {
    font-size: 0.75rem;
    color: var(--pe-purple-muted);
    white-space: nowrap;
}

.pe-progress__item.is-active .pe-progress__label {
    color: var(--pe-purple);
    font-weight: 700;
}

.pe-step__title {
    margin: 0 0 8px;
    color: var(--pe-purple);
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.pe-step__hint {
    margin: 0 0 20px;
    text-align: center;
    color: var(--pe-purple-muted);
    font-size: 0.9rem;
}

.pe-cards {
    display: grid;
    gap: 14px;
    margin: 20px 0 28px;
}

.pe-cards--site,
.pe-cards--urgency {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pe-cards--tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pe-cards--addons {
    grid-template-columns: 1fr;
}

.pe-card {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.pe-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pe-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #fcfaff 0%, #f6f0fa 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 100%;
}

.pe-card:hover .pe-card__body {
    border-color: rgba(79, 30, 96, 0.25);
    transform: translateY(-2px);
}

.pe-card.is-selected .pe-card__body,
.pe-card input:checked + .pe-card__body {
    border-color: var(--pe-purple);
    box-shadow: 0 10px 28px rgba(79, 30, 96, 0.12);
    background: linear-gradient(180deg, #fff 0%, #f3eaf8 100%);
}

.pe-card__title {
    color: var(--pe-purple);
    font-weight: 800;
    font-size: 1.02rem;
}

.pe-card__desc {
    color: var(--pe-purple-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.pe-card__meta {
    margin-top: 4px;
    color: var(--pe-purple-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.pe-card--check .pe-card__body::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(79, 30, 96, 0.3);
    background: #fff;
}

.pe-card--check {
    position: relative;
}

.pe-card--check .pe-card__body {
    padding-right: 48px;
}

.pe-card--check input:checked + .pe-card__body::before,
.pe-card--check.is-selected .pe-card__body::before {
    background: var(--pe-yellow);
    border-color: var(--pe-purple);
    box-shadow: inset 0 0 0 3px var(--pe-purple);
}

.pe-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pe-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pe-btn:hover {
    transform: translateY(-1px);
}

.pe-btn--primary {
    background: var(--pe-purple);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 30, 96, 0.25);
}

.pe-btn--primary:hover {
    background: var(--pe-purple-soft);
    color: #fff;
}

.pe-btn--accent {
    background: var(--pe-yellow);
    color: var(--pe-purple);
    box-shadow: 0 10px 24px rgba(245, 224, 66, 0.35);
}

.pe-btn--accent:hover {
    background: var(--pe-yellow-hover);
    color: var(--pe-purple);
}

.pe-btn--ghost {
    background: transparent;
    color: var(--pe-purple);
    border: 1.5px solid rgba(79, 30, 96, 0.2);
}

.pe-btn--ghost:hover {
    background: #f3eaf8;
}

.pe-btn--block {
    width: 100%;
}

.pe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pe-result__range {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 10px 14px;
    margin: 24px 0 12px;
    padding: 24px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pe-purple) 0%, #6b2d82 100%);
    color: #fff;
}

.pe-result__min,
.pe-result__max {
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 800;
}

.pe-result__sep {
    opacity: 0.75;
    font-size: 0.95rem;
}

.pe-result__center {
    text-align: center;
    color: var(--pe-purple-muted);
    margin: 0 0 20px;
}

.pe-result__center strong {
    color: var(--pe-purple);
}

.pe-result__summary {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    border: 1px solid var(--pe-border);
    border-radius: 14px;
    overflow: hidden;
}

.pe-result__summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pe-border);
    font-size: 0.92rem;
    color: var(--pe-purple-muted);
}

.pe-result__summary li:last-child {
    border-bottom: none;
}

.pe-result__summary strong {
    color: var(--pe-purple);
    font-weight: 700;
    text-align: left;
}

.pe-result__note {
    text-align: center;
    color: var(--pe-purple-soft);
    font-size: 0.92rem;
    margin: 0 0 18px;
}

.pe-result__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.pe-lead {
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbf7fd 0%, #f3ebf7 100%);
    border: 1px solid var(--pe-border);
}

.pe-lead__title {
    margin: 0 0 6px;
    color: var(--pe-purple);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
}

.pe-lead__subtitle {
    margin: 0 0 18px;
    text-align: center;
    color: var(--pe-purple-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.pe-field {
    margin-bottom: 14px;
}

.pe-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--pe-purple);
    font-size: 0.88rem;
    font-weight: 700;
}

.pe-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(79, 30, 96, 0.18);
    border-radius: 12px;
    background: #fff;
    color: var(--pe-text);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pe-field input:focus {
    outline: none;
    border-color: var(--pe-purple);
    box-shadow: 0 0 0 3px rgba(79, 30, 96, 0.12);
}

.pe-feedback {
    min-height: 1.4em;
    margin: 0 0 12px;
    font-size: 0.88rem;
    text-align: center;
}

.pe-feedback.is-error,
.pe-feedback--error {
    color: #b42318;
}

.pe-feedback.is-success {
    color: #067647;
}

.pe-lead__success {
    text-align: center;
    padding: 16px 8px;
}

.pe-lead__success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--pe-yellow);
    color: var(--pe-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}

.pe-lead__success p {
    margin: 0;
    color: var(--pe-purple);
    font-weight: 600;
    line-height: 1.7;
}

.pe-result__loading {
    text-align: center;
    padding: 40px 16px;
    color: var(--pe-purple-muted);
}

.pe-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border: 3px solid rgba(79, 30, 96, 0.15);
    border-top-color: var(--pe-purple);
    border-radius: 50%;
    animation: pe-spin 0.8s linear infinite;
}

@keyframes pe-spin {
    to { transform: rotate(360deg); }
}

.pe-step {
    animation: pe-fade 0.35s ease;
}

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

@media (max-width: 720px) {
    .pe-section {
        padding: 48px 0 64px;
    }

    .pe-wizard {
        padding: 20px 16px 24px;
        border-radius: 18px;
    }

    .pe-cards--site,
    .pe-cards--urgency,
    .pe-cards--tiers {
        grid-template-columns: 1fr;
    }

    .pe-progress__label {
        display: none;
    }

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

    .pe-btn {
        width: 100%;
    }
}
