/*custom font*/
@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body {
    font-family: "open sans", arial
}

/*form styles*/
#emailSigGen {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    position: relative;
    width: 100%;
}

#emailSigGen fieldset {
    background: white;
    border: 0 none;
    border-radius: 3px;
    /*box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4); */
    padding: 20px 30px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;
    text-align: left;

    /*stacking fieldsets above each other*/
    position: relative;
}

/*Hide all except first fieldset*/
#emailSigGen fieldset:not(:first-of-type) {
    display: none;
}

/*inputs*/
.emailSigGen input {
    /*margin: 10px 0;*/
    width: 100%;
}

.emailSigGen fieldset p label {
    font-weight: normal;
}

/*buttons*/
.emailSigGen .btn {
    margin-top: 20px;
}

.emailSigGen .btn-secondary {
    margin-right: 10px;
}

/*headings*/
.emailSigGen__fs-title {
    margin-bottom: 15px;
}

.emailSigGen__fs-subtitle {
    font-weight: normal;
    font-size: .8rem;
    margin-top: 15px;
    margin-bottom: 20px;
}


/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}

#progressbar li {
    list-style-type: none;
    font-size: 12px;
    /*width: 25%;*/
    width: 50%;
    float: left;
    position: relative;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 32px;
    line-height: 30px;
    display: block;
    font-size: 14px;
    color: #a3a3a3;
    background: white;
    border-radius: 50%;
    margin: 0 auto 5px auto;
    border: 2px solid #a3a3a3;
    z-index: 1;
}

/*progressbar connectors*/
#progressbar li:after {
    content: '';
    width: 100%;
    height: 4px;
    background: #a3a3a3;
    position: absolute;
    left: -50%;
    top: 13px;
    z-index: -1;
    /*put it behind the numbers*/
}

#progressbar li:first-child:after {
    /*connector not needed before the first step*/
    content: none;
}

/*marking active/completed steps*/
/*The number of the step and the connector before it*/
#progressbar li.active:before,
#progressbar li.active:after {
    background: #003C71;
    color: white;
}

#progressbar li.active:before {
    border: 1px solid #003C71;
}

label {
    display: block;
    margin-bottom: 10px;
}

.cnb-radio {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.cnb-radio input[type="radio"] {
    opacity: 0;
}

.cnb-radio label {
    position: relative;
    display: inline-block;
    font-size: 18px;
    min-height: 22px;

    /*20px width of fake radio + 16px distance between fake radio and text adjust as needed*/
    padding: 0 3rem 0 2rem;
    color: #333;
}

.cnb-radio label::before,
.cnb-radio label::after {
    position: absolute;
    content: "";

    /*Needed for the line-height to take effect*/
    display: inline-block;
}

/*Outer box of the fake radio*/
.cnb-radio label::before {
    height: 22px;
    width: 22px;
    border: 1px solid #999;
    left: 0;
    top: 3px;
    border-radius: 50%;
    transition: 0.2s ease-out;
}

/*Checkmark of the fake radio*/
.cnb-radio label::after {
    height: 6px;
    width: 12px;
    border-left: 2px solid;
    border-bottom: 2px solid;
    border-color: white;
    transform: rotate(-45deg);
    left: 5px;
    top: 10px;
    transition: 0.2s ease-out;
}

.cnb-radio label span {
    display: block;
    font-size: .75rem;
}

/*Hide the checkmark by default*/
.cnb-radio input[type="radio"] + label::after {
    content: none;
}

/*Unhide on the checked state*/
.cnb-radio input[type="radio"]:checked + label::after {
    content: "";
}

.cnb-radio input[type="radio"]:checked + label::before {
    background-color: #0051a5;
    border-color: #0051a5;
}

/*Adding focus styles on the outer-box of the fake radio*/
.cnb-radio input[type="radio"]:focus + label::before {
    border: 1px solid #0051a5;
}

.cnb-checkbox {
    position: relative;
}

.cnb-checkbox input[type="checkbox"] {
    opacity: 0;
}

.cnb-checkbox label {
    position: relative;
    display: inline-block;
    font-size: 18px;

    /*20px width of fake checkbox + 16px distance between fake checkbox and text adjust as needed*/
    padding-left: 36px;
    color: #333;
}

.cnb-checkbox label::before,
.cnb-checkbox label::after {
    position: absolute;
    content: "";

    /*Needed for the line-height to take effect*/
    display: inline-block;
}

/*Outer box of the fake checkbox*/
.cnb-checkbox label::before {
    height: 20px;
    width: 20px;
    border: 1px solid #999;
    left: 0;
    top: 3px;
    border-radius: 2px;
    transition: 0.2s ease-out;
}

/*Checkmark of the fake checkbox*/
.cnb-checkbox label::after {
    height: 8px;
    width: 15px;
    border-left: 2px solid;
    border-bottom: 2px solid;
    border-color: white;
    transform: rotate(-45deg);
    left: 3px;
    top: 7px;
    transition: 0.2s ease-out;
}

/*Hide the checkmark by default*/
.cnb-checkbox input[type="checkbox"] + label::after {
    content: none;
}

/*Unhide on the checked state*/
.cnb-checkbox input[type="checkbox"]:checked + label::after {
    content: "";
}

.cnb-checkbox input[type="checkbox"]:checked + label::before {
    background-color: #0051a5;
}

/*Adding focus styles on the outer-box of the fake checkbox*/
.cnb-checkbox input[type="checkbox"]:focus + label::before {
    border: 1px solid #4374B9;
    background-color: #4374B9;
}

.cnb-form-nest .form-check + .form-check {
    display: block;
    margin-left: 30px;
}

/***************END**************/

.input-group {
    margin-top: 15px;
    margin-bottom: 10px;
}

label + .input-group {
    margin: 0;
    margin-bottom: 10px;
}

.input-group + label {
    margin: 0;
}

.input-group-text {
    background-color: transparent;
    border-right-color: transparent;
}

.input-group .form-control {
    border-left-color: transparent;
}
