﻿.container.main-container{
    max-width: 1240px;
    margin: 0 auto 120px auto;
    padding-left: 20px;
    padding-top: 30px;
}

.banner {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 0 0 0 6%;
    border-radius: 20px;
    overflow: hidden;
    background: url("//cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/banner-back2024.png") top left no-repeat, #8CC6FF;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .banner::after {
        display: block;
        content: "";
        height: 560px;
        width: 656px;
        background: url("//cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/banner-part.png") center center no-repeat;
        flex-shrink: 0;
    }

.banner-content{
    max-width: 448px;
}

.banner-header {
    color: #FFF;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2; /* 67.2px */   
    margin-bottom: 30px;
}

.red-label {
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 0 6px;
}

    .red-label::before {
        display: block;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        border-radius: 4px;
        background: #FF6505;
        transform: rotate(-2deg);
        z-index: -1;
    }

.banner-text {
    color: #FFF;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2; /* 28.8px */
}

.page-section{
    margin-bottom: 40px;
}


.text-wrapper p {
    color: #181818;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4; /* 30.4px */
    margin-bottom: 32px;
}

    .text-wrapper p:last-child{
        margin-bottom: 0;
    }

.form-section {
    background: url(//cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/form-back2024.png) top center no-repeat, #91C8FF;
    background-size: auto 100%;
    border-radius: 15px;
    padding: 40px 0;
    min-height: 560px;
}

.form-section .form-wrapper {
    width: 90%;
    max-width: 480px;
    border-radius: 30px;
    background: #FFF;
    padding: 30px 24px;
    margin: 0 auto;
}


.congratulation-form .form-header {
    color: #2E2E2E;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2; /* 28.8px */
    margin-bottom: 32px;
}

.congratulation-form .input-wrapper{
    margin-bottom: 20px;
}


.congratulation-form .input-wrapper select, .congratulation-form .input-wrapper textarea, .congratulation-form .input-wrapper label {
    display: block;
}

.congratulation-form .input-wrapper label {
    color: rgba(46, 46, 46, 0.80);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.congratulation-form .select-wrapper select {
    display: block;
    width: 100%;
    height: 52px;
    border: 1px solid #EFF2F7;
    padding-left: 12px;
    border-radius: 10px;
    background: #EFF2F7;
}

.congratulation-form .checkbox-wrapper {
    display: flex;
    align-items: center;
   
}

    .congratulation-form .checkbox-wrapper input {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        margin-right: 14px;
        display: block;
        border: 1px solid #EFF2F7;
        border-radius: 5px;
        background: #EFF2F7;
        -moz-appearance: none;
        -webkit-appearance: none;
        -o-appearance: none;
    }

        .congratulation-form .checkbox-wrapper input:checked {
            -moz-appearance: checkbox;
            -webkit-appearance: checkbox;
            -o-appearance: checkbox;
        }

.congratulation-form .checkbox-wrapper label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.congratulation-form .textarea-wrapper {
    width: 100%;
}

.congratulation-form textarea {
    display: block;
    width: 100%;
    padding: 20px 12px;
    border: 1px solid #EFF2F7;
    border-radius: 5px;
    background: #EFF2F7;
}

.congratulation-form .form-button {
    display: block;
    border-radius: 10px;
    background: linear-gradient(90deg, #FF6200 0%, #FF7F00 100%);
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    
}

.congratulation-form .form-button:hover{
    background-color: rgba(255, 255, 255, .9);
}

.congratulation-form textarea:focus, .congratulation-form select:focus {
    border-color: rgba(0, 0, 0, .4);
}

/*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("https://cdn.specialist.ru/content/file/layouts/congratulation-teacher/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("https://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;
    margin-bottom: 24px;
}

.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;
}

.congratulation-popup-text p a {
    font-weight: 600;
    color: #13599F;
}

@media (max-width: 1240px) {
    .main-container {
        padding: 20px;
    }
}

@media (max-width: 1100px) {
    .banner{
        padding-left: 20px;
        min-height: 500px;
    }
    .banner::after{
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 910px) {
    .banner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding-left: 0;
    }
     .banner-content{
         padding: 60px 20px 20px 20px;
     }

        .banner::after {
            width: 100%;
            background-size: 100% auto;
            height: 70vw;
        }
}


@media (max-width: 500px) {
    .banner{
        gap: 2px;
    }

    .banner-header {
        font-size: 36px;
    }

    .banner::after {
        height: 60vw;
    }

    .text-wrapper p{
        font-size: 16px;
        margin-bottom: 20px;
    }
}