/* =====================================================
   CUSTOM FUNNEL CHECKOUT - WooCommerce
   File: assets/css/custom-checkout.css
   ===================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

body.woocommerce-checkout {
    background: #f4f6f8;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    margin: 0;
}

/* ---- CONTACT BAR (top of page, above sticky bar) ---- */
.funnel-contact-bar {
    background: #2d2d2d;
    color: #ccc;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.funnel-contact-bar span { color: #ddd; }

/* ---- STICKY TOP BAR ---- */
.funnelbar-top {
    background: #c0392b;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
    letter-spacing: 0.5px;
}
#countdown-timer {
    font-size: 18px;
    background: #fff;
    color: #c0392b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* ---- HEADLINE AREA ---- */
.funnel-headline {
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
}
.funnel-headline p {
    margin: 0 0 8px;
    font-size: 15px;
}
.funnel-badges-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
}
.funnel-badges-top span {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ---- MAIN LAYOUT ---- */
.funnel-checkout-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}
.funnel-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 860px) {
    .funnel-layout { grid-template-columns: 1fr; }
}

/* ---- STEP INDICATORS ---- */
.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #2563eb;
}
.step-dot span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
}
.step-line {
    flex: 1;
    height: 2px;
    background: #2563eb;
    max-width: 60px;
    margin: 0 6px;
    margin-bottom: 16px;
}

/* ---- SECTIONS (all visible) ---- */
.funnel-section {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

/* ---- STOCK WARNING ---- */
.stock-warning {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}
#stock-count { color: #e53935; font-size: 16px; }

/* ---- BUNDLE CARDS ---- */
.bundle-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.bundle-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.bundle-card:hover,
.bundle-card.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.bundle-card.most-chosen {
    border-color: #f59e0b;
}
.bundle-card.most-chosen.selected {
    border-color: #2563eb;
}
.bundle-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.bundle-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
}
.bundle-badge.popular {
    background: #f59e0b;
    color: #1a1a2e;
}
.bundle-discount-badge {
    position: absolute;
    top: -10px;
    left: 14px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.bundle-info { flex: 1; }
.bundle-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.bundle-name em { color: #f59e0b; font-style: normal; font-size: 12px; }
.bundle-original { text-decoration: line-through; color: #999; font-size: 13px; }
.bundle-price { font-size: 18px; font-weight: 700; color: #2563eb; }
.bundle-ship { font-size: 12px; color: #22c55e; font-weight: 600; }
.bundle-select-btn {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .2s;
}
.bundle-card.selected .bundle-select-btn {
    background: #16a34a;
}
.bundle-card.selected .bundle-select-btn::before {
    content: '✓ ';
}

/* ---- COLOR SELECTOR ---- */
.color-selector {
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 0 0 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.color-selector label {
    font-size: 14px;
    color: #666;
    margin: 0;
    white-space: nowrap;
}
.color-selector label strong { color: #222; }
.color-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.color-btn {
    border: 2px solid #ccc;
    background: #fff;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: border-color .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.color-btn.active {
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}
.color-btn.sold-out {
    border-color: #ddd;
    color: #aaa;
    cursor: default;
    background: #fafafa;
}
.sold-out-tag {
    font-size: 10px;
    color: #e53935;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ---- FORM FIELDS ---- */
.form-row-wrap .form-row { margin-bottom: 14px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    background: #fafafa;
}
.form-row input:focus,
.form-row select:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
}
.form-row-first, .form-row-last {
    float: left;
    width: 48%;
}
.form-row-last { float: right; }
.form-row-wide { clear: both; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ---- SAME ADDRESS / SHIPPING ---- */
.same-address-wrap {
    clear: both;
    padding: 12px 0;
    font-size: 14px;
}
.same-address-wrap label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---- ORDER BUMPS ---- */
.order-bumps { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.order-bump-card {
    border: 2px dashed #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    overflow: hidden;
}
.order-bump-card label {
    display: block;
    cursor: pointer;
    padding: 14px;
}
.order-bump-card input[type="checkbox"] {
    display: none;
}
.bump-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bump-icon { font-size: 28px; flex-shrink: 0; }
.bump-text { flex: 1; font-size: 13px; line-height: 1.5; }
.bump-text strong { font-size: 14px; color: #1a1a2e; }
.bump-text p { margin: 4px 0 0; color: #555; }
.bump-price {
    font-size: 16px;
    font-weight: 700;
    color: #e53935;
    flex-shrink: 0;
    align-self: center;
}
.order-bump-card input:checked + .bump-content {
    /* highlight when checked */
}
.order-bump-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

/* ---- STEP NAV BUTTONS ---- */
.step-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}
.btn-primary {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(34,197,94,.4);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-back {
    background: none;
    border: 1.5px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s;
}
.btn-back:hover { border-color: #2563eb; color: #2563eb; }

/* ---- SECURE BADGE ---- */
.secure-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 18px;
    text-align: center;
}

/* ---- GUARANTEE BOX ---- */
.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbeb;
    border: 2px solid #fcd34d;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
}
.guarantee-icon { font-size: 32px; flex-shrink: 0; }
.guarantee-text strong { display: block; font-size: 14px; margin-bottom: 6px; color: #1a1a2e; }
.guarantee-text p { margin: 0; font-size: 13px; color: #555; }

/* ---- TRUST BADGES ---- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
    font-size: 13px;
    color: #555;
}
.trust-badges span {
    background: #f8f8f8;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

/* ---- WooCommerce Payment Override ---- */
#payment { margin-top: 0; }
#payment ul.payment_methods {
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
#payment ul.payment_methods li {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
#payment ul.payment_methods li:last-child { border-bottom: none; }
#payment .place-order { margin: 0; padding: 0; }
#place_order {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(34,197,94,.4);
    transition: transform .1s;
}
#place_order:hover { transform: translateY(-1px); }

/* =====================
   RIGHT: ORDER SUMMARY
   ===================== */
.order-summary-box {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.summary-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a2e;
}
.summary-product {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}
#summary-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
}
.summary-product-name { font-weight: 700; font-size: 14px; }
.summary-product-original { text-decoration: line-through; color: #999; font-size: 12px; }
.summary-product-price { font-size: 16px; font-weight: 700; color: #2563eb; }
.summary-discount-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* ---- FREE BONUSES ---- */
.summary-bonuses {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bonus-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #444;
}
.bonus-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.bonus-item em { color: #666; font-size: 11px; display: block; }
.bonus-item span { flex: 1; }
.free-tag {
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

/* ---- TOTALS ---- */
.summary-totals {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.summary-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    color: #1a1a2e;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #1a1a2e;
}

/* ---- SUBSCRIPTION INFO ---- */
.subscription-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 14px;
    font-size: 12px;
}
.subscription-info h4 { margin: 0 0 6px; font-size: 13px; color: #166534; }
.subscription-info p { margin: 0 0 8px; color: #444; }
.subscription-info ul { margin: 0; padding-left: 0; list-style: none; }
.subscription-info li { margin-bottom: 4px; color: #555; }

/* =====================
   TESTIMONIALS
   ===================== */
.funnel-testimonials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px;
}
.funnel-testimonials h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 24px;
    color: #1a1a2e;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.reviewer-stars { color: #f59e0b; font-size: 16px; margin-bottom: 6px; }
.reviewer-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.verified { color: #22c55e; }
.testimonial-card p { font-size: 13px; color: #555; line-height: 1.6; margin: 0 0 10px; }
.tp-logo { height: 20px; opacity: .7; }

/* =====================
   DISCLAIMER
   ===================== */
.funnel-disclaimer {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 20px 16px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #e0e0e0;
    line-height: 1.7;
}
.funnel-disclaimer a { color: #2563eb; text-decoration: none; }

/* =====================
   WOOCOMMERCE NOTICES
   ===================== */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
}
.woocommerce-error { background: #fef2f2; border-left: 4px solid #e53935; color: #b91c1c; }
.woocommerce-info  { background: #eff6ff; border-left: 4px solid #2563eb; color: #1d4ed8; }

/* ---- LOADING OVERLAY ---- */
.funnel-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.funnel-loading.show { display: flex; }
.funnel-spinner {
    background: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.spinner-icon {
    width: 24px; height: 24px;
    border: 3px solid #ddd;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
