/* Zeal Ads System & Offer Popup Styles */
:root {
    --zeal-primary: #ff5722;
    --zeal-primary-hover: #f4511e;
    --zeal-success: #10b981;
    --zeal-dark: #111827;
    --zeal-gray-bg: #f8fafc;
    --zeal-border: #e2e8f0;
}

.zeal-offer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.zeal-offer-modal-overlay.zeal-open {
    opacity: 1;
    pointer-events: auto;
}

.zeal-offer-modal-dialog {
    position: relative;
    background: transparent;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.zeal-offer-modal-overlay.zeal-open .zeal-offer-modal-dialog {
    transform: scale(1) translateY(0);
}

/* OUTSIDE FLOATING ROUND CLOSE BUTTON */
.zeal-close-btn-anchor {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 99999999;
    line-height: 1;
}

.zeal-offer-modal-close {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    line-height: 1 !important;
    text-align: center !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.zeal-close-x {
    display: block !important;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #000000 !important;
    user-select: none !important;
    transition: color 0.2s ease !important;
}

.zeal-offer-modal-close:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    transform: scale(1.12) rotate(90deg) !important;
}

.zeal-offer-modal-close:hover .zeal-close-x {
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .zeal-close-btn-anchor {
        top: -10px;
        right: -6px;
    }
    .zeal-offer-modal-close {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    .zeal-close-x {
        font-size: 14px !important;
    }
}

/* Steps Handling */
.zeal-offer-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.zeal-offer-step.active {
    display: block;
    opacity: 1;
}

/* STEP 1: Poster Banner (ZERO WHITE SPACE) */
.zeal-offer-poster-step {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    line-height: 0 !important;
}

.zeal-poster-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.zeal-poster-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 20px !important;
    object-fit: contain !important;
    transition: transform 0.35s ease;
}

.zeal-poster-wrapper:hover .zeal-poster-img {
    transform: scale(1.015);
}

.zeal-poster-default-graphic {
    background: radial-gradient(circle at top, #ff6b35, #c81d11 80%);
    padding: 50px 30px 40px;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
    border-radius: 20px;
    line-height: normal;
}

.zeal-badge-pill {
    display: inline-block;
    background: #facc15;
    color: #713f12;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
}

.zeal-poster-default-graphic h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.zeal-poster-discount-text {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    margin: 0 0 25px;
    line-height: 1.4;
}

.zeal-poster-discount-text span {
    font-size: 26px;
    font-weight: 900;
    color: #facc15;
    display: block;
    margin-top: 4px;
}

.zeal-poster-btn-fake {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
    line-height: normal;
}

.zeal-poster-wrapper:hover .zeal-poster-btn-fake {
    transform: translateY(-2px);
}

.zeal-poster-click-overlay {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* STEP 2: Lead Form */
.zeal-offer-form-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 28px 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.zeal-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.zeal-step-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.zeal-form-header h3 {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 6px;
    font-weight: 700;
}

.zeal-form-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.zeal-lead-form .zeal-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.zeal-lead-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.zeal-req {
    color: #ef4444;
}

.zeal-opt {
    color: #94a3b8;
    font-weight: 400;
}

.zeal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.zeal-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    color: #64748b;
}

.zeal-input-wrapper input {
    width: 100% !important;
    padding: 12px 14px 12px 42px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.zeal-input-wrapper input:focus {
    border-color: #ff5722 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15) !important;
    outline: none !important;
}

.zeal-submit-btn {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    box-sizing: border-box;
}

.zeal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -5px rgba(0, 0, 0, 0.3);
}

.zeal-secure-notice {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin: 12px 0 0;
}

/* STEP 3: Success & Celebration */
.zeal-offer-success-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 28px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.zeal-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.zeal-trophy-icon {
    font-size: 46px;
    margin-bottom: 8px;
    animation: zealBounce 1s infinite alternate ease-in-out;
}

@keyframes zealBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.08); }
}

.zeal-offer-success-step h3 {
    font-size: 24px;
    color: #0f172a;
    margin: 0 0 4px;
    font-weight: 800;
}

.zeal-success-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}

.zeal-discount-reveal-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px dashed #f59e0b;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.zeal-win-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #b45309;
    display: block;
    margin-bottom: 2px;
}

.zeal-discount-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #b45309;
}

.zeal-win-percent {
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    color: #b45309;
}

.percent-sign {
    font-size: 32px;
    font-weight: 800;
    margin-left: 2px;
}

.off-text {
    font-size: 20px;
    font-weight: 800;
    margin-left: 6px;
}

.zeal-coupon-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.zeal-coupon-info {
    text-align: left;
}

.c-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.c-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1px;
}

.zeal-copy-coupon-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.zeal-copy-coupon-btn:hover {
    background: #2563eb;
}

.zeal-applied-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    margin-bottom: 20px;
}

.zeal-shop-now-btn {
    display: block;
    width: 100%;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    transition: all 0.2s ease;
    text-align: center;
}

.zeal-shop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -5px rgba(0, 0, 0, 0.35);
}

.zeal-offer-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.2s ease;
}

.zeal-offer-trigger-btn:hover {
    transform: translateY(-2px);
}
