/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#review_form {
    accent-color: #696;
}

#review_form p {
    padding: 0;
    margin: 0;
}

#review_form #error-message {
    width: 525px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    padding: 5px;
    text-align: center;
    border: 1px solid black;
    background-color: lightgoldenrodyellow;
}

#review_form #error-message:empty {
    display: none;
}

#review_form input[type='radio'] {
    width: 25px;
    height: 25px;
    border: 2px solid #ddd;
    background: #fff no-repeat center center;
    border-radius: 50%;
}

#review_form input[type='radio']:checked {
    background-image: url('/wp-content/plugins/bge_nps_survey/radio.svg');
}

#review_form #nps-form {
    background: #eee;
    color: #333;
    text-shadow: none;
    border: 2px groove #999;
    padding: 0 25px 25px;
    width: 525px;
    margin: 0 auto;
    height: auto;
}

#review_form {
    position: relative;
    margin: 30px auto 30px;
}

#review_form h2 {
    font-size: 32px;
    margin-top: 20px;
    margin-bottom: 10px;
}

#review_form input:-webkit-autofill,
#review_form input:-webkit-autofill:hover,
#review_form input:-webkit-autofill:focus,
#review_form input:-webkit-autofill:active {
    -webkit-transition: background-color 5000s ease-in-out 0s;
            transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #888;
}


#review_form #ratings-wrapper-mobile {
    display: none;
}

#review_form select.rating-selector {
    font-size: 18px;
    margin-bottom: 10px;
    padding: 3px;
}

#review_form div.approval-div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
}

#review_form p.closing {
    font-size: 16px;
    margin-bottom: 30px;
}

#review_form input[type='text'],
#review_form input[type='email'] {
    width: 100%;
    padding: 7px;
    margin: 0 0 5px;
    border: 1px solid darkgray;
    background: #fff;
    color: #333;
    font-family: inherit;
    -webkit-text-fill-color: #333;
    font-size: 17px;
}

#review_form div.email-div {
    margin-bottom: 20px;
}

#review_form div.email-div #email-notice {
    display: none;
}

#review_form textarea {
    width: 100%;
    height: 81px;
    padding: 5px;
    margin-bottom: 0;
    border: 1px solid darkgray;
    background: #fff;
    font-size: 17px;
    color: #333;
    font-family: inherit;
}

#review_form textarea:focus {
    outline-color: #B1B1B1; 
}

#review_form #submit_button {
    background-color: #696;
    color: white;
    border-radius: 5px;
    width: 150px;
    height: 42px;
    border: 0;
}

#review_form #submit_button:hover {
    cursor: pointer;
    background-color: #527c52;
}

#review_form #submit_button:focus {
    -webkit-box-shadow: 0 12px 16px 0 rgba(0,0,0,.24);
            box-shadow: 0 12px 16px 0 rgba(0,0,0,.24);
}

#review_form #ratings-star-wrapper {
    height: 16px;
    padding: 5px 0;
    margin: 0 auto 15px;
    width: 420px;
}

#review_form #ratings-star-wrapper div.rating-num input[type='radio'] {
    width: 20px;
    height: 20px;
}

#review_form div.approval-div input[type='checkbox'] {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    margin-left: 0;
    margin-right: 10px;
}

#review_form p.field-label {
    padding-bottom: 0;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 5px;
}

#review_form div.approval-div p.field-label {
    line-height: 1.3333;
    margin: 0;
}

#review_form #ratings-wrapper #ratings-range {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0;
    font-size: 14px;
}

#review_form #ratings-wrapper {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

#review_form #ratings-star-choices {
    margin-left: -10px;
    margin-right: -8px;
    margin-bottom: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

#review_form #ratings-wrapper p:empty {
    display: none;
}

#review_form #ratings-wrapper div.rating-num {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
        flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: 30px;
    padding-left: 3px;
    width: 5px;
}

#review_form p.question1 {
    font-size: 17px;
    margin-bottom: 20px;
}

#review_form p.question.question-padding {
    margin-top: 0;
    margin-bottom: 9px;
    margin-top: 23px;
}

#review_form #overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,.6);
}

#review_form .cv-spinner {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#review_form .spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    -webkit-animation: sp-anime .8s infinite linear;
            animation: sp-anime .8s infinite linear;
}

@-webkit-keyframes sp-anime {
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@keyframes sp-anime {
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

#review_form div.mobile-star-ratings-range {
    margin-bottom: 5px;
}

#review_form #ratings-star-wrapper {
    display: block;
}

@media (max-width: 650px) {
    #review_form textarea {
        width: 100%;
    }

    #review_form h2,
    #review_form h2 a {
        font-size: 24px;
    }

    #review_form #ratings-star-wrapper {
        height: auto;
        padding: 5px 0;
        margin: 0 auto 15px;
        width: 100%;
        text-align: center;
    }

    #review_form #error-message,
    #review_form #nps-form {
        width: calc(100% - 10px);
    }
}

@media (max-width: 600px) {
    #review_form #ratings-wrapper-mobile {
        display: block;
    }

    #review_form #ratings-wrapper {
        display: none;
    }
}

@media (max-width: 450px) {
    #review_form h2 {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    #review_form #error-message {
        width: 100%;
    }

    #review_form #nps-form {
        width: 100%;
        padding: 0;
        padding-bottom: 20px;
        border: 0;
        background-color: transparent;
    }

    #review_form h2 {
        background: lightgoldenrodyellow;
    }
}

@media (max-width:350px) {
    #review_form h2 {
        font-size: 26px;
    }

    #review_form #ratings-wrapper-mobile > div.mobile-star-ratings-range {
        font-size: 17px;
    }
}
