@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');
body{
    font-family: 'Nunito', sans-serif;
    /* font-family: 'Open Sans', sans-serif; */
    font-size: 16px;
}
.form-container{
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
/* label{
    width: 100%;
}
textarea, input{
    width: 100%;
} */
*, *::before, *::after {
    box-sizing: border-box;
}
h4.title{
    font-size: 1.2rem;
}
/* nav.navbar{
    background-color: white;
    border-bottom: 1px solid black;
} */
.links{
    display: flex;
    flex-direction: column;
}
.buttons{
    display: flex;
    flex-direction: column;
}

div.navbar-nav{
    justify-content: space-between;
    width: 100%;
}

.form{
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    /* min-width: 400px; */
    /* padding: 16px; */
    padding: 5px;
}

.form-control:focus-within {
    color: black;
    border: 0.15em solid black;
}
  
input[type=radio] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    -moz-appearance: none;
            appearance: none;
    /* For iOS < 15 */
    background-color: white;
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid black;
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: inline-grid;
    place-content: center;
}
div.dob{
    width:10%;
    display: inline-block;
}
.input-groups .select-arrow{
    position: absolute;
    right: 12px;
    top: 15px; 
}
input[type=radio]::before {
    content: "";
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 0.4em 0.4em black;
    /* Windows High Contrast Mode */
    background-color: CanvasText;
}
  
input[type=radio]:checked{
    background-color: black;
}
input[type=radio]:checked::before {
    transform: scale(1);
    background-color: white;
    box-shadow: inset 0.4em 0.4em white;
}
  
input[type=radio]:focus {
    /* outline: max(2px, 0.15em) solid currentColor; */
    /* outline-offset: max(2px, 0.15em); */
    border: 1px solid black;
}

input[type=checkbox] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    -moz-appearance: none;
         appearance: none;
    /* For iOS < 15 */
    background-color: var(--form-background);
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid currentColor;
    border-radius: 0.25em;
    transform: translateY(-0.075em);
    display: inline-grid;
    place-content: center;
}
input[type=checkbox]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    /* Windows High Contrast Mode */
    background-color: CanvasText;
}

input[type=checkbox]:checked{
    background-color: black;
}
input[type=checkbox]:checked::before {
    transform: scale(1);
    background-color: white;
}

input[type=checkbox]:focus {
    /* outline: max(2px, 0.15em) solid currentColor;
    outline-offset: max(2px, 0.15em); */
}
.group-checkbox label{
    width: unset;
    margin: 0 4px;
}
.input-groups{
    font-size: 14px;
    position: relative;
    border-top: 20px solid transparent;
    margin-bottom: 24px;
}
.custom-input{
    border: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border-bottom: 1px solid darkgray;
    padding: 12px;
    border-radius: 3px;
    width: 100%;
    /* font-size: 14px; */
    margin-bottom: 2px;
    border-radius: 5px;
}

.invalid{
    border-bottom: 1px solid hsla(0,100%,50%,0.9) !important;
}
.input-groups .error-message{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 13px;
    background: hsla(0,100%,50%,0.9);
    color: #fff;
    height: 24px;
    border-radius: 5px;
}

.input-groups .error-message:empty{
    display: none;
}

.error-message{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 13px;
    background: hsla(0,100%,50%,0.9);
    color: #fff;
    height: 40px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.error-message:empty{
    display: none;
}

.required{
    color: hsla(0,100%,50%,0.9);
}

.success-message{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 13px;
    background: hsla(120,100%,25%,0.9);
    color: #fff;
    height: 40px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.success-message:empty{
    display: none;
}
.input-groups .placeholders {
    position: absolute;
    left: 12px;
    /* bottom: 50%; */
    /* max-height: 16px; */
    top: 12px;  
    /* transform: translateY(-50%); */
    width: calc(100% - 24px);  
    color: #aaa;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: 
        top 0.3s ease,
        color 0.3s ease,
        font-size 0.3s ease;
}

.input-groups .togglePassword {
    position: absolute;
    right: 12px;
    top: 12px; 
}    
.custom-input:not(:placeholder-shown) + .placeholders, .custom-input:focus + .placeholders{
    top: -20px;
    font-size: 13px;
    color: #222;
}
.custom-input:not(:placeholder-shown), .custom-input:focus{
    border: none;
    border-bottom: 1px solid black;
    border-radius: 5px;
}
.custom-input:focus-visible {
    outline: unset;
}
.submit-flex-box{
    display: flex;
    justify-content: end;
}
.submit{
    margin: 16px 0;
    border-radius: 5px;
}

.option-links{
    text-decoration: none;
}

a{
    text-decoration: none!important;
}
.dual-form-container{
    display: flex;
}
.form-dual{
    flex: 1;
    padding: 0 16px;
}
@media (max-width: 600px){
    div.dob{
        width:20%;
        display: inline-block;
    }
    span.double-line-message{
        height: 40px !important;
    }
    .dual-form-container{
        flex-direction: column;
    }
}

@media (min-width: 992px){
    
    .links{
        flex-direction: row;
    }
    .buttons{
        flex-direction: row;
    }
}
