/*!
Theme Name: Opros Mamsila
Author: nkblz
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mamsila_poll
*/

/* alegreya-sans-regular - latin_cyrillic */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-regular.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}
/* alegreya-sans-italic - latin_cyrillic */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-italic.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-italic.woff2') format('woff2'), /* Super Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-italic.woff') format('woff'), /* Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-italic.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-italic.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}
/* alegreya-sans-500 - latin_cyrillic */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500.woff2') format('woff2'), /* Super Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500.woff') format('woff'), /* Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}
/* alegreya-sans-500italic - latin_cyrillic */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500italic.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500italic.woff2') format('woff2'), /* Super Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500italic.woff') format('woff'), /* Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-500italic.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}
/* alegreya-sans-700 - latin_cyrillic */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700.woff') format('woff'), /* Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}
/* alegreya-sans-700italic - latin_cyrillic */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700italic.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700italic.woff2') format('woff2'), /* Super Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700italic.woff') format('woff'), /* Modern Browsers */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/wp-content/themes/poll_mamsila/assets/fonts/alegreya-sans-v20-latin_cyrillic-700italic.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}

body, html {
    height: 100%;
}

body{
    margin: 0;
    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-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Alegreya Sans', sans-serif;
}

body.admin-bar{
    position: relative;
}

*{
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

li{
    list-style: none;
}

button{
    outline: none;
}

a, a:hover, a:active, a:visited{
    color: inherit;
    text-decoration: none;
}

main{
    width: 100%;
}

body > header{
    padding: 30px;
    background: #fff;
    margin-bottom: 70px;
}

body > footer{
    padding-top: 50px;
    background: #ffffff;
}

header{
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

main{
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    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-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

footer{
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    font-weight: 700!important;
}

.h1, h1 {
    font-size: 3.75rem;
}

p{
    line-height: 1.2;
}

.custom-logo{
    width: 180px;
}

.footer-copyright{
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: .75rem;
    color: #a8aab2;
}

.blue-btn{
    background: #2BBECD;
    color: #fff!important;
    font-size: 14px;
    line-height: 1.29;
    padding: 8px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    -webkit-transition: 0.15s ease-in-out;
    -o-transition: 0.15s ease-in-out;
    transition: 0.15s ease-in-out;
    border: none;
}

.blue-btn:hover{
    -webkit-filter: brightness(110%);
    filter: brightness(110%);
}

.blue-btn:active{
    -webkit-filter: brightness(90%);
    filter: brightness(90%);
}

#quiz{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 30px;
    margin-bottom: 70px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.block{
    width: 100%;
    min-width: 300px;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.row .block{
    width: calc(100% - var(--bs-gutter-x));
    margin-left: calc( var(--bs-gutter-x) * 0.5 );
}

.bg-wrapper{
    background: #fff;
}

#hello{
    margin-bottom: 70px;
}

#hello .blue-btn{
    display: inline-block;
    margin-top: 20px;
    background: #F94543;
    padding: 20px 50px;
    font-size: 30px;
}

#hello .wp-post-image{
    margin-bottom: 1rem;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 5px;
}

.hello-text{
    font-size: .8rem;
}

.hello-text a:hover{
    color: #2BBECD;
}

.hello__content p:last-child{
    margin-bottom: 0;
}

.quiz-header{
    text-align: center;
    margin-top: -10px;
    margin-bottom: 60px;
}

#first-form{
    margin-bottom: 70px;
}

body.page-id-2 main{
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

body.page-id-2 footer{
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
}

#first-form{
    text-align: center;
    margin: 30px auto;
    max-width: 50%;
    min-width: 250px;
}

.form-field{
    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;
    position: relative;
}

.form-field:not(:first-of-type){
    margin-top: 2rem;
}

/*.form-field.validated::after{*/
/*    content: '';*/
/*    display: block;*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    background-repeat: no-repeat;*/
/*    position: absolute;*/
/*    right: -40px;*/
/*    top: 60px;*/
/*}*/

/*.form-field.validated.valid::after{*/
/*    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5229 4.47715 20 10 20C15.5229 20 20 15.5229 20 10C20 4.47715 15.5229 0 10 0ZM14.2908 4.68383L16.3684 6.76147L9.87915 13.252L7.81372 15.3162L5.73608 13.2385L3.63158 11.1328L5.6958 9.06858L7.8003 11.1743L14.2908 4.68383Z' fill='%232BBECD'/%3E%3C/svg%3E%0A");*/
/*}*/

/*.form-field.validated.invalid::after{*/
/*    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C15.5229 0 20 4.47715 20 10C20 15.5229 15.5229 20 10 20C4.47715 20 0 15.5229 0 10ZM10.086 8.862L8.934 6.99L8.556 6L6 6.126L8.448 10.23L6.018 14.424H8.124L8.52 13.578L9.762 11.544L10.95 13.47L11.364 14.532L13.884 14.352L11.364 10.176L13.776 6.072H11.67L11.22 6.918L10.086 8.862Z' fill='%23EB4747'/%3E%3C/svg%3E%0A");*/
/*}*/

.field-title{
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.form-check-input {
    border-color: #E5E5E5;
    border-width: 2px;
    background-color: #fff;
}

.form-check{
    padding: 10px 13px 10px 36px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-check.active{
    border-color: #175D64;
}

.form-check-input:checked {
    border-color: #E5E5E5;
    border-width: 2px;
    background-color: #175D64;
}

#first-form .blue-btn{
    font-size: 22px;
    padding: 11px 32px;
}

input[type=radio]:focus{
    outline: none;
}

.form-check-input:checked[type=radio] {
    background-image: none;
}

.form-check-input:checked[type=radio] + label{
    color: #175D64;
}

.form-field input[type=text],
.form-field select{
    color: #175D64;
    text-align: center;
}

.form-field input[type=text],
.form-field select,
label:not(.field-title){
    font-size: 18px;
    font-weight: 500;
}

.form-control,
.form-select{
    border: 1px solid rgba(0, 0, 0, 0.1);
}


input[type=checkbox]{
    width: 1px;
    height: 1px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

input[type=checkbox] + .checkbox{
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-bottom: 3px;
}

input[type=checkbox]:checked + .checkbox{
    border: 2px solid #E5E5E5;
    background-color: #175D64;
}

.checkbox-label{
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.checkbox-wrapper{
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 13px;
    border-radius: 5px;
}

.form-select{
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='10' viewBox='0 0 11 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.23205 9C6.46225 10.3333 4.53775 10.3333 3.76795 9L0.736859 3.75C-0.0329417 2.41667 0.92931 0.750001 2.46891 0.750001L8.53109 0.75C10.0707 0.75 11.0329 2.41667 10.2631 3.75L7.23205 9Z' fill='%23175D64'/%3E%3C/svg%3E");
}

#quiz .carousel-item{
    -webkit-transition: -webkit-transform .2s ease-in-out;
    transition: -webkit-transform .2s ease-in-out;
    -o-transition: transform .2s ease-in-out;
    transition: transform .2s ease-in-out;
    transition: transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}

.answers-wrapper label{
    text-align: left;
}

.form-check-input[type=radio]{
    min-width: 1rem;
    min-height: 1rem;
}

.doughnut-chart-wrapper{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.quiz-wrapper{
    display: none;
}

.progress{
    border-radius: 50px;
    background: #F6F6F6;
    height: 12px;
}

.progress-bar{
    min-width: max-content;
    background: #2BBECD;
    color: #fff;
    font-weight: 500;
    text-align: center;
    font-size: 18px;
}

.quiz-wrapper .progress{
    height: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.quiz-wrapper .form-check{
    border: none;
    padding-bottom: 0;
}

.question_title{
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: left;
}

.quiz-prev{
    background-color: #777!important;
}

.quiz-next,
.thank-you .blue-btn{
    font-size: 22px;
    line-height: 1.2;
    padding: 11px 32px;
}

.question-image{
    border-radius: 5px;
}

.thank-you{
    height: 400px;
    border-radius: 5px;
}

.thank-title{
    text-align: center;
    color: #fff;
}

.post-password-form{
    margin-bottom: 70px;
}

.ppf-input-wrapper{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 220px;
}

.ppf-input-wrapper .blue-btn{
    padding: 11px 32px;
    background: #175D64;
    font-size: 1rem;
}

.ppf-input-wrapper label{
    font-weight: 400;
    font-size: 1rem!important;
}

input[name=post_password]{
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 30px;
    background: transparent;
}

.page-result-header{
    text-align: left;
}

.all-count-circle{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #2BBECD;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 3.75rem;
}

.graph-answer-counts{
    color: #175D64;
    font-size: 1.75rem;
    line-height: 1.2;
}

.graph-percent{
    color: initial;
    font-size: 1.35rem;
    font-weight: 500;
}

.answer-text{
    font-size: 1.125rem;
    line-height: 1.2;
    color: #B1B1B1;
}

.branch-tabs .nav-link{
    font-size: 20px;
    color: initial;
}

.branch-tabs .nav-link:hover,
.branch-tabs .nav-link.active{
    color: #2BBECD;
}

.chart-wrapper.first-chart .total {
    z-index: 2;
    font-size: 48px;
    font-weight: 600;
    position: absolute;
    color: #fff;
}

.answer-image{
    width: 100%;
}

.poll-header-wrapper{
    padding-top: 70px;
    margin-top: -70px;
    height: 280px;
    max-height: 50vh;
    z-index: -1;
}

.with-image .form-check-input{
    border-color: #2cbecd;
    border-width: 3px;
}

.form-check-input:hover,
.form-check-label:hover{
    cursor: pointer;
}

.question .answer input[type=checkbox]{
    border-radius: 50%;
    width: 1em;
    height: 1em;
    position: static;
    opacity: 1;
}

.with-image label{
    border: 5px solid transparent;
}

.with-image input[type=radio]:checked + label{
    border-color: rgb(23, 93, 100);
}

.with-image input[type=radio] + label img{
    border: 4px solid transparent;
    transition: 0.4s all;
}

.with-image input[type=radio]:checked + label img{
    box-shadow: 0 0 15px 1px;
}

.js-get-gift.disabled{
    opacity: 0.7;
    pointer-events: none;
    background: transparent;
}

@media screen and (max-width: 1650px){
    .poll-header-wrapper{
        background-size: contain!important;
    }
}

@media screen and (max-width: 1400px){
    #hello .wp-post-image{
        object-fit: contain;
        object-position: top;
        margin-bottom: -60px;
    }
}

@media screen and (max-width: 1280px){
    .poll-header-wrapper{
        background-position: 85% center!important;
        background-size: auto 200px!important;
    }
}

@media screen and (max-width: 1199px){
    #hello .wp-post-image{
        margin-bottom: -120px;
    }

    .question-image{
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }

    .poll-header-wrapper{
        background-color: #fff!important;
    }
}

@media screen and (max-width: 1023px){
    .poll-header-wrapper{
        background: #fff no-repeat center / contain url('/wp-content/themes/poll_mamsila/assets/imgs/b1_768x300.png') !important;
    }
}

@media screen and (max-width: 991px){
    #hello .wp-post-image{
        margin-bottom: 0;
    }

    #first-form{
        max-width: 100%;
    }
}

@media screen and (max-width: 768px){
    #hello .wp-post-image{
        margin-bottom: 1rem;
        height: 100%;
    }

    body > header .col:first-child{
        display: none;
    }

    .question_title{
        font-size: 1.5rem;
    }

    .h1, h1 {
        font-size: 2.75rem;
    }
}

@media screen and (min-width: 576px){
    .quiz-prev{
        font-size: 22px;
        line-height: 1.2;
        padding: 11px 32px;
    }
}

@media screen and (max-width: 575px){
    body > header{
        margin-bottom: 30px;
    }

    .quiz-header{
        margin-bottom: 30px;
    }

    .form-check{
        margin-bottom: 0.5rem;
    }

    .question_title{
        font-size: 1.5rem;
        text-align: center;
    }

    .quiz-next {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .quiz-prev{
        background-color: #777!important;
    }
}

@media screen and (max-width: 480px){
    .poll-header-wrapper{
        margin-top: -50px;
        height: 200px;
    }

    .blue-btn{
        padding: 8px 16px;
        font-size: 12px;
    }

    #quiz{
        padding: 1rem;
        margin-bottom: 30px;
    }

    .custom-logo{
        width: 100px;
    }

    body > header{
        padding: 1rem;
    }

    .h1, h1{
        font-size: 2.5rem;
    }

    #hello .blue-btn,
    .quiz-next,
    .thank-you .blue-btn{
        font-size: 20px;
        padding: 10px 30px;
    }
}
