.feedback-bot {

    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;
}


.feedback-bot-button {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 18px 8px 8px;

    border: none;

    border-radius: 50px;

    background: #0d6efd;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.feedback-bot-button:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30);
}


/* ROBOT */

.feedback-bot-icon {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 50%;

    font-size: 24px;

    flex-shrink: 0;
}
/* =========================================================
   DANCING FEEDBACK ROBOT
   ========================================================= */

.feedback-bot-icon {
    animation: robotDance 2s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes robotDance {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-3px) rotate(-8deg);
    }

    40% {
        transform: translateY(0) rotate(8deg);
    }

    60% {
        transform: translateY(-3px) rotate(-8deg);
    }

    80% {
        transform: translateY(0) rotate(8deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }

}


/* Mas mabilis kapag naka-hover */

.feedback-bot-button:hover .feedback-bot-icon {
    animation: robotCrazyDance 0.65s ease-in-out infinite;
}

@keyframes robotCrazyDance {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-12deg);
    }

    50% {
        transform: translateY(0) rotate(12deg);
    }

    75% {
        transform: translateY(-5px) rotate(-12deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }

}

.feedback-bot-label {

    white-space: nowrap;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.feedback-overlay {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);
}


.feedback-overlay.active {

    display: flex;
}


body.feedback-open {

    overflow: hidden;
}


/* =========================================================
   MODAL
   ========================================================= */

.feedback-box {

    position: relative;

    width: 100%;

    max-width: 460px;

    padding: 28px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.30);

    animation:
        feedbackPopup 0.25s ease;
}


@keyframes feedbackPopup {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(0.96);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }
}


/* =========================================================
   HEADER
   ========================================================= */

.feedback-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}


.feedback-robot {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eef5ff;

    border-radius: 50%;

    font-size: 31px;

    flex-shrink: 0;
}


.feedback-header h4 {

    margin: 0;

    color: #222222;

    font-size: 20px;

    font-weight: 700;
}


.feedback-header p {

    margin: 4px 0 0;

    color: #777777;

    font-size: 14px;
}


/* =========================================================
   CLOSE
   ========================================================= */

.feedback-close {

    position: absolute;

    top: 12px;
    right: 15px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #777777;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}


.feedback-close:hover {

    background: #f2f2f2;

    color: #222222;
}


/* =========================================================
   FORM
   ========================================================= */

.feedback-form label {

    display: block;

    margin-bottom: 8px;

    color: #333333;

    font-size: 14px;

    font-weight: 600;
}


.feedback-form textarea {

    width: 100%;

    min-height: 125px;

    padding: 13px 14px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #dddddd;

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.feedback-form textarea:focus {

    border-color: #0d6efd;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.10);
}


.feedback-form textarea::placeholder {

    color: #999999;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.feedback-submit {

    width: 100%;

    margin-top: 14px;

    padding: 12px 16px;

    border: none;

    border-radius: 10px;

    background: #f28c28;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.feedback-submit:hover {

    background: #dc7514;

    transform: translateY(-1px);
}


.feedback-submit i {

    margin-right: 6px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .feedback-bot {

        right: 15px;

        bottom: 15px;
    }


    .feedback-bot-button {

        width: 54px;
        height: 54px;

        padding: 5px;

        justify-content: center;
    }


    .feedback-bot-label {

        display: none;
    }


    .feedback-bot-icon {

        width: 44px;
        height: 44px;

        font-size: 24px;
    }


    .feedback-box {

        max-width: 100%;

        padding: 23px;

        border-radius: 17px;
    }


    .feedback-header h4 {

        font-size: 18px;
    }

}

