.quote-calculator {
    background: var(--quote-bg);
    position: relative;
    border: 1px solid var(--quote-border);
    border-radius: var(--quote-radius);
    padding: 40px 40px 20px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: var(--quote-shadow);
}

/* Force reset of theme list styles for all lists inside the calculator */
.quote-calculator ul>li,
.moondog-account-message ul>li {
    list-style-type: none !important;
}

/* Wizard Progress Bar */
.wizard-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--quote-border-light);
    border-radius: var(--quote-radius) var(--quote-radius) 0 0;
    overflow: hidden;
    z-index: 5;
}

.wizard-progress-bar .progress-indicator {
    height: 100%;
    background: var(--quote-blue);
    width: 0%;
    /* Start at Step 1 */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-steps .step {
    display: none;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--quote-border);
}

/* Live Result Overlay */
.quote-result-overlay {
    display: none;
    text-align: right;
    padding: 20px 0;
    background: transparent;
    color: var(--quote-text-dark);
    border-top: 1px solid var(--quote-border-light);
    margin-top: 20px;
}

.price-display {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 15px 0 5px;
    color: var(--quote-blue);
    display: inline-block;
}

.reset-calc {
    background: var(--quote-bg-alt);
    color: var(--quote-text-muted);
    border: 1px solid var(--quote-border-medium);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Global Bundle Toast */
.global-bundle-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: var(--quote-blue);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(39, 69, 134, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.global-bundle-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.global-bundle-toast .toast-action-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 800;
    margin-left: 5px;
}

.visible-price-check {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--quote-border-light);
    font-size: 0.8rem;
    color: var(--quote-text-light);
    text-align: center;
}
/* Horizontal Slide Animations */
.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.calculator-steps .step.revealed {
    display: block;
    animation: fadeInStep 0.4s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-steps h4 {
    margin-bottom: 15px;
    color: var(--quote-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Step Navigation & Common Action Wrappers */
.step-nav-actions {
    margin-top: 30px;
    text-align: center;
}

.save-notice {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--quote-text-muted);
    line-height: 1.4;
}

.login-notice {
    font-size: .85rem;
    margin-bottom: 5px;
    color: var(--quote-text-muted);
    opacity: 0.9;

}

.summary-deposit-hero .login-notice a,
.summary-deposit-hero .trust-discussion-cta a {
    color: #fff !important;
    text-decoration: underline !important;
    font-weight: 700;
}

.trust-discussion-cta {
    margin: 15px 0 25px;
    font-size: 0.85rem;
    color: var(--quote-text-muted);
}

.focus-notice-projects {
    margin-top: 20px;
    padding: 20px;
    background: var(--quote-bg-alt);
    border: 1px dashed var(--quote-border);
    border-radius: var(--quote-radius);
    text-align: center;
    color: var(--quote-text-muted);
    font-style: italic;
}

/* Step Specific Layout Elements */
.step-3-glimpse-total {
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--quote-blue);
}

.step-3-upsell-notice {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--quote-text-dark);
}

/* Step 4 Review Feedback & Final Totals */
.review-lock-notice {
    margin: 30px 0;
    padding: 20px;
    background: var(--quote-pink-light);
    border-left: 4px solid var(--quote-pink);
    border-radius: 4px;
}

.contact-instruction {
    margin: 0;
    font-size: 0.95rem;
    color: var(--quote-text-dark);
}

.terms-acceptance-wrapper {
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--quote-text-muted);
}

.calculator-hidden-data {
    display: none !important;
}

.global-nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--quote-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.global-reset-trigger,
.global-continue-trigger {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.global-continue-trigger.is-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.is-disabled {
    pointer-events: none;
}

.quote-calculator select,
.quote-calculator input[type="text"],
.quote-calculator input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--quote-border);
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

/* CF7 Global Cleanup */
.quote-calculator .wpcf7-response-output,
.quote-calculator .wpcf7-mail-sent-ok,
.quote-calculator .wpcf7-mail-sent-ng {
    display: none !important;
}

.quote-calculator .wpcf7-spinner {
    display: none !important;
}

.quote-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.quote-form-actions .wpcf7-submit {
    flex: 1;
    min-width: 150px;
}

.back-step-btn {
    background: var(--quote-bg-alt);
    color: var(--quote-text-muted);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.step-title-desktop {
    display: inline;
}

.step-title-mobile {
    display: none;
}

.step-header-with-nav {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--quote-border-light);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.step-header-with-nav h4 {
    margin-bottom: 0 !important;
}

.step-indicator-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--quote-text-muted);
    width: 100%;
}

.step-header-with-nav h4 {
    margin: 5px 0 0 0 !important;
}

.header-continue {
    font-weight: 800;
    color: var(--quote-pink);
    font-size: 0.85rem;
    margin: 0 0 0 auto;
}

@media (min-width:480px) {
    .global-continue-trigger.header-continue.mobile-only {
        display: none;
    }
}

/* Validation Error Styling */
.quote-calculator span.wpcf7-not-valid-tip {
    color: var(--quote-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
    display: block;
    text-align: left;
}

.summary-deposit-hero .quote-calculator span.wpcf7-not-valid-tip {
    color: var(--quote-white);
}

/* Checkout Trust Badge */
.checkout-trust-badge {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--quote-border-light);
    text-align: center;
}

/* Reset any accidental margins from structural paragraphs */
.checkout-trust-badge p {
    margin: 0;
}

.checkout-trust-badge .trust-signals {
    margin-bottom: 10px;
}

.checkout-trust-badge .google-rating {
    font-size: 0.7rem;
    color: var(--quote-text-muted);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.checkout-trust-badge .google-rating .stars {
    color: #fbbc04;
    /* Google Star Gold */
    letter-spacing: 1px;
}

.checkout-trust-badge .badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--quote-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
}

.checkout-trust-badge .badge-text .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--quote-green);
}

.checkout-trust-badge .cc-icons {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.checkout-trust-badge .cc-logo-wrap {
    width: 32px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-trust-badge .cc-logo-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* Force fill/visibility if the official SVGs use currentColor */
.cc-logo-wrap.visa {
    color: #1A1F71;
}

.cc-logo-wrap.amex {
    color: #016FD0;
}

.cc-logo-wrap.mastercard {
    color: #EB001B;
}

.cc-logo-wrap.discover {
    color: #F48221;
}

.copy-email-trigger {
    cursor: pointer;
    color: var(--quote-blue);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    position: relative;
}

.copy-status-tip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--quote-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
}

.copy-email-trigger.is-copied .copy-status-tip {
    display: block;
}

.checkout-trust-badge .trust-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.75rem;
    color: var(--quote-text-muted);
    margin-top: 10px;
    padding: 10px 10px 0;
    border-top: 1px solid var(--quote-border-light);
}

.checkout-trust-badge .paypal-note,
.checkout-trust-badge .need-help-link {
    text-align: left;
    line-height: 1.3;
}

.checkout-trust-badge .need-help-link .help-label {
    font-weight: 700;
    margin-bottom: 2px;
    text-align: right;
    /* push title to right edge */
}

.checkout-trust-badge .need-help-link .help-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    text-align: right;
}

.checkout-trust-badge .paypal-protection,
.checkout-trust-badge .refund-policy {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
    opacity: 0.8;
    font-weight: 600;
}

.checkout-trust-badge .need-help-link a {
    color: var(--quote-blue);
    font-weight: 700;
    text-decoration: none;
}

.checkout-trust-badge .paypal-note strong {
    color: var(--quote-blue);
}

@media (max-width: 480px) {
    .checkout-trust-badge .google-rating {
        margin-bottom: 10px;
        gap: 0;
    }

    .checkout-trust-badge .need-help-link .help-label,
    .checkout-trust-badge .paypal-note,
    .checkout-trust-badge .need-help-link {
        text-align: center;
        width: 100%;
    }

    .checkout-trust-badge .need-help-link .help-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .step-header-with-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .step-indicator-wrap {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .step-indicator-wrap .nav-sep,
    .back-to-selection-btn,
    .global-nav-container .nav-sep {
        display: none;
    }

    .quote-calculator {
        padding: 20px 0;
        margin: 0 auto;
        border: none;
        box-shadow: none;
        background: transparent;
        overflow: hidden;
    }

    .step-indicator {
        display: block;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--quote-text-muted);
        margin-bottom: 4px;
        font-weight: 600;
        opacity: 0.8;
    }

    .step-title-mobile {
        display: inline;
    }

    .step-title-desktop,
    .back-step-btn {
        display: none !important;
    }

    .checkout-trust-badge .trust-footer {
        flex-direction: column;
        gap: 8px;
    }
}
