﻿/* =========================================================
   IMPACT CHAT + VIDEO STYLES
   File: /assets/stylesheets/chatstyles.css
   ========================================================= */


/* =========================================================
   IMPACT GLOBAL VIDEO POPUP - WHITE BORDER / LARGE PLAYER
   ========================================================= */

/* Dark background overlay */
#videoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main popup */
#videoPopup {
    position: relative;
    width: min(1360px, 96vw);
    height: min(860px, 92vh);
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top bar */
#videoPopupHeader {
    height: 64px;
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: relative;
}

/* Close X */
#videoPopupClose {
    position: absolute;
    top: 11px;
    right: 18px;
    font-size: 40px;
    color: #f56c13;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

/* Video area */
#videoPopupBody {
    flex: 1;
    height: auto;
    background: #000000;
    padding: 0;
}

    /* Iframe fills popup even if width/height attributes are hardcoded */
    #videoPopupBody iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: none;
        max-height: none;
        border: none;
        display: block;
    }


/* =========================================================
   IMPACT AI ASSISTANT - RIGHT DOCKED CHAT
   ========================================================= */
#impactChatDock {
    position: fixed;
    top: 42px;
    bottom: 18px;
    right: 0;
    width: 420px;
    height: auto;
    max-height: none;
    background: #ffffff;
    border-left: 3px solid #ff5a00;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    /* closed state */
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

    #impactChatDock.open {
        transform: translateX(0);
    }


/* =========================================================
   OPEN / CLOSE SIDE TAB
   ========================================================= */

#impactChatToggle {
    position: absolute;
    left: -38px;
    top: 0;
    width: 38px;
    height: 38px;
    background: #f56c13;
    color: #ffffff;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 38px;
    text-align: center;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 1000000;
}

    #impactChatToggle:hover {
        background: #df5d0d;
    }


/* =========================================================
   CHAT HEADER
   ========================================================= */

#impactChatHeader {
    background: #ffffff;
    color: #222222;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f56c13;
}

#impactChatHeaderTitle strong {
    font-size: 28px;
    font-weight: 700;
    display: block;
    line-height: 1.1;
    color: #f56c13;
}

#impactChatHeaderTitle span {
    font-size: 16px;
    color: #666666;
    opacity: 1;
}

#impactChatClose {
    background: transparent;
    border: none;
    color: #f56c13;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    padding: 0;
    font-weight: 700;
}

    #impactChatClose:hover {
        color: #df5d0d;
    }


/* =========================================================
   CHAT MESSAGE AREA
   ========================================================= */

#impactChatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.impact-user-message,
.impact-bot-message {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-line;
    text-align: left;
}

.impact-user-message {
    background: #f56c13;
    color: #ffffff;
    margin-left: 45px;
}

.impact-bot-message {
    background: #ffffff;
    color: #222222;
    margin-right: 45px;
    border: 1px solid #dddddd;
}


    /* =========================================================
   NORMAL BOT LINKS
   ========================================================= */

    .impact-bot-message a {
        color: #f56c13;
        font-weight: 600;
        text-decoration: underline;
    }

        .impact-bot-message a:hover {
            color: #df5d0d;
        }


        /* =========================================================
   PRIMARY VIDEO ACTION BUTTON
   Watch Video should look like the actionable button.
   ========================================================= */

        .impact-bot-message a.impact-chat-video-button {
            display: inline-block;
            margin-top: 10px;
            background: #f56c13;
            color: #ffffff !important;
            border: 2px solid #f56c13;
            border-radius: 22px;
            padding: 10px 18px;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none !important;
            cursor: pointer;
            line-height: 1.2;
        }

            .impact-bot-message a.impact-chat-video-button:hover {
                background: #df5d0d;
                border-color: #df5d0d;
                color: #ffffff !important;
                text-decoration: none !important;
            }


/* =========================================================
   EXAMPLE QUICK-REPLY LINKS
   These should look like text hyperlinks, not primary buttons.
   ========================================================= */

.impact-chat-examples {
    margin-top: 14px;
    display: block;
}

.impact-chat-example-button {
    display: block;
    background: transparent;
    color: #f56c13;
    border: none;
    border-radius: 0;
    padding: 4px 0;
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    line-height: 1.35;
    font-family: 'Poppins', Arial, sans-serif;
}

    .impact-chat-example-button:hover,
    .impact-chat-example-button:focus,
    .impact-chat-example-button:active {
        background: transparent;
        color: #df5d0d;
        border: none;
        outline: none;
        text-decoration: underline;
    }


/* =========================================================
   CHAT INPUT AREA
   ========================================================= */

#impactChatInputArea {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
}

#impactChatInput {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    font-family: 'Poppins', Arial, sans-serif;
}

    #impactChatInput:focus {
        border-color: #f56c13;
        box-shadow: 0 0 0 2px rgba(245, 108, 19, 0.15);
    }

#impactChatSendButton {
    background: #f56c13;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', Arial, sans-serif;
}

    #impactChatSendButton:hover {
        background: #df5d0d;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    #videoPopup {
        width: 96vw;
        height: 82vh;
        border-width: 4px;
        border-radius: 10px;
    }

    #videoPopupHeader {
        height: 52px;
    }

    #videoPopupClose {
        top: 8px;
        right: 14px;
        font-size: 34px;
    }

  
    #impactChatHeaderTitle strong {
        font-size: 24px;
    }

    #impactChatHeaderTitle span {
        font-size: 15px;
    }

    .impact-user-message,
    .impact-bot-message {
        font-size: 16px;
    }

    #impactChatInput,
    #impactChatSendButton {
        font-size: 16px;
    }

    #impactVideoHeader {
        font-size: 20px;
    }
}


/* =========================================================
   VIDEO POPUP FORCE WHITE OVERRIDES
   Put this at the bottom so it wins over older orange styles.
   ========================================================= */
/* =========================================================
   IMPACT VIDEO POPUP - LARGE / FRONT / WHITE BORDER
   Matches IDs in ImpactMasterPage.master
   ========================================================= */

#impactVideoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000000 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

#impactVideoModal {
    position: relative;
    width: min(1360px, 96vw);
    height: min(860px, 92vh);
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2000001 !important;
}

#impactVideoHeader {
    height: 58px;
    flex-shrink: 0;
    background: #ffffff;
    color: #df5d0d;
    border-bottom: 1px solid #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 20px;
    font-weight: 700;
}

#impactVideoClose {
    position: absolute;
    top: 7px;
    right: 16px;
    font-size: 38px;
    color: #df5d0d;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2000002 !important;
}

#impactVideoFrameWrap {
    flex: 1;
    background: #000000;
    padding: 0;
}

#impactVideoFrame {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* =========================================================
   IMPACT AI MOCKUP FORM POPUP
   ========================================================= */

#impactMockupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3000000;
    display: none;
    align-items: center;
    justify-content: center;
}

#impactMockupModal {
    width: min(520px, 94vw);
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#impactMockupHeader {
    height: 42px;
    background: #f5f5f5;
    border-bottom: 1px solid #dddddd;
    display: flex;
    align-items: center;
    padding: 0 14px;
    position: relative;
    color: #333333;
    font-size: 14px;
}

#impactMockupTitle {
    font-weight: 600;
}

#impactMockupClose {
    position: absolute;
    right: 10px;
    top: 6px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #777777;
}

#impactMockupBody {
    padding: 22px;
}

.impact-mockup-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

    .impact-mockup-row label {
        font-size: 14px;
        color: #000000;
    }

    .impact-mockup-row input,
    .impact-mockup-row select,
    .impact-mockup-row textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #999999;
        border-radius: 0;
        padding: 6px 8px;
        font-size: 14px;
        font-family: Arial, sans-serif;
    }

    .impact-mockup-row textarea {
        min-height: 70px;
        resize: vertical;
    }

#impactMockupFooter {
    padding: 14px 22px 22px 22px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

    #impactMockupFooter button {
        min-width: 90px;
        padding: 6px 16px;
        border: 1px solid #777777;
        background: #f5f5f5;
        cursor: pointer;
        font-size: 14px;
    }

        #impactMockupFooter button:hover {
            background: #eeeeee;
        }