﻿.container.main-container {
    max-width: 1240px;
    margin: 0 auto 200px auto;
    padding-left: 20px;
    padding-top: 30px;
}

.banner {
    min-height: 554px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 40px 40px 6%;
    background: url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/boul-right.png") bottom right no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/snow-banner.png") top right no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/bouls.png") bottom left no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/scarf.png") top left no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-left.png") center right repeat-y, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-left.png") center left repeat-y, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-bottom.png") top center repeat-x, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-bottom.png") bottom center repeat-x, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/banner-wood.png") center center no-repeat;
    background-size: 95px auto, 61px auto, 160px auto, 140px auto, 30px auto, 30px auto, auto 30px, auto 30px, cover;
    border-radius: 20px;
}

    .banner-top::after {
        display: block;
        content: "";
        width: 474px;
        height: 450px;
        background: url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/gift-card.png") center center no-repeat;
        background-size: contain;
        flex-shrink: 0;
        max-width: 80%;
    }


.banner-header {
    color: #22355C;
    font-family: "Playfair Display", Montserrat, sans-serif;
    font-size: 48px;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
    max-width: 530px;
}

.page-header span{
    font-weight: 700;
    font-size: 46px;
    line-height: 1.2;
}
.page-section {
    margin-bottom: 40px;
}

.text-wrapper p {
    color: #181818;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6; /* 30.4px */
}


.select-top-wrapper{
    margin-bottom: 36px;
}

.profession-select {
    width: 100%;
    height: 52px;
    padding: 0 26px;
    border: 1px solid #006810;
    border-radius: 5px;
    font-weight: 500;
    font-size: 15px;
}

.form-banner {
    padding: 100px 6%;
    background: url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/boul-right.png") bottom right no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/marks.png") top right no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/bouls.png") bottom left no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/scarf.png") top left no-repeat, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-left.png") center right repeat-y, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-left.png") center left repeat-y, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-bottom.png") top center repeat-x, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/border-bottom.png") bottom center repeat-x, url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/banner-wood.png") center center no-repeat;
    background-size: 95px auto, auto 130px, 160px auto, 140px auto, 30px auto, 30px auto, auto 30px, auto 30px, cover;
    position: relative;
    z-index: 0;
}

    .form-banner::before {
        display: block;
        content: "";
        background: url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/form-marks-top.png") center center no-repeat;
        background-size: contain;
        width: 108px;
        height: 92px;
        position: absolute;
        top: 10px;
        left: 130px;
        flex-shrink: 0;
    }

.form-banner-container{
    flex: 1;
}

.form-flex-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 42px;
}

.form-part {
    width: 49%;   
    position: relative;
}

    .form-part h3 {
        color: #22355C;        
        font-family: "Playfair Display", Montserrat, sans-serif;
        font-size: 32px;
        font-style: italic;
        font-weight: 700;
        line-height: 1.2; /* 38.4px */

    }

.input-group {
    border-radius: 10px;
    border: 4px dashed #FFF;
    padding: 38px 5%;
    
}

    .form-part:nth-child(2):after {
        display: block;
        content: "";
        background: url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/form-right.png") center center no-repeat;
        background-size: contain;
        width: 178px;
        height: 140px;
        position: absolute;
        bottom: -78px;
        right: -20px;
        flex-shrink: 0;
    }
    .input-group input {
        display: block;
        width: 100%;
        background: transparent;
        height: 50px;
        border: 1px solid transparent;
        border-bottom-color: rgba(48, 48, 48, 0.90);
        color: rgba(48, 48, 48, 0.90);
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }

    .input-group label {
        color: rgba(48, 48, 48, 0.90);
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2; /* 16.8px */
    }

.congratulation-form .form-button {
    display: block;
    margin: 0 auto;
    width: 224px;
    max-width: 100%;
    padding: 10px;
    color: #FFF;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    background: linear-gradient(93deg, #DA4F5D -15.12%, #FE3145 109.53%);
}

.congratulation-form .form-button:hover {
    background-color: rgba(255, 255, 255, .9);
}



/*Popup*/
    .congratulation-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.popup-shadow {
    background: rgba(0, 0, 0, .5);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.congratulation-popup-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 90%;
    max-width: 460px;
    background-color: white;
    background-image: url("//cdn.specialist.ru/content/file/layouts/congratulation-friend/img/popup-back.png");
    background-position: top center;
    background-repeat: repeat-x;
    padding: 60px 40px 40px 40px;
    border-radius: 25px;
    max-height: 90vh;
    overflow: auto;
}

.congratulation-close-button {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-image: url("//cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/close.png");
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

    .congratulation-close-button:hover {
        opacity: 0.7;
    }

.congratulation-popup-header {
    font-weight: 600;
    font-size: 26px;
    line-height: 1.1;
    text-align: center;
    color: #171820;
    margin-bottom: 22px;
}

.popup-input-wrapper {
    margin-bottom: 12px;
}

    .popup-input-wrapper input {
        display: block;
        width: 100%;
        height: 42px;
        padding-left: 11px;
        background: #F8F8F8;
        border: 1px solid #CCD8E3;
        border-radius: 5px;
    }

.congratulation-popup-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #0F5BA8;
    border-radius: 5px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

    .congratulation-popup-button:hover {
        background: #004677;
    }

    .congratulation-popup-button:after {
        display: block;
        content: "";
        background-image: url("https://cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/right-small.png");
        background-position: center;
        background-repeat: no-repeat;
        width: 22px;
        height: 22px;
        margin-left: 8px;
    }

.popup-button-wrapper {
    margin-bottom: 18px;
}

.congratulation-form .popup-checkbox-wrapper {
    width: 100%;
    transform: none;
}

    .congratulation-form .popup-checkbox-wrapper label {
        align-items: flex-start;
        font-weight: 300;
        font-size: 12px;
        line-height: 1.2;
    }

        .congratulation-form .popup-checkbox-wrapper label a {
            font-weight: 400;
            text-decoration: underline;
        }

    .congratulation-form .popup-checkbox-wrapper .fake-input {
        background: #F8F8F8;
        border: 1px solid #CCD8E3;
        border-radius: 5px;
        width: 26px;
        height: 26px;
    }

.congratulation-popup-subheader {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
    color: #171820;
    margin-bottom: 24px;
}

.popup-buttons-wrapper {
    display: flex;
    justify-content: space-between;    
}

.popup-buttons-wrapper .congratulation-popup-button {
    width: 45%;
}

.congratulation-popup-button.grey {
    background: #5B6977;
}

.congratulation-popup-button.grey:hover {
    background: #555;
}

.congratulation-popup-text p {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #000000;
    margin-bottom: 10px;
}

.congratulation-popup-text p strong {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    color: #000000;
}

.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, .4);
    z-index: 5;
}

.loader.active {
    display: block;
}

@media (max-width: 1240px) {
    .main-container{
        padding: 20px;
    }
}

@media(max-width: 950px){
    .banner-top{
        flex-direction: column;
        gap: 24px;
        align-items: stretch;        
    }

        .banner-top::after{
            align-self: center;
        }

    .banner-header{
        padding-left: 100px;
        max-width: none; 
    }

    .form-banner{
        padding: 140px 40px 60px 40px;        
    }

    .form-flex-row {
        display: block;
    }

    .form-part {
        width: 100%;
        margin-bottom: 20px;
    }

        .form-part:last-child {
            margin-bottom: 0;
        }
}


@media (max-width: 600px) {
    .banner-top::after {
        height: 60vw;
    }

    .banner-header {
        font-size: 30px;
        line-height: 1.3;
        padding-left: 40px;
        padding-top: 40px;
    }

    .text-wrapper p{
        font-size: 16px;
    }

    .page-header span {
        font-size: 30px;
    }

    .congratulation-form .form-button {
        width: 100%;
    }

    .form-part:nth-child(2):after {
        display: none;
    }
}

@media(max-width: 480px){
    .banner {
        background-size: 65px auto, 60px auto, 80px auto, 100px auto, 20px auto, 20px auto, auto 20px, auto 20px, cover;
    }

    .form-banner::before{
        display: none;
    }

    .form-banner {
        padding: 80px 40px 60px 40px;
    }
}

.form-part input:-webkit-autofill,
.form-part input:-webkit-autofill:hover,
.form-part input:-webkit-autofill:focus,
.form-part input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #fff !important;
}

.content-partners img{
    margin: 0;
    padding: 10px;
}


