/* ================================
   ROI POPUP - OPTION 2: LOSS AVERSION
   Red/Orange gradient with urgency focus
================================ */

.roi-popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.roi-popup-overlay.active {
    display: flex;
}

/* Popup box */
.roi-popup {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Lock background scroll */
body.roi-popup-open {
    overflow: auto !important;
}

/* ================================
   CLOSE BUTTON
================================ */
.roi-close-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
}

/* ================================
   RED/ORANGE HEADER SECTION - LOSS AVERSION
================================ */
.roi-popup-header {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    text-align: center;
    padding: 50px 20px 20px;
    color: #ffffff;
    position: relative;
}

.roi-popup-header h2,
.roi-popup-header h3,
.roi-popup-header p {
    color: #ffffff !important;
}

/* Urgency indicator at top */
.roi-urgency-indicator {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: roi-pulse 2s ease-in-out infinite;
}

@keyframes roi-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Icon wrapper - Warning style */
.icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: roi-shake 3s ease-in-out infinite;
}

@keyframes roi-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

.icon-wrapper svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

/* Reduced spacing */
.roi-popup-header-title {
    margin-bottom: 12px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.roi-highlight {
    color: #fef3c7;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.subheading {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* ================================
   WASTE HIGHLIGHT BOX
================================ */
.roi-waste-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 25px;
    text-align: center;
}

.roi-waste-number {
    font-size: 38px;
    font-weight: 800;
    color: #dc2626;
    display: block;
    margin-bottom: 4px;
    line-height: 1;
}

.roi-waste-text {
    font-size: 14px;
    color: #78350f;
    font-weight: 600;
}

/* ================================
   BENEFITS TEXT LIST
================================ */
.roi-benefits {
    padding: 20px 25px 10px 25px;
    font-size: 15px;
}

.roi-benefits ul {
    padding-left: 22px;
    margin: 0;
}

.roi-benefits li {
    margin-bottom: 12px;
    color: #374151;
}

/* ================================
   FORM STYLES
================================ */
.roi-form {
    padding: 0px 25px 30px;
}

.roi-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #374151;
    font-size: 14px;
}

.roi-form input,
.roi-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.roi-form input:focus,
.roi-form textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.roi-form textarea {
    resize: vertical;
    min-height: 80px;
}

.custom-margin {
    margin: 16px 0px 0px 5px;
}

/* ================================
   SUBMIT BUTTON - LOSS AVERSION STYLE
================================ */
.roi-submit-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    font-weight: 700;
    padding: 16px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-size: 16px;
}

.roi-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.roi-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ================================
   URGENCY FOOTER
================================ */
.roi-urgency-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 600;
}

/* ================================
   TRUST INDICATORS
================================ */
.roi-trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.roi-trust-indicators span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================================
   PRIVACY TEXT
================================ */
.roi-privacy {
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
    color: #555;
}

/* ================================
   SUCCESS MESSAGE
================================ */
.roi-success-message {
    padding: 25px;
    text-align: center;
    display: none;
}

.roi-success-message.active {
    display: block;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* ================================
   RESPONSIVE FIXES
================================ */
@media (max-width: 480px) {
    .roi-popup {
        max-width: 95%;
        margin: 10px;
    }

    .roi-popup-header {
        padding: 45px 15px 18px;
    }

    .roi-popup-header-title {
        font-size: 22px !important;
    }

    .roi-waste-number {
        font-size: 32px;
    }

    .roi-trust-indicators {
        flex-direction: column;
        gap: 8px;
    }

    .roi-urgency-indicator {
        font-size: 11px;
        padding: 6px 12px;
    }
}
