/*
|--------------------------------------------------------------------------
| BLOOM HELP
|--------------------------------------------------------------------------
*/

.bloom-help {
    --help-navy: #123a67;
    --help-pink: #ef4f76;
    --help-green: #35a985;
    --help-blue: #4b91ce;
    --help-text: #607284;
    --help-border: #e7edf1;

    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 1080;

    font-family: inherit;
}



/*
|--------------------------------------------------------------------------
| FLOATING BUTTON
|--------------------------------------------------------------------------
*/

.bloom-help-button {
    position: relative;

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 54px;

    padding:
        0
        20px
        0
        9px;

    overflow: visible;

    border: 0;

    border-radius: 50px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--help-green),
            var(--help-blue)
        );

    box-shadow:
        0 14px 35px
        rgba(18, 58, 103, .24);

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.bloom-help-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 42px
        rgba(18, 58, 103, .30);
}


.bloom-help-button-icon {
    display: grid;

    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    color: var(--help-pink);

    background: #ffffff;

    font-size: 17px;
}


.bloom-help-button-label {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: .2px;
}



/*
|--------------------------------------------------------------------------
| BUTTON FLOWER
|--------------------------------------------------------------------------
*/

.bloom-help-button-flower {
    position: absolute;

    top: -13px;
    right: 8px;

    display: grid;

    place-items: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    color: var(--help-pink);

    background: #ffffff;

    font-size: 14px;

    box-shadow:
        0 6px 15px
        rgba(18, 58, 103, .15);

    animation:
        bloomHelpFlower 3s
        ease-in-out
        infinite;
}


@keyframes bloomHelpFlower {

    0%,
    100% {
        transform:
            rotate(-10deg)
            scale(1);
    }

    50% {
        transform:
            rotate(12deg)
            scale(1.12);
    }

}



/*
|--------------------------------------------------------------------------
| PANEL
|--------------------------------------------------------------------------
*/

.bloom-help-panel {
    position: absolute;

    right: 0;
    bottom: 70px;

    width: 370px;

    overflow: hidden;

    border:
        1px solid
        rgba(53, 169, 133, .18);

    border-radius: 25px;

    background:
        rgba(255, 255, 255, .98);

    box-shadow:
        0 25px 70px
        rgba(18, 58, 103, .18);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(20px)
        scale(.96);

    transform-origin:
        right bottom;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .3s ease;
}


.bloom-help.is-open
.bloom-help-panel {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}



/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.bloom-help-header {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    padding:
        20px
        20px
        18px;

    background:
        linear-gradient(
            110deg,
            #eaf9f4,
            #f8fffc
        );
}


.bloom-help-header-icon {
    display: grid;

    place-items: center;

    width: 45px;
    height: 45px;

    border-radius: 15px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--help-pink),
            #f38b76
        );

    box-shadow:
        0 9px 20px
        rgba(239, 79, 118, .22);

    font-size: 19px;
}


.bloom-help-header-text {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.bloom-help-header-text span {
    color: var(--help-green);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.bloom-help-header-text strong {
    margin-top: 3px;

    color: var(--help-navy);

    font-size: 15px;
    font-weight: 800;
}


.bloom-help-close {
    display: grid;

    place-items: center;

    width: 33px;
    height: 33px;

    padding: 0;

    border: 0;

    border-radius: 11px;

    color: #8493a0;

    background:
        rgba(255, 255, 255, .8);

    font-size: 11px;

    cursor: pointer;
}



/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

.bloom-help-body {
    position: relative;

    z-index: 2;

    padding:
        22px
        20px
        21px;
}


.bloom-help-description {
    margin:
        0
        0
        18px;

    color: var(--help-text);

    font-size: 11px;

    line-height: 1.7;
}



/*
|--------------------------------------------------------------------------
| FIELD
|--------------------------------------------------------------------------
*/

.bloom-help-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--help-navy);

    font-size: 10px;
    font-weight: 800;
}


.bloom-help-field textarea {
    display: block;

    width: 100%;

    min-height: 125px;

    padding:
        14px
        15px;

    resize: vertical;

    border:
        1px solid
        var(--help-border);

    border-radius: 15px;

    color: var(--help-navy);

    background: #fafcfd;

    font: inherit;

    font-size: 11px;

    line-height: 1.6;

    outline: 0;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.bloom-help-field textarea:focus {
    border-color:
        rgba(53, 169, 133, .55);

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(53, 169, 133, .08);
}


.bloom-help-field textarea.is-invalid {
    border-color:
        rgba(239, 79, 118, .6);
}



/*
|--------------------------------------------------------------------------
| FIELD FOOTER
|--------------------------------------------------------------------------
*/

.bloom-help-field-footer {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;

    min-height: 25px;

    padding-top: 6px;
}


.bloom-help-error {
    color: var(--help-pink);

    font-size: 9px;
    font-weight: 600;
}


.bloom-help-counter {
    flex: 0 0 auto;

    margin-left: auto;

    color: #a0acb6;

    font-size: 8px;
}



/*
|--------------------------------------------------------------------------
| SUBMIT
|--------------------------------------------------------------------------
*/

.bloom-help-submit {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    min-height: 47px;

    padding:
        0
        18px;

    border: 0;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--help-green),
            var(--help-blue)
        );

    font-size: 10px;
    font-weight: 800;

    box-shadow:
        0 11px 25px
        rgba(53, 169, 133, .22);

    cursor: pointer;
}


.bloom-help-submit:disabled {
    opacity: .65;

    cursor: wait;
}



/*
|--------------------------------------------------------------------------
| SUCCESS
|--------------------------------------------------------------------------
*/

.bloom-help-success {
    position: relative;

    z-index: 2;

    padding:
        35px
        25px;

    text-align: center;
}


.bloom-help-success[hidden] {
    display: none !important;
}


.bloom-help-success-icon {
    display: grid;

    place-items: center;

    width: 65px;
    height: 65px;

    margin:
        0
        auto
        17px;

    border-radius: 22px;

    color: var(--help-pink);

    background: #fff0f4;

    font-size: 28px;
}


.bloom-help-success strong {
    display: block;

    color: var(--help-navy);

    font-size: 17px;
}


.bloom-help-success p {
    margin:
        8px
        0
        20px;

    color: var(--help-text);

    font-size: 11px;

    line-height: 1.6;
}


.bloom-help-success button {
    padding:
        9px
        15px;

    border:
        1px solid
        rgba(53, 169, 133, .25);

    border-radius: 11px;

    color: var(--help-green);

    background: #ffffff;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}

.bloom-help-loading {
    animation:
        bloomHelpLoading .8s
        linear
        infinite;
}


@keyframes bloomHelpLoading {

    to {
        transform: rotate(360deg);
    }

}



/*
|--------------------------------------------------------------------------
| DECORATION
|--------------------------------------------------------------------------
*/

.bloom-help-decoration {
    position: absolute;

    z-index: 1;

    color:
        rgba(239, 79, 118, .07);

    font-size: 80px;

    pointer-events: none;
}


.bloom-help-decoration-left {
    bottom: -28px;
    left: -30px;

    transform: rotate(-20deg);
}


.bloom-help-decoration-right {
    top: 70px;
    right: -35px;

    color:
        rgba(53, 169, 133, .07);

    transform: rotate(20deg);
}



/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {

    .bloom-help {
        right: 15px;
        bottom: 17px;
    }


    .bloom-help-button {
        min-height: 51px;

        padding:
            0
            9px;

        border-radius: 17px;
    }


    .bloom-help-button-icon {
        width: 34px;
        height: 34px;
    }


    .bloom-help-button-label {
        display: none;
    }


    .bloom-help-button-flower {
        top: -11px;
        right: -5px;

        width: 24px;
        height: 24px;
    }


    .bloom-help-panel {
        position: fixed;

        right: 12px;
        bottom: 82px;
        left: 12px;

        width: auto;

        border-radius: 22px;

        transform:
            translateY(25px)
            scale(.98);

        transform-origin:
            center bottom;
    }


    .bloom-help-header {
        padding:
            17px
            17px
            15px;
    }


    .bloom-help-body {
        padding:
            19px
            17px
            18px;
    }


    .bloom-help-field textarea {
        min-height: 115px;
    }

}

/*
|--------------------------------------------------------------------------
| PLACEHOLDER ANIMATION
|--------------------------------------------------------------------------
*/

.bloom-help-field textarea::placeholder {
    color: #9ba9b5;

    opacity: 1;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.bloom-help-field
textarea.is-placeholder-changing::placeholder {
    opacity: 0;
}