#join_up_form {
    background-color: #053857;
    color: #ffffff;
    text-align: center;
    font-family: sans-serif;
    padding-top: 50px;
    padding-bottom: 50px;
}

ul.steps {
    display: flex;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    max-width: 350px;
}

ul.steps li {
    list-style: none;
}

ul.steps li a { 
    background-color: #053857;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;   
    border: 3px solid #ffffff;
    box-sizing: border-box;
    font-weight: bold;
}

ul.steps li.active a, 
ul.steps li:hover a {
    background-color: #ffffff;
    color: #053857;
}

ul.steps li:nth-child(1) {
    margin-right: 100px;
}

ul.steps li:nth-child(3) {
    margin-left: 100px;
}

ul.steps li:nth-child(1):after {
    content: '';
    display: block;
    height: 5px;
    background-color: #053857;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
    position: absolute;
    left: 47px;
    width: 30%;
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (min-width: 768px) {
    ul.steps li:nth-child(1):after {
        width: 106px;
    }
}

ul.steps li:nth-child(3):after {
    content: '';
    display: block;
    height: 5px;
    background-color: #053857;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
    position: absolute;
    right: 47px;
    width: 30%;
    top: 50%;
    transform: translateY(-50%);
}


@media screen and (min-width: 768px) {
    ul.steps li:nth-child(3):after {
        width: 107px;
    }
}

form {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: block;
    clear: both;
}

.step:after {
    content: '';
    display: block;
    clear: both;
}

.step .container {
    border: 3px solid #fff;
    padding: 30px 15px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto 50px;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
}

@media screen and (min-width: 580px) {
    .step .container {
        padding: 50px;
    }
}

.step .container-1,
.step .container-2 {
    border: 3px solid #fff;
    padding: 50px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto 50px;
    display: grid;
    text-align: left;
}

.container .field {
    padding: 10px;
    box-sizing: border-box;
}

.container .field p,
.container .field label {
    line-height: 24px;
}

.step_1 .container .field {
    width: 100%;
}

@media screen and (min-width: 580px) {
    .step_1 .container .field {
        width: 50%;
    }
}

@media screen and (min-width: 1024px) {
    .step_1 .container .field {
        width: 33%;
    }
}

.step_2 .container > div {
    width: 100%;
}

@media screen and (min-width: 580px) {
    .step_2 .container > div {
        width: 50%;
    }
}

.step_3 .container-1 .field {
    width: 100%;
}

.step_3 .container-2 .field{
    width: 100%;
}

.step_3 .container-2 .field {
    display: flex;
    align-items: center;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .step_3 .container-2 .field {
        flex-direction: row;
    }
}

.step .container .field input,
.step .container .field select {
    background: transparent;
    padding: 5px;
    border: 2px solid #fff;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.step .container .field input::placeholder {
    color: #cccccc;
}

.date-of-birth select {
    width: 33% !important;
}

.step .container .field select option,
.date-of-birth select option{
    color: #000;
}

.dob-container {
    display: flex;
}

.step .container .field label,
.step .container .field p {
    display: block;
    text-align: left;
    margin: 0 0 10px;
}

.btn {
    padding: 10px 30px;
    border: 3px solid #fff;
    display: inline-block;
    cursor: pointer;
}


.step_1 .container .btn--next {
    grid-column: 3/3;
    grid-row: 3/3;
}

.step_2 .container .btn--next {
    grid-column: 2/2;
    grid-row: 2/2;
}

.step_3 .btn--prev {
    margin-top: 40px;
}

.btn--prev {
    float: left;
}

.btn--next {
    float: right;
}

.step_2, 
.step_3 {
    display: none;   
}

.error {
    border-color: #ff0000 !important;
}

#join_up_form input[type=submit] {
    border: 2px solid #ffffff;
    background: transparent !important;
    color: #ffffff;
    margin-top: 40px;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
}

.comms-options {
    display: none;
    margin-top: 25px;
}

/* Radio Styles */
#join-up-member-form input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
}

#join-up-member-form .option label {
    margin-bottom: 15px;
    position: relative;
}

#join-up-member-form .container-3 label[for=terms] {
    margin-bottom: 10px;
    position: relative;
}

#join-up-member-form input[type="radio"] + label:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
    margin-right: 6px;
    vertical-align: middle;
}

#join-up-member-form input[type="radio"]:checked + label:after {
    content: '';
    display: block;
    width: 11px;
    height: 17px;
    border-right: 4px solid #053857;
    border-bottom: 4px solid #053857;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 7px;
}


#join-up-member-form input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

#join-up-member-form input[type="checkbox"] + label:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid #ffffff;
    border-radius: 3px;
    background-color: #ffffff;
    margin-right: 6px;
    vertical-align: middle;
}

#join-up-member-form input[type="checkbox"]:checked + label:after {
    content: '';
    display: block;
    width: 11px;
    height: 17px;
    border-right: 4px solid #053857;
    border-bottom: 4px solid #053857;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 7px;
}

form .mobile-field {
    display: flex;
}

form .mobile-field span {
    background-color: #fff;
    color: #053857;
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

form .mobile-field input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 10px !important;
}