#modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
    margin-top: 0;
    z-index: 9;
}
#modal.active{
    display: flex;
}
#modal .modal_window{
    width: 100%;
    max-width: 390px;
    box-sizing: border-box;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 5px 0 #000;
    position: relative;
    overflow: hidden;
}
#modal .modal_content, #modal .modal_title{
    padding: 15px;
}
#modal h2{
    width: 100%;
    padding: 15px;
    position: relative;
    top: 0;
    left: 0;
    z-index: 0;
    margin: 0;
}
#modal .modal_window h2{
    font-size: 16pt;
    text-align: center;
    padding-right: 20px;
}
#modal .default h2, #modal .default .close_modal{
    border-bottom: 1px solid #cecece;
}
#modal .success h2, #modal .success .close_modal{
    background: #00a65a;
    color: #fff;
}
#modal .warning h2, #modal .warning .close_modal{
    background: #00a65a;
    color: #fff;
}
#modal .danger h2, #modal .danger .close_modal{
    background: #f56954;
    color: #fff;
}
#modal .close_modal{
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 16pt;
    z-index: 2;
}
#modal .width-input{
    width: 100%;
}
#modal .width-input input[type=text], #modal .width-input input[type=email], #modal .width-input input[type=tel]{
    width: 100%;
    margin: 5px 0;
    display: block;
    padding: 5px 15px;
}
#modal .width-input button{
    width: 100%;
    margin: 5px 0;
}