/*
Theme Name: ALA Benefits
Author: Gallagher | Ian Israel
Template: Divi
Version: 1.0.0
*/

/* Header */
#main-header {
    z-index: 9998;
}

/* Feedback Survey */
.feedback-section {
    position: fixed;
    top: 30%;
    right: 0;
    z-index: 9997;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
}
.feedback-flag {
    color: #fff;
    background-color: #0d2354;
    padding: 1rem .5rem;
    writing-mode: sideways-lr;
    text-align: center;
    cursor: pointer;
    display: flex;
    gap:.5rem;
    align-items: center;
    justify-content: center;
}

.feedback-flag.active {
    animation: none;
}

.feedback-flag.active:after {
    content: ">";
    transform: rotate(90deg);
    font-size: 1.5rem;
}

.feedback-flag.active:hover:after {
    animation: feedback-flag-hover 2s ease-in-out infinite alternate;
}

@keyframes feedback-flag-hover {
    0% {
        transform: translateX(0) rotate(90deg);
    }
    50% {
        transform: translateX(5px) rotate(90deg);
    }
    100% {
        transform: translateX(0) rotate(90deg);
    }
}

.feedback-form-container {
    display: none;
    padding: 1rem;
    background-color: #fff;
}

.feedback-form-container.active {
    display: block;
}

.feedback-form-container svg {
    width: 20px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feedback-form-header {
    text-align: center;
}
.feedback-form-header h2 {
    margin: 0;
}

/***** Survey Block *****/
.cancel-btn {
    border: 1px solid black;
    color: black;
    background-color: white;
    font-family: 'Poppins',Helvetica,Arial,Lucida,sans-serif;
    line-height: 1.51em;
    padding: .3rem .5rem;
    font-size: 15px;
    font-weight: 400;
}

.square-btn[type="submit"] {
    background-color: #0064FF;
    color: white;
    border: 1px solid #0064FF;
    font-family: 'Poppins',Helvetica,Arial,Lucida,sans-serif;
    line-height: 1.51em;
    padding: .3rem .5rem;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.survey-text-container textarea {
    width: 100%;
    min-height: 80px;
}

.survey-block-container {
    padding: 4rem 0;
    background-size: cover;
}

.survey-grid {
    display: grid;
    grid-template-columns: 25% 1fr;
    grid-gap: 2rem;
    max-width: 1440px;
    padding: 0 2rem;
    margin: 0 auto;
    align-items: center;
}

@media only screen and (min-width: 576px) {
    .survey-grid {
        padding: 0 3rem;
    }
}

.survey-grid * {
    color: white;
}

.survey-grid p {
    font-size: 1.5rem;
    margin: 0;
}

.survey-grid .question {
    margin-bottom: 2rem;
}

.form-label-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
}

.radio-btn-container {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.survey-block-container form .range-response-container {
    display: none;
}

.radio-btn {
    background-color: white;
    height: 70px;
    width: 70px;
    padding: 1rem;
    position: relative;
}

.radio-btn * {
    color: black;
}

.radio-btn input[type="radio"] {
    opacity: 0.011;
    z-index: 2;
}

.radio-btn input[type="radio"]:hover + label,
.radio-btn input[type="radio"]:checked + label {
    color: white;
    background-color: var(--primary-color);
}

.radio-btn label,
.radio-btn input {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
    transition: .3s;
}

.radio-btn input[type="radio"] {
    opacity: 0;
}

.radio-btn label {
    z-index: 1;
    line-height: 1;
    display: flex;
    justify-content: center;
    font-family: var(--heading);
    font-weight: 700;
    align-items: center;
    font-size: 2rem;
}

.low-label,
.high-label {
    font-family: var(--heading);
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .6;
}


/* For search survey */
.search-survey .radio-btn-container {
    justify-content: start;
}

.search-survey .radio-btn {
    width: unset;
    height: unset;
    background-color: white;
    padding: 1.25rem 13px;
    border-radius: 35px;
}

.search-survey label {
    border-radius: 35px;
}

/*.search-survey .radio-btn input[type="radio"]:hover + label,*/
/*.search-survey .radio-btn input[type="radio"]:checked + label,*/
/*.search-survey .radio-btn:hover {*/
/*    background-color: var(--button);*/
/*}*/


.survey-like#like:checked + label svg {
    fill: green;
}

.survey-like#dislike:checked + label svg {
    fill: red;
}

.search-survey .radio-btn-thumbs {
    width: 1.375rem;
}

.search-survey-two {
    display: none;
}


/* Survey Success Mesage */
.survey-complete-container {
    background-color: white;
    padding: 1rem;
}

.survey-complete-container h4 {
    color: black;
    text-transform: uppercase;
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.survey-complete-container p {
    color: black;
}

.survey-complete-container a {
    color: var(--button);
}

.survey-complete-container :last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 980px) {
    .survey-block-container form .radio-btn-container {
        display: none;
    }

    .survey-block-container form .range-response-container {
        display: block;
    }

    .group-page-wrapper .survey-grid .column-left,
    .group-page-wrapper .survey-grid .column-right {
        width: 100%;
    }

    .survey-grid .column-right {
        display: grid;
        background-color: white;
        padding: 1rem 0px 0px 0px;
    }

    .survey-grid .column-right .question {
        color: black;
        grid-row: 1 / 2;
        font-size: 1.2rem;
        margin-bottom: 0px;
        padding: 0px 1rem;
    }

    .survey-grid .column-right form {
        grid-row: 3 / 4;
    }

    .survey-grid .column-right form input[type="range"] {
        /* Questionnaire slider CSS reset for cross-browser uniformity */
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;


        width: calc(100% - 2rem);
        height: 0.5rem;
        display: block;
        background-color: var(--primary-color);
        border: none;
        border-radius: 10px;
        margin: 1.5rem auto;
    }

    /* Questionnaire slider thumb */
    .survey-grid .column-right form input[type="range"]::-webkit-slider-thumb {
        /* This 👇 is needed to override default thumb styles for Chrome and Safari */
        -webkit-appearance: none;

        width: 2rem;
        height: 2rem;
        margin-top: -0.25rem;
        background-color: var(--primary-color);
        border: 3px solid #32B0E5;
        border-radius: 50%;
        box-shadow: 0px 3px 4px darkgray;
    }
    .survey-grid .column-right form input[type="range"]::-moz-range-thumb {
        width: 2rem;
        height: 2rem;
        margin-top: -0.25rem;
        background-color: var(--primary-color);
        border: 3px solid #32B0E5;
        border-radius: 50%;
        box-shadow: 0px 3px 4px darkgray;
    }

    .survey-grid .column-right form .square-btn {
        color: white;
        width: auto;
        padding: 1rem 1.5rem;
        display: block;
        margin: 0 auto;
    }

    .survey-grid .column-right .form-label-container {
        grid-row: 2 / 3;
        padding: 0 1rem;
    }

    .survey-grid .column-right .form-label-container div {
        font-weight: 500;
        font-size: 0.8rem;
        letter-spacing: 1px;
        color: var(--neutral-gray);
    }

    .range-response-container div {
        padding: 1rem 0px;
        background-color: var(--secondary);
    }
}

/* Chatbot */
core-block-chat core-chat h3,
h3[_ngcontent-ng-c699041680] {
    color: #0064FF!important;
    font-size: 25px!important;
    font-weight: 600!important;
    font-family: 'Poppins',Helvetica,Arial,Lucida,sans-serif!important;
    font-style: italic!important;
}

core-block-chat .btn.btn-secondary.chat-input-submit {
    background-color: #c4d600!important;
}