/* ONE POLL PAGE */
.container-poll {
    min-height: calc(100vh - 430px);
}
  
.poll-wrap {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.poll-in-post {
    width: 95%;
    max-width: 810px;
    margin: 40px auto;
}
div > .poll-in-post:first-of-type {
    margin-top: 0;
}

.poll-in-index {
    max-width: 100%;
    margin-bottom: 30px;
    padding: 40px;
    box-shadow: none;
    border: 1px solid silver;
}

.poll-answer .poll-answer__text {
    font: 300 13px/18px "Roboto", sans-serif;
    letter-spacing: 0.4px;
}
.poll-question {
    font: 700 18px/24px "Roboto", sans-serif;
    color: #000;
    margin-bottom: 24px;
}
.poll-description {
    font: 400 17px/27px "Roboto", sans-serif;
    letter-spacing: 0.4px;
}
  
.poll-img-question-block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.poll-img-question-block .main-title {
    margin: 0;
    width: calc(100% - 365px);
}
  
.poll-img-block {
    width: 330px;
    height: 0;
    padding-bottom: 30%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.poll-img-block img {
    width: 100%;
}
  
.poll-answer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 23px 0 16px 4px;
    font-size: 17px;
    border-bottom: 2px solid #f4f4f4;
    transition: all ease 0.3s;
}
.poll-answer:hover {
    background: #f4f4f4;
    cursor: pointer;
}
.poll-answer:hover .custom-radio .poll-answer__select {
    border: 1px solid #8e8e8e;
}
.poll-answer .poll-answer__text {
    font: 400 16px/24px "Roboto", sans-serif;
    letter-spacing: 0.4px;
    color: #414141;
    width: calc(100% - 70px);
}
.poll-answer.poll-selected .custom-radio .poll-answer__select {
    border: 1px solid #d60021;
    background: url("/assets/img/icons/poll-check-item.svg") no-repeat center;
}
.poll-voted .poll-answer .poll-percents {
    opacity: 1;
    visibility: visible;
}
  
.custom-radio {
    display: flex;
    align-items: flex-start;
}
.custom-radio .display-none {
    display: none;
}
.custom-radio .poll-answer__select {
    width: 16px;
    height: 16px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
}
.poll-voted .custom-radio {
    display: none;
}
  
.poll-percents {
    font: 700 13px/18px "Roboto", sans-serif;
    color: #c0c0c0;
    opacity: 0;
    visibility: hidden;
}
  
.poll-voted .poll-answer {
    position: relative;
    cursor: default;
    user-select: none;
}
  
.poll-progressbar {
    display: none;
    position: absolute;
    z-index: 3;
    bottom: -2px;
    height: 4px;
    left: 0;
    background: #d60021;
}
.poll-voted .poll-progressbar {
    display: block;
}

.poll-btn {
    display: block;
    padding: 0 2rem;
    border: 1px solid #d60021;
    color: #fff;
    background-color: #d60021;
    font: 500 14px/46px "Noto Sans", sans-serif;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease;
}

.poll-voted-btn {
    margin: 40px auto 0;
    max-width: 240px;
}
.poll-btn:hover,
.poll-btn:active {
    color: #333;
    background-color: #FFFFFF;
}
.poll-btn:disabled,
.poll-btn[disabled=disabled] {
    user-select: none;
    background-color: #c0c0c0;
    border-color:#8e8e8e;
    color:#8e8e8e;
}

.poll-voted .poll-voted-btn {
    display: none;
}

.vote-text-success {
    text-align: center;
    margin-top: 2rem;
    color: #d60021;
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
    .poll-wrap,
    .poll-in-post,
    .poll-in-index {
        width: 100%;
    }
  
    .poll-img-block {
        padding-bottom: 24%;
    }
}

@media screen and (max-width: 991px) {
    .poll-img-question-block {
        flex-direction: column;
    }
    .poll-img-question-block .main-title {
        width: 100%;
    }
  
    .poll-img-block {
        padding-bottom: 56%;
        width: 100%;
        margin-bottom: 12px;
    }
}
@media screen and (max-width: 767px) {
    .polls-wrap .poll-item {
        width: 100%;
        margin-right: 0;
    }
    .polls-wrap .poll-item:nth-child(3n) {
        margin-right: 0;
    }
}

/* CAPTCHA */
.captcha-wrap {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 100;
}
.captcha-wrap .preloader {
    display: none;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, .5);
    z-index: 101;
    justify-content: center;
}
.captcha-wrap .preloader svg {
    width: 70px;
    height: 70px;
    fill: #15754C;
}
.captcha-wrap .preloader.active {
    display: flex;
}
.captcha {
    width: 100%;
    height: min-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.captcha .title {
    flex-basis: 100%;
    text-align: center;
}
.captcha .captcha_input {
    outline: none;
    border: 1px solid #414141;
}
.captcha .captcha_input.error {
    border-color: red;
    box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.2);
}
.captcha .image svg {
    display: block;
}
.captcha .captcha_input {
    box-sizing: border-box;
    height: 48px;
    max-width: 200px;
    padding: 0 20px;
}
.captcha > * + * {
    margin-left: 1rem;
}
@media screen and (max-width: 767px) {
    .captcha > * {
        margin: 0.5rem auto;
    }
}

.poll-in-index .captcha > * {
    margin: 0.5rem auto;
}