.y-content {
    display: flex;
    flex-flow: column wrap;
    width: 90%;
    padding-bottom: 0;
}

.specialist-info {
    margin-bottom: 2em;
    font-size: 15px;
    line-height: 30px;
}

.y-content > div:first-child {
    background: #fff;
    flex-grow: 1;
}

.y-content > div:nth-of-type(2) {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    padding: 30px 1em;
    background: #fff;
}

.specialist-name {
    display: inline-block;
    font-size: 28px;
    color: #111111;
    line-height: 28px;
    margin-bottom: 15px;
}

.honor-container {
    display: flex;
    flex-flow: wrap;
}

.honor-container img {
    margin-right: 8px;
    margin-top: 8px;
    width: 60px;
    height: 60px;
}

.y-content .btn {
    display: block;
    width: 100%;
    height: 44px;
    padding-top: 13px;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    line-height: 16px;
    background: #FBBD00;
    border-radius: 2px;
    font-weight: 200 !important;
}

.y-content .btn:first-child {
    margin-top: 2em;
    margin-bottom: 1em;
}

.y-content > div:first-child img{
    width: 100%;
}

.modal-header, .modal-footer{
    border: none;
}

.form-group {
    margin-bottom: 10px;
}

.form-group:nth-of-type(4) {
    margin-bottom: 15px;
}

.control-label {
    font-weight: 400;
    font-size: 15px;
    color: #111111;
    text-align: center;
}

.form-control {
    height: 40px;
    background: #F6F5F3;
    border-radius: 2px;
    box-shadow: none;
    border-color: #E4E4E4;
}

.modal-header {
    padding-bottom: 0;
}

.modal-footer {
    text-align: left;
    padding-top: 0;
}

.modal-footer .btn {
    width: 100%;
    height: 44px;
    border-radius: 2px;
}

.modal-footer .btn + .btn {
    margin-left: 0;
    margin-top: 1em;
}

.btn-primary {
    background: #FBBD00;
    border-color: #FBBD00;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #FBBD00!important;
    border-color: #FBBD00!important;
}

.btn-default {
    color: #fff;
    background: #D7DADF;
    border-color: #D7DADF;
}

.btn-default:hover, .btn-default:focus, .btn-default:active {
    color: #333;
    background-color: #D7DADF!important;
    border-color: #D7DADF!important;
}

.after-submit {
    width: 90%;
    margin: auto;
}

.after-submit > div {
    display: none;
}

@media (min-width: 768px) {
    .y-content {
        flex-direction: row;
        width: 750px;
    }

    .y-content > div:nth-of-type(1) {
        flex-basis: 18%;
    }

    .y-content > div:nth-of-type(2) {
        padding-left: 48px;
        flex-grow: 1;
    }

    .y-content > div:nth-of-type(3) {
        flex-basis: 100%;
    }

    .after-submit {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .y-content {
        width: 940px;
    }

    .y-content > div:nth-of-type(1) {
        flex-basis: 30%;
    }

    .y-content > div:nth-of-type(3) {
        padding: 30px 0 0 360px;
    }

    .y-content .btn {
        display: inline-block;
        width: 180px;
    }

    .y-content .btn:first-child {
        margin: 0 20px 0 0;
    }

    .modal-content.ask {
        padding: 10px 25px 25px;
    }

    .ask.modal-dialog, .ask.modal-content {
        width: 700px;
        height: 490px;
    }

    #message-text {
        height: 222px;
    }

    .modal-footer .btn {
        width: 100px;
    }

    .modal-footer .btn + .btn {
        margin-left: 10px;
        margin-top: 0;
    }

    .modal-body .col-md-4 + .col-md-4 {
        padding-left: 0;
    }

    .form-group:nth-of-type(1), .form-group:nth-of-type(2){
        padding-right: 10px;
    }

    .modal.in .modal-dialog {
        transform: translateY(20%);
    }

    .after-submit {
        width: 940px;
    }

}

@media (min-width: 1200px) {
    .y-content {
        width: 1145px;
    }

    .y-content > div:nth-of-type(1) {
        flex-grow: 0;
        flex-basis: auto;
    }

    .y-content > div:nth-of-type(3) {
        padding: 60px 0 0 380px;
    }

    .y-content .btn {
        display: inline-block;
        width: 180px;
    }

    .y-content .btn:first-child {
        margin: 0 20px 0 0;
    }

    .y-content > div:first-child img{
        max-width: 360px;
        max-height: 360px;
        width: auto;
    }

    .after-submit {
        width: 1145px;
    }
}