.hdv2-pf-guest-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
}

.hdv2-cah-page:has([data-hdv2-pf-wizard]) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.hdv2-cah-page:has([data-hdv2-pf-wizard]) .hdv2-cah-provider,
.hdv2-cah-page:has([data-hdv2-pf-wizard]) .hdv2-sidebar-inset {
    height: 100%;
    min-height: 0;
}

.hdv2-cah-main:has([data-hdv2-pf-wizard]) {
    flex: 1;
    min-height: 0;
    padding: 0.75rem 2rem 0.85rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hdv2-pf {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hdv2-pf-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.hdv2-pf-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0;
    margin-bottom: 0.5rem;
    border-bottom: 0;
    background: none;
    flex-shrink: 0;
}

.hdv2-pf-card__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: hsl(217 70% 40%);
}

.hdv2-pf-card__title {
    margin: 0 0 0.2rem;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-card__desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--hdv2-cah-muted, hsl(220 10% 40%));
    max-width: 42rem;
}

.hdv2-pf-card__step-label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hdv2-cah-muted, hsl(220 10% 40%));
    padding-top: 0.15rem;
}

.hdv2-pf-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0;
    margin-bottom: 0.65rem;
    flex-shrink: 0;
}

.hdv2-pf-progress__bar {
    height: 0.25rem;
    border-radius: 999px;
    background: var(--hdv2-cah-border, hsl(220 13% 91%));
    transform-origin: left center;
    transition: background 0.35s ease, transform 0.35s ease;
}

.hdv2-pf-progress__bar.is-active {
    background: hsl(217.2 91.2% 59.8%);
    animation: hdv2PfProgressPop 0.35s ease;
}

.hdv2-pf-pane {
    padding: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hdv2-pf-pane[hidden] {
    display: none !important;
}

.hdv2-pf-pane:not(.is-active) {
    display: none;
}

.hdv2-pf-pane.is-active {
    display: flex;
}

.hdv2-pf-pane.is-active.hdv2-pf-pane-animate {
    animation: hdv2PfPaneIn 0.28s ease;
}

.hdv2-pf-pane__title {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
    flex-shrink: 0;
}

.hdv2-pf-pane__desc {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--hdv2-cah-muted, hsl(220 10% 40%));
    flex-shrink: 0;
}

.hdv2-pf-intents {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--hdv2-cah-border, hsl(220 13% 91%));
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.hdv2-pf-intent {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 0.65rem;
    min-height: 3.75rem;
    border: 0;
    border-bottom: 1px solid var(--hdv2-cah-border, hsl(220 13% 91%));
    border-radius: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    appearance: none;
    cursor: pointer;
    transition: background 0.18s ease;
    flex-shrink: 0;
}

.hdv2-pf-intent__radio {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    border: 2px solid var(--hdv2-cah-border, hsl(220 13% 82%));
    background: transparent;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hdv2-pf-intent__body {
    flex: 1;
    min-width: 0;
}

.hdv2-pf-intent:hover {
    background: hsl(217.2 91.2% 59.8% / 0.04);
}

.hdv2-pf-intent.is-selected {
    background: hsl(217.2 91.2% 59.8% / 0.06);
}

.hdv2-pf-intent.is-selected .hdv2-pf-intent__radio {
    border-color: hsl(217.2 91.2% 59.8%);
    background: hsl(217.2 91.2% 59.8%);
    box-shadow: inset 0 0 0 3px var(--hdv2-cah-card, hsl(0 0% 100%));
}

.hdv2-pf-intent--enter {
    opacity: 0;
    animation: hdv2PfItemIn 0.34s ease forwards;
    animation-delay: var(--hdv2-pf-delay, 0ms);
}

.hdv2-pf-intent__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-intent__desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--hdv2-cah-muted, hsl(220 10% 40%));
}

.hdv2-pf-questions {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.hdv2-pf-question--enter {
    opacity: 0;
    animation: hdv2PfItemIn 0.34s ease forwards;
    animation-delay: var(--hdv2-pf-delay, 0ms);
}

.hdv2-pf-question__label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hdv2-pf-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--hdv2-cah-border, hsl(220 13% 91%));
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hdv2-pf-option:hover {
    border-color: hsl(217.2 91.2% 59.8% / 0.45);
    transform: translateY(-1px);
}

.hdv2-pf-option.is-selected {
    border-color: hsl(217.2 91.2% 59.8%);
    background: hsl(217.2 91.2% 59.8%);
    color: #fff;
    transform: translateY(0);
}

.hdv2-pf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--hdv2-cah-border, hsl(220 13% 91%));
    flex-shrink: 0;
}

.hdv2-pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 0.58rem;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.hdv2-pf-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hdv2-pf-btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
}

.hdv2-pf-btn--primary {
    border-color: hsl(217.2 91.2% 59.8%);
    background: hsl(217.2 91.2% 59.8%);
    color: #fff;
}

.hdv2-pf-btn--primary:hover:not(:disabled) {
    background: hsl(217.2 91.2% 52%);
    border-color: hsl(217.2 91.2% 52%);
    color: #fff;
}

.hdv2-pf-btn--ghost {
    border-color: var(--hdv2-cah-border, hsl(220 13% 91%));
    background: transparent;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-btn--ghost:hover {
    border-color: hsl(217.2 91.2% 59.8% / 0.45);
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.hdv2-pf-results[hidden] {
    display: none !important;
}

.hdv2-pf-result {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hdv2-cah-border, hsl(220 13% 91%));
    border-radius: 0.75rem;
    background: var(--hdv2-cah-card, hsl(0 0% 100%));
    padding: 1rem;
    min-height: 100%;
}

.hdv2-pf-result--enter {
    opacity: 0;
    animation: hdv2PfItemIn 0.38s ease forwards;
    animation-delay: var(--hdv2-pf-delay, 0ms);
}

.hdv2-pf-result.is-featured {
    border-color: hsl(217.2 91.2% 59.8%);
    box-shadow: 0 8px 24px hsl(217 91% 50% / 0.12);
}

.hdv2-pf-result__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: hsl(217 100% 96%);
    color: hsl(217 70% 40%);
}

.hdv2-pf-result.is-featured .hdv2-pf-result__badge {
    background: hsl(217.2 91.2% 59.8%);
    color: #fff;
}

.hdv2-pf-result__name {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-result__price {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hdv2-cah-fg, hsl(220 26% 14%));
}

.hdv2-pf-result__price small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--hdv2-cah-muted, hsl(220 10% 40%));
}

.hdv2-pf-result__reasons {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex: 1;
}

.hdv2-pf-result__reasons li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--hdv2-cah-muted, hsl(220 10% 40%));
}

.hdv2-pf-result__reasons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: hsl(217.2 91.2% 59.8%);
}

.hdv2-pf-result__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid hsl(217.2 91.2% 59.8%);
    background: hsl(217.2 91.2% 59.8%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.hdv2-pf-result__cta.is-secondary {
    background: transparent;
    color: hsl(217.2 91.2% 59.8%);
}

.hdv2-pf-result__cta:hover {
    background: hsl(217.2 91.2% 52%);
    border-color: hsl(217.2 91.2% 52%);
    color: #fff;
}

.hdv2-pf-result__cta.is-secondary:hover {
    background: hsl(217.2 91.2% 59.8% / 0.08);
    color: hsl(217.2 91.2% 52%);
}

.hdv2-pf-domain-result {
    border: 1px solid var(--hdv2-cah-border, hsl(220 13% 91%));
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(155 60% 96% / 0.85) 0%, transparent 55%);
    padding: 1.25rem;
}

.hdv2-pf-domain-result[hidden] {
    display: none !important;
}

.hdv2-pf-domain-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.hdv2-pf-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid hsl(38 92% 50% / 0.35);
    background: hsl(48 96% 89%);
    color: hsl(26 83% 26%);
    font-size: 0.82rem;
    line-height: 1.5;
}

.hdv2-pf-alert[hidden] {
    display: none !important;
}

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

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

@keyframes hdv2PfProgressPop {
    from {
        transform: scaleX(0.65);
    }
    to {
        transform: scaleX(1);
    }
}

:root[data-hdv2-theme="dark"] .hdv2-pf-card__eyebrow {
    color: hsl(213 94% 78%);
}

:root[data-hdv2-theme="dark"] .hdv2-pf-intent.is-selected .hdv2-pf-intent__radio {
    box-shadow: inset 0 0 0 3px var(--hdv2-cah-bg, hsl(220 26% 10%));
}

:root[data-hdv2-theme="dark"] .hdv2-pf-alert {
    color: hsl(45 90% 78%);
    background: hsl(40 55% 18%);
    border-color: hsl(40 50% 26%);
}

@media (prefers-reduced-motion: reduce) {
    .hdv2-pf-pane.is-active.hdv2-pf-pane-animate,
    .hdv2-pf-intent--enter,
    .hdv2-pf-question--enter,
    .hdv2-pf-result--enter,
    .hdv2-pf-progress__bar.is-active {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .hdv2-pf-option:hover,
    .hdv2-pf-btn--primary:not(:disabled):hover {
        transform: none;
    }
}

@media (max-width: 900px) {
    .hdv2-pf-results {
        grid-template-columns: 1fr;
    }
}

.hdv2-pf-pane[data-hdv2-pf-pane="result"].is-active,
.hdv2-pf-pane[data-hdv2-pf-pane="questions"].is-active {
    overflow-y: auto;
}

@media (max-width: 768px) {
    .hdv2-cah-page:has([data-hdv2-pf-wizard]) {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .hdv2-cah-main:has([data-hdv2-pf-wizard]) {
        overflow: visible;
        padding-bottom: 1.5rem;
    }

    .hdv2-pf-intents {
        overflow-y: visible;
    }

    .hdv2-pf-card__head {
        flex-direction: column;
    }

    .hdv2-pf-actions .hdv2-pf-btn {
        width: 100%;
    }
}
