﻿/* =========================================================
   IMPACT ASK COACH WEBSITE DEMO
   ========================================================= */

.coach-demo-overlay,
.coach-demo-overlay * {
    box-sizing: border-box;
}

.coach-demo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    font-family: Arial, Helvetica, sans-serif;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    overflow-y: auto;
}

    .coach-demo-overlay.is-open {
        display: flex;
    }

    .coach-demo-overlay.coach-is-busy,
    .coach-demo-overlay.coach-is-busy * {
        cursor: wait !important;
    }

/* =========================================================
   WINDOW
   ========================================================= */

.coach-window {
    background: #ffffff;
    border: 1px solid #b9b9b9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color: #000000;
}

.coach-ask-window {
    display: none;
    width: 755px;
    max-width: calc(100vw - 40px);
    height: calc(100vh - 60px);
    max-height: 700px;
    min-height: 620px;
    flex-direction: column;
}

    .coach-ask-window.is-open {
        display: flex;
    }

/* =========================================================
   TITLE BAR
   ========================================================= */

.coach-titlebar {
    height: 31px;
    min-height: 31px;
    background: #f5fbff;
    border-bottom: 1px solid #d0d0d0;
    padding: 6px 10px;
    font-size: 13px;
    color: #777777;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coach-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 20px;
    color: #777777;
    cursor: pointer;
    padding: 0;
}

    .coach-close:hover {
        color: #000000;
    }

/* =========================================================
   BODY
   ========================================================= */

.coach-ask-body {
    flex: 1;
    min-height: 0;
    padding: 26px 13px 14px 13px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.coach-intro-block h3 {
    margin: 0 0 22px 6px;
    color: #17365D;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.coach-ask-body label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #000000;
}

/* =========================================================
   TEXT BOXES - ALWAYS ORANGE
   ========================================================= */

.coach-small-textarea,
.coach-large-textarea {
    width: 100%;
    border: 1px solid #ff6b00 !important;
    border-radius: 4px;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.coach-small-textarea {
    height: 48px;
    min-height: 48px;
    resize: vertical;
    margin-bottom: 32px;
}

.coach-large-textarea {
    flex: 1;
    min-height: 260px;
    resize: vertical;
    margin-bottom: 18px;
}

    .coach-small-textarea:focus,
    .coach-large-textarea:focus {
        border: 2px solid #ff6b00 !important;
        outline: none !important;
        box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.15) !important;
    }

/* =========================================================
   MIDDLE COACH BUTTON ROW
   ========================================================= */

.coach-middle-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0 0 34px 0;
}

.coach-wide-button {
    min-width: 285px;
    height: 36px;
    border: 1px solid #d39e00;
    background: #ffc107;
    color: #17365D;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

    .coach-wide-button:hover {
        background: #ffca2c;
        border-color: #c69500;
    }

    .coach-wide-button:disabled {
        opacity: 0.70;
        cursor: wait;
    }

.coach-middle-help {
    color: #17365D;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

/* =========================================================
   LOWER RIGHT BUTTONS
   ========================================================= */

.coach-bottom-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 0;
    background: #ffffff;
}

.coach-bottom-button {
    min-width: 128px;
    height: 36px;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    border-radius: 5px;
    font-size: 13px;
    color: #000000;
    cursor: pointer;
}

    .coach-bottom-button:hover {
        background: #f7f7f7;
    }

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .coach-demo-overlay {
        padding: 20px 12px;
    }

    .coach-ask-window {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 40px);
        min-height: 0;
        max-height: none;
    }

    .coach-ask-body {
        padding: 22px 13px 14px 13px;
    }

    .coach-intro-block h3 {
        font-size: 22px;
        margin-left: 0;
    }

    .coach-middle-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 24px;
    }

    .coach-middle-help {
        font-size: 15px;
    }

    .coach-large-textarea {
        min-height: 220px;
    }

    .coach-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .coach-wide-button,
    .coach-bottom-button {
        width: 100%;
        min-width: 0;
    }
}
