@keyframes click-wave {
    0% {
        height: 40px;
        width: 40px;
        opacity: 0.35;
        position: relative;
    }

    100% {
        height: 200px;
        width: 200px;
        margin-left: -80px;
        margin-top: -80px;
        opacity: 0;
    }
}

@keyframes lds-hourglass {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    50% {
        transform: rotate(180deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

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

#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    height: 50%;
    min-height: 300px;
    color: #212121;
}

#loading p,
#loading ul,
#loading div {
    color: #212121;
}

#loading #lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    color: #212121;
}

#loading #lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #5746a4;
    border-color: #5746a4 transparent #5746a4 transparent;
    animation: lds-hourglass 1.2s infinite;
    color: #212121;
}

#coreg_submit_button_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
}

#coreg_submit_button_wrapper #coreg_submit_button {
    background: #5746a4;
    color: white;
    padding: 20px;
    border-radius: 5px;
    border: none;
    font-size: 1.3rem;
    width: 50%;
    max-width: 970px;
    cursor: pointer;
}

#coreg_submit_button_wrapper #coreg_submit_button:hover {
    background: #9285cb;
}

#coreg_submit_button_wrapper div.error {
    color: #dd0000;
    text-align: center;
    width: 100%;
    padding-bottom: 15px;
}

.coreg_wrapper {
    max-width: 970px;
    margin-left: auto;
    margin-right: auto;
}

.coreg_offer {
    text-align: center;
    display: block;
    box-shadow: 0 10px 6px -6px #dddddd;
    border: 1px solid #919191;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-bottom: 30px;
    background: white;
    color: #212121;
}

.coreg_offer img {
    max-width: 100%;
}

.coreg_offer .coreg_heading {
    padding-top: 15px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0;
    font-weight: 600;
    font-size: 20px;
    color: #212121;
}

.coreg_offer .coreg_content {
    padding: 10px;
    padding-bottom: 0;
    line-height: 18px;
}

.coreg_offer .question_container {
    padding: 10px;
    padding-top: 0;
}

.coreg_offer p,
.coreg_offer ul,
.coreg_offer ul li {
    color: #212121;
    font-size: 1rem;
}

.coreg_offer .primary_question_answers label {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 35px;
    height: 35px;
    cursor: pointer;
}

.coreg_offer .primary_question_answers label span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    line-height: 40px;
    vertical-align: top;
}

.coreg_offer .primary_question_answers input[type="radio"] {
    -webkit-appearance: none;
    -o-appearance: none;
    appearance: none;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 35px;
    width: 35px;
    transition: all 0.15s ease-out 0s;
    border: 1px solid darkgray;
    background: whitesmoke;
    color: black;
    cursor: pointer;
    display: inline-block;
    outline: none;
    z-index: 1000;
    border-radius: 5px;
    margin: 0;
    min-width: 35px;
}

.coreg_offer .primary_question_answers input[type="radio"]:before {
    position: absolute;
    white-space: pre;
    display: inline;
    top: 0;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    line-height: 34px;
    font-size: 14px;
    color: white;
    content: '✗';
}

.coreg_offer .primary_question_answers input[type="radio"]:checked::after {
    -webkit-animation: click-wave 0.65s;
    animation: click-wave 0.65s;
    background: #40e0d0;
    content: '';
    display: block;
    position: relative;
    z-index: 100;
    border-radius: 5px;
}

.coreg_offer .primary_question_answers input[type="radio"].is_negative:before {
    content: '✗';
}

.coreg_offer .primary_question_answers input[type="radio"].is_positive:before {
    content: '✓';
}

.coreg_offer .primary_question_answers input[type="radio"].is_negative:checked {
    background: linear-gradient(135deg, rgba(230, 72, 65, 0.07)0%, rgba(230, 72, 65, 0.07)1%, rgba(230, 72, 65, 0.2)35%, rgba(230, 72, 65, 0.3)82%, rgba(230, 72, 65, 0.3)100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#12e64841', endColorstr='#4de64841', GradientType=1);
    color: white;
}

.coreg_offer .primary_question_answers input[type="radio"].is_positive:checked {
    background: linear-gradient(135deg, rgba(84, 225, 101, 0.07)0%, rgba(84, 225, 101, 0.07)1%, rgba(84, 225, 101, 0.2)35%, rgba(84, 225, 101, 0.3)82%, rgba(84, 225, 101, 0.3)100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1254e165', endColorstr='#4d54e165', GradientType=1);
    color: white;
}

.coreg_offer .primary_question_answers .coreg_select {
    border-radius: 40px;
    border: 1px solid darkgrey;
    width: 100%;
    max-width: 380px;
    color: #919191;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    margin-bottom: 10px;
    background-color: white;
    background-color: transparent;
    padding: 0 15px 0 15px;
    overflow: hidden;
    padding: 0 0 0 15px;
}

.coreg_offer .coreg-gdpr {
    padding-top: 7px;
    padding-bottom: 5px;
    color: #515151;
    font-size: 9px;
    font-style: italic;
}

#coreg_further_fields {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 75%;
    max-width: 875px;
    margin: auto;
    height: 85%;
    max-height: 1200px;
    min-height: 1000px;
    background: white;
    border: 2px solid darkgray;
    border-radius: 20px;
    z-index: 1001;
    padding: 15px;
    box-shadow: 0 0 500px 450px #222222;
    overflow: scroll;
}

#coreg_further_fields .form_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

#coreg_further_fields .further_fields_intro {
    font-size: 1.1rem;
    margin: 12px 0;
    text-align: center;
}

#coreg_further_fields div.error {
    color: #dd0000;
    text-align: center;
    width: 100%;
    padding-top: 7px;
}

#coreg_further_fields fieldset {
    border: 1px solid lightgrey;
    border-radius: 10px;
    padding: 8px;
}

#coreg_further_fields fieldset .form-field {
    padding: 5px 0;
    margin: 5px 0;
}

#coreg_further_fields fieldset .form-field.center {
    text-align: center;
}

#coreg_further_fields fieldset .form-field.center label {
    text-align: center;
    margin-bottom: 10px;
}

#coreg_further_fields fieldset label {
    font-weight: bold;
    padding: 8px 5px;
    font-size: 1rem;
    text-align: right;
    min-width: 20%;
    display: inline-block;
}

#coreg_further_fields fieldset input[type="text"],
#coreg_further_fields fieldset input[type="email"],
#coreg_further_fields fieldset select {
    padding: 8px 5px;
    font-size: 1.1rem;
    border: 2px solid lightgrey;
    border-radius: 3px;
    width: 70%;
    background: white;
}

#coreg_further_fields fieldset input[type="text"]#postcode,
#coreg_further_fields fieldset input[type="email"]#postcode,
#coreg_further_fields fieldset select#postcode {
    width: 60%;
}

#coreg_further_fields fieldset input[type="text"]#postcode~button,
#coreg_further_fields fieldset input[type="email"]#postcode~button,
#coreg_further_fields fieldset select#postcode~button {
    background: #5746a4;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 5px;
    width: 10%;
    cursor: pointer;
}

#coreg_further_fields fieldset input[type="text"]#postcode~button:hover,
#coreg_further_fields fieldset input[type="email"]#postcode~button:hover,
#coreg_further_fields fieldset select#postcode~button:hover {
    background: #9285cb;
}

#coreg_further_fields fieldset .radio-box {
    display: flex;
    justify-content: center;
    width: 75%;
    margin: 0 auto;
    color: #212121;
}

#coreg_further_fields fieldset .radio-box label {
    text-align: center;
    width: 45%;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #212121;
}

#coreg_further_fields fieldset .radio-box label:nth-of-type(1) span {
    background: white;
    border-radius: 8px 0 0 8px;
}

#coreg_further_fields fieldset .radio-box label:nth-of-type(1) input~.check_button {
    border-right: none;
}

#coreg_further_fields fieldset .radio-box label:nth-of-type(2) span {
    background: white;
    border-radius: 0 8px 8px 0;
}

#coreg_further_fields fieldset .radio-box label span {
    text-align: center;
}

#coreg_further_fields fieldset .radio-box label input {
    display: none;
}

#coreg_further_fields fieldset .radio-box label input~.check_button {
    display: block;
    max-width: 100%;
    padding: 20px 30px;
    border: 1px solid grey;
}

#coreg_further_fields fieldset .radio-box label input#gdpr_marketing_approved_no:hover~.check_button {
    background: rgba(221, 0, 0, 0.5);
    color: white;
}

#coreg_further_fields fieldset .radio-box label input#gdpr_marketing_approved_yes:hover~.check_button {
    background: rgba(87, 70, 164, 0.5);
    color: white;
}

#coreg_further_fields fieldset .radio-box label input#gdpr_marketing_approved_no:checked~.check_button {
    background: #dd0000;
    color: white;
}

#coreg_further_fields fieldset .radio-box label input#gdpr_marketing_approved_yes:checked~.check_button {
    background: #5746a4;
    color: white;
}

#coreg_further_fields #gdpr_text {
    text-align: left;
    margin-left: 22%;
    max-width: 70%;
    color: #212121;
    font-size: 1rem;
}

#coreg_further_fields #gdpr_text label {
    padding-left: 0;
}

#coreg_further_fields #gdpr_text p,
#coreg_further_fields #gdpr_text ul,
#coreg_further_fields #gdpr_text ul li {
    color: #212121;
    font-size: 1rem;
    margin-top: 0;
}

#coreg_further_fields #gdpr_text p {
    margin-bottom: 10px;
}

#coreg_further_fields #loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    height: 50%;
    min-height: 300px;
    color: #212121;
}

#coreg_further_fields #loading #lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

#coreg_further_fields #loading #lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #5746a4;
    border-color: #5746a4 transparent #5746a4 transparent;
    animation: lds-hourglass 1.2s infinite;
}

#coreg_further_fields .buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 150px;
}

#coreg_further_fields .buttons button {
    font-size: 1.2rem;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: #5746a4;
    width: 80%;
    cursor: pointer;
}

#coreg_further_fields .buttons button:hover,
#coreg_further_fields .buttons button:disabled {
    background: #9285cb;
}

#coreg_further_fields .buttons button.cancel {
    background: #bcbcbc;
}

#coreg_further_fields .buttons button.cancel:hover,
#coreg_further_fields .buttons button.cancel:disabled {
    background: #d6d6d6;
}

#no_positive_popup {
    width: 25%;
    height: 25%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: white;
    box-shadow: 0 0 500px 650px #222222;
    border: 3px solid lightgrey;
    z-index: 1000;
    color: #212121;
}

#no_positive_popup .no_positive_content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;
    font-size: 1.3rem;
}

#no_positive_popup .no_positive_content p {
    color: #212121;
    font-size: 1.2rem;
    text-align: center;
}

#no_positive_popup .no_positive_content a.cta {
    cursor: pointer;
    padding: 15px 20px;
    color: white;
    background: #5746a4;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    font-size: 1.3rem;
}

#no_positive_popup .no_positive_content a.cta:hover {
    background-color: rgba(87, 70, 164, 0.5);
}

#no_positive_popup .no_positive_content button.cancel {
    cursor: pointer;
    padding: 15px 20px;
    color: white;
    background: #bcbcbc;
    border-radius: 5px;
    border: none;
    font-size: 1.3rem;
}

#no_positive_popup .no_positive_content button.cancel:hover {
    background-color: #c9c9c9;
}

@media only screen and (max-width:767px) {
    #coreg_submit_button_wrapper #coreg_submit_button {
        width: 90%;
    }

    #coreg_further_fields {
        width: 90%;
        height: 95%;
        min-height: unset;
    }

    #coreg_further_fields .form_wrapper {
        height: auto;
    }

    #coreg_further_fields .form_wrapper #gdpr_text {
        margin-left: 10px;
        max-width: none;
        text-align: center;
    }

    #coreg_further_fields fieldset label {
        width: 100%;
        display: block;
        text-align: center;
    }

    #coreg_further_fields fieldset input[type="text"],
    #coreg_further_fields fieldset input[type="email"],
    #coreg_further_fields fieldset select {
        width: 100%;
        display: block;
        text-align: left;
    }

    #coreg_further_fields fieldset input[type="text"]#postcode,
    #coreg_further_fields fieldset input[type="email"]#postcode,
    #coreg_further_fields fieldset select#postcode {
        display: inline-block;
        width: 73%;
    }

    #coreg_further_fields fieldset input[type="text"]#postcode~button,
    #coreg_further_fields fieldset input[type="email"]#postcode~button,
    #coreg_further_fields fieldset select#postcode~button {
        width: 25%;
    }

    #coreg_further_fields fieldset .radio-box {
        width: 100%;
    }

    #coreg_further_fields fieldset .radio-box label {
        width: 45%;
    }

    #no_positive_popup {
        width: 75%;
        height: 50%;
        text-align: center;
    }
}
