.overflow-hidden {
    overflow: hidden !important;
}

#modal-custom header {
    background: #eee;
    margin-bottom: 4px;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    width: 100%;
}

#modal-custom header a {
    display: block;
    float: left;
    width: 50%;
    padding: 0;
    text-align: center;
    background: #DFE6F0;
    color: #999;
    height: 3.5em;
    vertical-align: middle;
    line-height: 3.5em;
    font-size: 1.3em;
    transition: all 0.3s ease;
    color: #333;
}

#modal-custom header a:not(.active):hover {
    box-shadow: inset 0 -10px 20px -10px #aaa;
}

#modal-custom header a.active {
    background: #fff;
    color: #777;
}

#modal-custom .sections {
    overflow: hidden;
}

#modal-custom section {
    padding: 10px 22px;
    color: #000;
    line-height: 1.35;
}

#modal-custom section label {
    margin-bottom: 10px;
    color: #777;
    font-size: 1.1em;
    display: block;
}

#modal-custom section input:not([type="checkbox"]) {
    margin-bottom: 10px;
}

#modal-custom section input:not([type="checkbox"]),
#modal-custom section button {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #ddd;
    padding: 0.8em;
    font-size: 1.1em;
}

#modal-custom section input:focus {
    border-color: #28CA97;
}

#modal-custom section button {
    background: #5A83C3;
    color: white !important;
    height: 3.4em;
    margin: 0 auto;
    border: 0;
    cursor: pointer;
    display: inline-block;
    font-size: 1.1em;
}

#modal-custom section button:hover {
    opacity: 0.8;
}

#modal-custom section footer {
    overflow: hidden;
    padding: 0 0 0.5em 0;
    text-align: center;
}

#modal-custom .icon-close {
    background: #FFF;
    margin-bottom: 0;
    position: absolute;
    right: -1em;
    top: -0.8em;
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    border: 0;
    cursor: pointer;
}

#modal-custom .icon-close i.fa {
    font-size: 1.3em;
    color: #999 !important;
}

#modal-custom .icon-close:hover,
#modal-custom .icon-close:focus {
    color: #000;
}

#modal-custom.hasScroll .icon-close {
    display: none;
}

.iziModal .iziModal-header-title {
    font-weight: 500;
}

.g-recaptcha {
    /* TODO: make it responsive */
    max-width: 305px !important;
    margin: 0 auto;
    height: 78px;
    background: #eee;
    margin-bottom: 0.8em;
    overflow: hidden;
}

@media (min-width: 320px) and (max-width: 480px) {
    #modal-custom header,
    #modal-custom section {
        font-size: 0.86em;
    }
}
