/* ==========================================================================
   WooPremium Calculator — Wizard UI
   Theme: WooPremium (serif headings, gold accent var(--wp-gold, #b8960c), dark CTA var(--wp-cta, #1a1a1a))
   ========================================================================== */

/* ---------- Progress bar ---------- */
.wiz-progress {
    padding: 0 0 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eae6df;
}

.wiz-progress__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    counter-reset: wiz-step;
}

.wiz-progress__step {
    display: flex;
    align-items: center;
    position: relative;
    counter-increment: wiz-step;
}

.wiz-progress__step span {
    display: none;
}

.wiz-progress__step::before {
    content: counter(wiz-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eae6df;
    color: #8a837c;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.wiz-progress__step::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 6px;
    background: #eae6df;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.wiz-progress__step:last-child::after {
    display: none;
}

/* Active step */
.wiz-progress__step.is-active::before {
    background: var(--wp-cta, #1a1a1a);
    color: #fff;
}

.wiz-progress__step.is-active span {
    color: var(--wp-cta, #1a1a1a);
}

/* Completed steps */
.wiz-progress__step.is-done::before {
    content: '\2713';
    background: var(--wp-gold, #b8960c);
    color: #fff;
}

.wiz-progress__step.is-done::after {
    background: var(--wp-gold, #b8960c);
}

.wiz-progress__step.is-done span {
    color: #5c5650;
}

/* Step labels hidden — numbered circles + step titles in content are sufficient */

/* Clickable completed steps */
.wiz-progress__step.is-done {
    cursor: pointer;
}

/* ---------- Step panels ---------- */
.wiz-step {
    display: none;
    animation: wizFadeIn 0.25s ease;
}

.wiz-step.is-active {
    display: block;
}

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

/* Step header */
.wiz-step__header {
    margin-bottom: 20px;
}

.wiz-step__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--wp-cta, #1a1a1a);
    margin: 0 0 4px;
    line-height: 1.3;
}

.wiz-step__subtitle {
    font-size: 0.85rem;
    color: #8a837c;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Step 1: Area input ---------- */
.wiz-step .woopremium-calc-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wiz-step .woopremium-calc-area label {
    display: none; /* titel zit al in wiz-step__title */
}

.wiz-step .woopremium-calc-area input {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 12px 16px;
    border: 2px solid #eae6df;
    border-radius: 8px;
    background: #fff;
    color: var(--wp-cta, #1a1a1a);
    transition: border-color 0.15s ease;
    max-width: 200px;
}

.wiz-step .woopremium-calc-area input:focus {
    border-color: var(--wp-gold, #b8960c);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-gold, #b8960c) 12%, transparent);
}

.wiz-area__unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5c5650;
}

/* Meethulp */
.wiz-meethulp {
    background: #f5f3ef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.wiz-meethulp__intro {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: #5c5650;
    line-height: 1.5;
}

.wiz-meethulp__example {
    background: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--wp-cta, #1a1a1a);
}

.wiz-meethulp__details {
    font-size: 0.82rem;
    color: #8a837c;
}

.wiz-meethulp__details summary {
    cursor: pointer;
    font-weight: 600;
    color: #5c5650;
    padding: 4px 0;
}

.wiz-meethulp__details ul {
    margin: 8px 0 0;
    padding-left: 18px;
    line-height: 1.6;
    list-style: disc;
}

/* ---------- Step 2: Service cards ---------- */
.wiz-service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wiz-service-card {
    display: block;
    cursor: pointer;
    border: 2px solid #eae6df;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wiz-service-card:hover {
    border-color: #b5b0a8;
}

.wiz-service-card input[type="radio"] {
    display: none;
}

.wiz-service-card:has(input:checked) {
    border-color: var(--wp-gold, #b8960c);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-gold, #b8960c) 12%, transparent);
}

.wiz-service-card__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wp-cta, #1a1a1a);
    margin-bottom: 4px;
}

.wiz-service-card__desc {
    margin: 0;
    font-size: 0.8rem;
    color: #8a837c;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .wiz-service-cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- Step 4: Plintlengte ---------- */
.wiz-plintlengte {
    background: #f5f3ef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.wiz-plintlengte__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wp-cta, #1a1a1a);
    margin-bottom: 4px;
}

.wiz-plintlengte__help {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #8a837c;
    line-height: 1.5;
}

.wiz-plintlengte__input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiz-plintlengte__input input {
    flex: 1;
    max-width: 140px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 14px;
    border: 2px solid #eae6df;
    border-radius: 8px;
    background: #fff;
    color: var(--wp-cta, #1a1a1a);
}

.wiz-plintlengte__input input:focus {
    border-color: var(--wp-gold, #b8960c);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-gold, #b8960c) 12%, transparent);
}

/* ---------- Step 5: Summary ---------- */
.wiz-summary-area {
    background: #f5f3ef;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.wiz-summary-area__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    color: #5c5650;
}

.wiz-summary-area__row--total {
    border-top: 1px solid #ddd8cf;
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    color: var(--wp-cta, #1a1a1a);
}

/* Price cart — styled in theme context */
.wiz-step .woopremium-calculator-cart {
    background: #fff;
    border: 2px solid #eae6df;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.wiz-step .woopremium_calculator-cart_total {
    font-size: 1.15rem;
}

/* Force single-column layout in wizard sidebar */
.wiz-step .woopremium-cta-wrapper {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    --wprc-cart-cta-meta-cols: 1;
    margin-top: 0;
}

.wiz-step .woopremium-calculator-cart {
    grid-template-columns: 1fr;
    --wprc-cart-cols: 1;
}

.wiz-step #woopremium-direct-order {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--wp-cta, #1a1a1a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wiz-step #woopremium-direct-order:hover {
    background: var(--wp-cta-hover, #333333);
}

.wiz-step .woopremium-calculator-cta-offerte_form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wiz-step .woopremium-calculator-cta-offerte_form input[type="email"] {
    padding: 12px 14px;
    border: 2px solid #eae6df;
    border-radius: 8px;
    font-size: 0.9rem;
}

.wiz-step .woopremium-calculator-cta-offerte_form input[type="email"]:focus {
    border-color: var(--wp-gold, #b8960c);
    outline: none;
}

.wiz-step #woopremium-offerte-request {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    color: var(--wp-cta, #1a1a1a);
    border: 2px solid var(--wp-cta, #1a1a1a);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.wiz-step #woopremium-offerte-request:hover {
    background: var(--wp-cta, #1a1a1a);
    color: #fff;
}

/* ---------- Wizard navigation ---------- */
.wiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 8px;
    margin-top: 8px;
    border-top: 1px solid #eae6df;
}

.wiz-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.wiz-nav__btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.wiz-nav__btn--prev {
    background: transparent;
    color: #5c5650;
}

.wiz-nav__btn--prev:hover {
    background: #f5f3ef;
}

.wiz-nav__btn--next {
    background: var(--wp-cta, #1a1a1a);
    color: #fff;
    margin-left: auto;
}

.wiz-nav__btn--next:hover {
    background: var(--wp-cta-hover, #333333);
}

/* On last step, hide next button */
.wiz-nav--last .wiz-nav__btn--next {
    display: none;
}

/* ---------- Sidebar overrides for wizard ---------- */
.woopremium-calc-sidebar .woopremium-calc-header {
    background: var(--wp-cta, #1a1a1a);
    border-radius: 0;
    padding: 20px 24px;
}

.woopremium-calc-sidebar .woopremium-calc-header h2 {
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.25rem;
}

.woopremium-calc-sidebar .woopremium-calc-close {
    color: #fff !important;
    opacity: 0.7;
}

.woopremium-calc-sidebar .woopremium-calc-close:hover {
    opacity: 1;
}

.woopremium-calc-sidebar .woopremium-calc-content {
    background: #fff;
    padding: 20px 24px;
    margin: 0;
    border-radius: 0;
}

.woopremium-calc-sidebar {
    max-width: min(100vw, 520px);
}

/* Service option notice (material-only / installation-only) */
.wiz-step .service-options__notice {
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f5f3ef;
    color: #5c5650;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid var(--wp-gold, #b8960c);
}

/* ---------- Summary: selected additional products ---------- */
.wiz-summary-additions {
    background: #f9f7f4;
    border: 2px solid #eae6df;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.wiz-summary-additions__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a837c;
    margin-bottom: 8px;
}

.wiz-summary-additions__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--wp-cta, #1a1a1a);
}

.wiz-summary-additions__row + .wiz-summary-additions__row {
    border-top: 1px solid #eae6df;
    margin-top: 4px;
    padding-top: 8px;
}

.wiz-summary-additions__name {
    font-weight: 600;
}

/* ---------- Additional products: horizontal card layout ---------- */
.wiz-step .woopremium-additional-products {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding-block: 8px;
}

.wiz-step .woopremium-additional-product label {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    outline-width: 2px;
}

.wiz-step .woopremium-additional-product .woopremium-additional-product-image {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    flex-shrink: 0;
}

.wiz-step .woopremium-additional-product .woopremium-additional-product-name {
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.wiz-step .woopremium-additional-product .woopremium-additional-product-price {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.wiz-step .woopremium-additional-product .woopremium-additional-product-coverage {
    text-align: left;
    font-size: 0.75rem;
    color: #8a837c;
}

/* ---------- Project properties & service options inside wizard ---------- */
.wiz-step .service-options_wrapper,
.wiz-step .woopremium-property-options-wrapper {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    gap: 8px;
}

.wiz-step .service-options__item label {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 8px;
    border-radius: 6px;
}

.wiz-step .woopremium-project-property-question {
    font-size: 0.9rem;
}

/* Tooltip bubbles: align to the right (open leftward) to stay in view */
.wiz-step .woopremium-tooltip-bubble,
.woopremium-calc-sidebar .woopremium-tooltip-bubble {
    max-width: 220px;
    white-space: normal;
    left: auto !important;
    right: 0;
    transform: none !important;
}

.wiz-step .woopremium-tooltip-bubble::after,
.woopremium-calc-sidebar .woopremium-tooltip-bubble::after {
    left: auto;
    right: 12px;
}

.woopremium-calc-sidebar .woopremium-calc-content {
    overflow-x: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .wiz-progress__step span {
        font-size: 0.6rem;
    }

    .wiz-progress__step::before {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .wiz-progress__step::after {
        top: 11px;
        left: calc(50% + 15px);
        right: calc(-50% + 15px);
    }

    .wiz-step__title {
        font-size: 1.1rem;
    }

    .woopremium-calc-sidebar .woopremium-calc-content {
        padding: 16px;
    }
}
