.link {
    color: #221646;
    font-weight: 500;
    text-decoration: underline;
}

.title {
    font-size: 20px;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 18px;
    line-height: 1.3em;
    margin-bottom: 30px;
    font-weight: 500;
}

.welcome-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2em;
    line-height: 1.3em;
}

.welcome-subtitle {
    font-size: 15px;
    line-height: 1.4em;
}

.form-section-title {
    font-size: 15px;
    /* margin-bottom: 2em; */
    margin-bottom: 3em;
    font-weight: 400;
}

.form-section-left {
    border-right: 1px solid #221646;
}

.form-section-right {
    border-left: 1px solid #221646;
}

@media screen and (min-width: 1200px) {
    .form-section-left {
        padding-right: 30px;
    }

    .form-section-right {
        padding-left: 30px;
    }
}

.title .fas {
    font-size: 0.9em;
} 

.cbinput {
    border: none;
    border-bottom: 2px solid #221646;
    background-color: transparent;
    color: #333;
    outline: none!important;
    width: 100%;
    padding: 9px 0;
}

.cbinput.invalid {
    border-bottom: 2px solid #dc3545;
    /* padding-bottom: 30px; */
}

.generic-error:not(:empty) {
    display: inline-block;
    color: #dc3545;
    font-size: 18px;
    margin-bottom: 1em;
}

input.invalid + span.invalid,
select.invalid + span.invalid,
textarea.invalid + span.invalid  {
    /* position: relative; */
    /* top: -30px; */
    /* color: #dc3545; */
    /* font-size: 15px; */
}

span.invalid  {
    /* position: relative; */
    /* top: -30px; */
    color: #dc3545;
    font-size: 15px;
}

.cbselect {
    /* width: 300px; */
    background: transparent;
    border: none;
    color: #221646;
    outline: none!important;
    padding: 5px;
    border-bottom: 2px solid #221646;
}

input[type="checkbox"] {
    position: relative;
    top: 2px;
}

.checkbox-text {
    text-decoration: underline;
    color: #666;
    display: inline-block;
    margin-left: 0.3em;
}

.form-check-label {
    position: relative;
    padding-left: 30px;
    text-transform: uppercase;
    font-size: 14px;
    color: #221646;
    user-select: none;
}

.form-check-square {
    position: absolute;
    left: 0;
    display: inline-block;
    display: table;
    width: 20px;
    height: 20px;
    border: 2px solid #221646;
    line-height: 20px;
    font-size: 11px;
    text-align: center;
}

.form-check-square .fa {
    visibility: hidden;
    display: table-cell;
    vertical-align: middle;
}

.form-check-square input[type="checkbox"],
.form-check-square input[type="radio"] {
    position: absolute;
    visibility: hidden;
}

.form-check-square input[type="checkbox"]:checked+.fa,
.form-check-square input[type="radio"]:checked+.fa {
    visibility: visible;
}

.btn.btn-primary {
    position: relative;
    color: #221646;
    border: 2px solid #221646;
    border-radius: 0;
    background: none;
    background-color: #FFFFFF;
    padding: 10px;
    min-width: 120px;
    font-weight: bold;
    outline: none!important;
    opacity: 1;
    transition: all 0.7s ease-in;
}

.btn .btn-loading-text {
    display: none;
}

.btn.btn-loading .btn-text {
    display: none;
}

.btn.btn-loading .btn-loading-text {
    display: inline;
}

.btn.btn-primary::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-width: 2px;
    border-style: solid;
    border-color: inherit;
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: -1;
}

.btn.btn-primary.focus,
.btn.btn-primary:focus {
    color: #fff;
    background-color: #221646;
    border-color: #221646;
    box-shadow: 0 0 0 0.2rem rgba(34, 22, 70, 0.25);
}

.btn.btn-primary[type="submit"]:disabled,
.btn.btn-primary[type="submit"]:disabled::after {
    opacity: 1;
    border-color: rgba(34, 22, 70, 0.65);
    color: rgba(34, 22, 70, 0.65);
}

.btn.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn.btn-primary:not(:disabled):not(.disabled):active:focus,
.show>.btn.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 22, 70, 0.25);
}

.btn.btn-primary:not(:disabled):not(.disabled).active,
.btn.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #221646;
    border-color: #221646;
}

.btn.btn-float {
    float: right;
    margin-right: 4px;
}

.captive-sidebar {
    background-color: #221646;
    color: #ffffff;
    padding: 75px 50px;
    background-image: url('../images/base_tetti.png');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

.captive-content {
    padding: 75px 50px;
}

.cbinput.cbinput-white {
    color: white!important;
    border-color: white!important;
}

.cbselect.cbselect-white {
    color: white;
    border-color: white;
}

.cbselect.cbselect-white option {
    color: initial;
}

.form-check-label.form-check-label-white {
    color: white;
}

.form-check-label.form-check-label-white .form-check-square {
    border-color: white;
}

#newsletter_questionary .form-label {
    position: relative;
}

#newsletter_questionary .form-label span.invalid {
    margin-top: 2px;
}

#newsletter_questionary span.invalid {
    position: absolute;
    text-transform: none;
    left: 0;
    top: -28px;
    display: inline-block;
    width: 260px;
    text-align: left;
}

.modal .modal-dialog.modal-dialog-centered {
    margin: 0;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.modal.fade .modal-dialog.modal-dialog-centered {
    -webkit-transform: translate(-50%,-25%);
    -ms-transform: translate(-50%,-25%);
    -o-transform: translate(-50%,-25%);
    transform: translate(-50%,-25%);
}

.modal.in .modal-dialog.modal-dialog-centered,
.modal.fade.in .modal-dialog.modal-dialog-centered {
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

@media screen and (min-width: 992px) {
    .modal .modal-dialog.modal-dialog-centered {
        margin: 0;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .modal.fade .modal-dialog.modal-dialog-centered {
        -webkit-transform: translate(-50%,-75%);
        -ms-transform: translate(-50%,-75%);
        -o-transform: translate(-50%,-75%);
        transform: translate(-50%,-75%);
    }

    .modal.in .modal-dialog.modal-dialog-centered,
    .modal.fade.in .modal-dialog.modal-dialog-centered {
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

#newsletter_modal {
    padding: 15px;
    background-color: rgba(0,0,0,0.5);
    font-family: 'BaseFontRegular';
    font-weight: 400;
}

#newsletter_modal input[type="checkbox"] {
    top: -2px;
}

#newsletter_modal .modal-header {
    border: none;
    padding-top: 45px;
    padding-left: 45px;
    padding-right: 45px;
}

#newsletter_modal .modal-header .modal-title {
    margin-bottom: 2px;
    font-size: 16px;
    text-transform: uppercase;
}

#newsletter_modal .modal-header .close {
    color: white;
    font-size: 32px;
}

#newsletter_modal .modal-content {
    border: none; 
    border-radius: 20px;
    background-color: #221646;
    color: white;
    z-index: -1;
}

#newsletter_modal .modal-body {
    background: transparent;
    padding-left: 45px;
    padding-right: 45px;
    padding-bottom: 60px;
    top: auto;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
}

#newsletter_modal #newsletter_subscribe .modal-body {
    padding-bottom: 90px;
}

@media screen and (min-width: 992px) {
    #newsletter_modal #newsletter_subscribe .modal-body {
        padding-bottom: 60px;
    }
}

#newsletter_modal .checkbox-text {
    color: white;
}

#newsletter_modal .btn.btn-primary {
    color: #FFFFFF;
    border-color: #FFFFFF;
    background-color: #221646;
}

@media screen and (min-width: 992px) {
    #newsletter_modal .btn.btn-primary {
        margin-top: -39px;
        padding: 6px;
    }
}

#newsletter_modal .btn.btn-primary.focus,
#newsletter_modal .btn.btn-primary:focus {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(34, 22, 70, 0.25);
}

#newsletter_modal .btn.btn-primary[type="submit"]:disabled,
#newsletter_modal .btn.btn-primary[type="submit"]:disabled::after {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.65);
    color: rgba(255, 255, 255, 0.75);
}

#newsletter_modal .btn.btn-primary:not(:disabled):not(.disabled).active:focus,
#newsletter_modal .btn.btn-primary:not(:disabled):not(.disabled):active:focus,
#newsletter_modal .show>.btn.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

#newsletter_modal .btn.btn-primary:not(:disabled):not(.disabled).active,
#newsletter_modal .btn.btn-primary:not(:disabled):not(.disabled):active,
#newsletter_modal .show>.btn.btn-primary.dropdown-toggle {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

#newsletter_modal .gender-label {
    margin-top: 10px;
    margin-right: 15px;
}

#newsletter_modal #birthyear-label {
    margin-top: 30px;
}

#newsletter_modal .form-section-right {
    position: static;
}

#newsletter_modal .form-section-right .form-section-title {
    margin-top: 30px;
    margin-bottom: 25px;
}

#newsletter_modal #newsletter_questionary .btn.btn-primary {
    margin-top: 15px;
    margin-right: 100%;
}

#newsletter_modal #newsletter_questionary #newsletter_questionary_skip.btn.btn-primary {
    margin-top: 25px;
}

@media screen and (min-width: 992px) {
    #newsletter_modal .gender-label {
        margin-top: 0;
    }   

    #newsletter_modal #birthyear-label {
        margin-top: 0;
        margin-left: 30px;
    }

    #newsletter_modal .form-section-left {
        border-right: 1px solid white;
    }

    #newsletter_modal .form-section-right .form-section-title {
        margin-top: 0;
        margin-bottom: 3em;
    }

    #newsletter_modal #newsletter_questionary .btn.btn-primary {
        position: absolute;
        bottom: 64px;
        margin-right: auto;
    }

    #newsletter_modal #newsletter_questionary #newsletter_questionary_skip.btn.btn-primary {
        margin-left: 150px;
    }
}
