:root {
    --color-lightblue: #CFE5F8;
    --color-blue: #85C4E8;
    --color-darkblue: #102D69;
}

._change:not(._static) {
    line-height: 18px;
    font-size: 10px !important;
}

.quizzy {
    display: none !important;
}

.form-ad__container.open {
    transform: translateY(-0%);
}

.form-ad__container {
    transform: translateY(-200%);
    transition: transform 0.8s ease;
    position: fixed;
    overflow: auto;
    padding-top: 40px;
    top: 0;
    z-index: 999;
    background-color: #dddddd7c;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    scrollbar-color: #666666 #b4b4b4;
    scrollbar-width: thin;
}

.form-ad__container::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #b4b4b4;
}

.form-ad__container::-webkit-scrollbar-thumb {
    background-color: #666666;
    border-radius: 9em;
}

.form-ad__container::-webkit-scrollbar-thumb:hover {
    background-color: #666666;
}

.form-ad__form {
    position: relative;
    width: 95%;
    max-width: 700px;
    padding: 50px;
    border-radius: 45px;
    box-shadow: 0 0 40px 2px #3f3f3f;
    background-color: white;
    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;
    margin: auto;
}

.form-ad__box {
    position: relative;
    width: 95%;
    max-width: 660px;
    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;
}

.form-ad__form form {
    width: 90%;
}

.form-ad__form-title {
    font-family: 'Cocon';
    text-align: center;
    font-size: 20px;
    line-height: 1;
    color: var(--color-darkblue);
    margin-bottom: 15px;
}

.form-ad__form-title img {
    width: 180px;
    display: block;
    margin: 0 auto 15px auto;
}

.form-ad__form-close {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 25px;
    top: 15px;
    z-index: 100;
}

.form-ad__form-close img {
    width: 30px;
}

.form-ad__form-close img:hover {
    cursor: pointer;
}

.form-item__label {
    font-size: 16px !important;
    opacity: 0.5 !important;
}

.form-item._not-empty .form-item__label:not(._static) {
    font-size: 10px !important;
}

.form-item._shadow input[type=text],
.form-item._shadow input[type=tel],
.form-item._shadow input[type=email] {
    font-size: 16px;
    -webkit-box-shadow: 0 0 0 1px #b4b4b4 !important;
    box-shadow: 0 0 0 1px #b4b4b4 !important;
}

.form-item._error input[type=text],
.form-item._error input[type=tel],
.form-item._error input[type=email],
.form-item._error input[type=password] {
    -webkit-box-shadow: 0 0 0 1px red !important;
    box-shadow: 0 0 0 1px red !important;
}

.form-item {
    margin: 0 0 10px 0 !important;
}

.form-ad__file ._labelFile {
    color: #002169;
    padding: 0;
    background-color: white;
    display: block;
    font-size: 16px;
    font-family: inherit;
    margin: 10px 0 10px 15px;
    padding: 8px 26px;
    border: 1px solid #002169;
    border-radius: 10px;
}

.form-ad__file {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.form-ad__file ._fileText {
    margin-left: 10px;
    color: #002169;
    font-size: 12px;
    line-height: 1.1;
    width: 40%;
    overflow-wrap: break-word;
}

.form-ad__file ._labelFile:hover,
.form-ad__file ._labelFile:focus {
    background-color: #002169;
    color: white;
}

.form-ad__file input {
    width: .1px;
    height: .1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1
}

.form-ad__file input+._labelFile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    cursor: pointer
}

.form-ad__file img {
    width: 92px;
}

.form-ad__form-check {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    padding-top: 0px;
    line-height: 1;
    font-size: 12px;
    width: 85%;   
    margin: 20px auto;
}

.form-ad__form-check a {
    text-decoration: underline;
}

.form-ad__form-check a:hover {
    color: #808080;
}

.form-ad__form-check span {
    width: auto;
    display: block;
    color: var(--color-darkblue);
    padding-left: 11px;
}

.form-ad__form-check input[type=checkbox]+i {
    -webkit-box-shadow: 0 0 0 2px var(--color-blue) !important;
    box-shadow: 0 0 0 2px var(--color-blue)!important;
    left: 2px !important;
    position: absolute !important;
    transform: translate(0, -50%);
    margin: 8px 6px 0 0 !important;
}

.form-ad__form-box {
    margin-top: 40px !important;
}

.form-ad__form-check input[type=checkbox]+i:before {
    width: 16px !important;
    height: 16px !important;
    bottom: 0px !important;
    left: 0px !important;
    background-color: var(--color-blue);
    background-image: url(done.svg) !important;
    background-size: 80% 80% !important;
    background-position: center;
    background-repeat: no-repeat;
}

.form-ad__form-box button {
    padding: 15px 100px;
    font-size: 24px;
    text-transform: uppercase;
    border: none;
    line-height: 1;
    background-color: #6EB6D6;
    color: white;
    font-family: inherit;
    border-radius: 50px;
    font-weight: bold;
}

.form-ad__form-box button:hover {
    background-color: #EAF4FC;
    ;
    color: #6EB6D6;
    cursor: pointer;
}

.fpf-1 {
    position: absolute;
    left: 25%;
    bottom: 0;
}

.form-ad__box-end {
    position: relative;
    width: 95%;
    max-width: 840px;
    padding: 50px 50px 25px 50px;
    border-radius: 30px;
    background-color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    line-height: 1;
    color: #002169;
    font-family: 'Century Gothic', sans-serif;
    font-size: 14px;
    margin: auto;
}

.form-ad__box-end-title {
    font-family: 'Cocon', sans-serif;
    font-size: 24px;
    padding-left: 170px;
    color: #102D69;
}

.form-ad__box-end a {
    font-weight: bold;
}

.form-ad__spacer-end {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    height: 100px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.form-ad__spacer-end img {
    margin-left: 5px;
}

.form-ad_close-end {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 25px;
    top: 15px;
    z-index: 100;
}

.form-ad_close-end img {
    width: 30px;
}

.form-ad__box-end-logo img {
    width: 110px;
    transform: rotateZ( -54deg);
}

.form-ad__box-end-text {
    font-size: 14px;
    color: #002169;
    padding-left: 170px;
    margin: 4px 0px;
    line-height: normal;
}

.form-ad__box-end-li {
    text-align: left;
    margin-left: 20px;
}

.form-ad__box-end-li li {
    list-style: disc;
    padding: 0;
    margin: 10px 0;
}

.form-ad__box-end-li li::before {
    background-image: none;
}

.form-ad__box-end-greet {
    font-size: 24px;
    font-family: 'Cocon', sans-serif;
    color: #85c4e8;
    /* padding-left: 170px; */
    margin: 0 auto;
    max-width: 280px;
}

.form-ad__box-img-left {
    position: absolute;
    max-width: 169px;
    left: 25px;
    top: 15px;
}

.form-ad__box-img-right {
    position: absolute;
    max-width: 146px;
    right: 50px;
    bottom: 0px;
}

.form-ad__box-img-mobile {
    display: none;
}

@media (max-width: 1000px) {
    .form-ad__container {
        display: block;
        padding: auto;
    }
    .form-ad__form {
        margin: auto;
    }
    .form-ad__box-end {
        margin: auto;
    }
    .form-ad__form-check {
        font-size: 14px;
    }
    .form-ad__form {
        padding: 25px 30px;
    }
}

@media (max-width: 700px) {
    .form-ad__form form {
        width: 100%;
    }
    .form-ad__sponsor-end img {
        margin: 5px 5px 0 0;
    }
    .form-ad__form-close {
        padding-right: 2%;
    }
    .form-ad__form-close img {
        width: 20px;
    }
    .form-ad_close-end img {
        width: 20px;
    }
    .form-ad__form {
        padding: 15px;
    }
    .form-ad__box-img-left {
        max-width: 26.5%;
    }
    .form-ad__box-img-right {
        max-width: 23%;
        right: 50px;
    }
    .form-ad__box-end-title {
        font-size: 3.2vw;
        padding-left: 32%;
    }
    .form-ad__box-end-text {
        font-size: 2vw;
        padding-left: 32%;
    }   
    /* .form-ad__box-end-greet {
        font-size: 3.4vw;
        padding-left: 32%;
    }    */
    .form-ad__box-end {
        margin-top: 60px;
        /* padding: 45px 20px 25px 20px; */
    }
    .form-ad__box-end-title {
        /* font-size: 20px; */
    } 
}

@media (max-width: 500px) {
    .form-ad__box-end {
        padding: 50px 10px 25px 20px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;          
    }
    .form-ad__box-end-title {
        font-size: 24px;        
        padding-left: 0px;
        padding-top: 25px;
        text-align: center;
    }   
    .form-ad__box-end-text {
        font-size: 14px;
        padding-left: 0px;
        /* text-align: center; */
    }
    .form-ad__box-end-greet {
        font-size: 24px;   
        padding-left: 0px;
        text-align: center;        
    }
    .form-ad__box-img-left {
        display: none;
    }
    
    .form-ad__box-img-right {
        display: none;
    }
    
    .form-ad__box-img-mobile {
        display: block;
    } 
    .form-ad__box-img-mobile img {
        max-width: 305px;
        width: 100%;
    }
    .form-ad__form {
        border-radius: 25px;
    }
    .form-ad__form-close {
        right: 10px;
    }
    .form-ad__form-title {
        font-size: 18px;
        line-height: 1;
    }
    .form-ad__form-title img {
        width: 100px;
    }
    .form-item._shadow input[type=text],
    .form-item._shadow input[type=tel],
    .form-item._shadow input[type=email],
    .form-item._shadow input[type=password] {
        height: 40px !important;
    }
    .form-item__label {
        height: 40px !important;
        line-height: 40px !important;
    }
    .form-item__label {
        font-size: 14px !important;
        opacity: 0.5 !important;
    }
    .form-item._not-empty .form-item__label:not(._static) {
        font-size: 10px !important;
        line-height: 10px !important;
    }
    ._change:not(._static) {
        line-height: 10px !important;
    }
    .form-ad__file {
        flex-direction: column;
    }
    .form-ad__file ._labelFile {
        margin: 15px;
    }
    .form-ad__file ._fileText {
        width: auto;
    }
    .form-ad__form-check br {
        display: none;
    }
    .form-ad__form-box button {
        font-size: 20px;
        padding: 15px 20%;
    }
    .form-ad__sponsor-end img {
        height: 23px;
        width: auto;
    }
    .form-ad__box-end span {
        font-size: 16px;
    }
    .form-ad__spacer-end {
        height: 80px;
    }
    .form-ad__spacer-end img {
        height: 40%;
        width: auto;
        min-width: auto;
    }
    .form-ad__form__title img {
        width: 150px;
    }
    .form-ad__box-end-logo img {
        width: 70px;
    }
}