@font-face {
  font-family: "NSSans";
  src: url("./assets/fonts/nssans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "NSSans";
  src: url("./assets/fonts/nssans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

* {
    box-sizing: border-box;
}

body{
    width: 100%;
    height: auto;
    margin: 0;
    background-color: rgb(242, 242, 250);
    font-family: "NSSans", Arial, sans-serif;

}
header{
    width: 100%;
    background-color: rgba(255, 201, 23, 1);
    color: rgb(0, 48, 130);
    padding: 1em;

}
header p{
    height: auto;
    font-weight: bold;
    
    
}
main{
    margin: 0 auto;
    
    max-width: 700px;
    padding: 1em;
}

fieldset{
    border: none;
    background-color: transparent;
    
    padding: 0;
    margin: 0;
}
form > fieldset.groep{
    background-color: rgb(255, 255, 255);
    padding: 1.25em;
    margin: 1.25em 0;
    border-radius: 1em;
    box-shadow: inset 0 -.125rem 0 rgba(255, 201, 23, 1);

}

input{
    width: 100%;
    padding: 1em;
    border:  2px solid rgb(244, 240, 240);
    border-radius: 0.5em;
    font-size: 16px; 
    margin-bottom: 1.6em;
    transition: box-shadow .2s ease;
}
input[type="radio"]{
 
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    
}
input[type="text"]:focus, input[type="date"]:focus, input[type="number"]:focus {
    outline: 2px solid rgba(255, 201, 23, 1);
    
}

.input-valid {
    border-color: #2e7d32;
} 
.input-error{
    border: 1px solid red;
}  
input:disabled{
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #777;
    cursor: not-allowed;
}

.option:has(input[type="radio"]:focus-visible) {
    border-radius: 0.5em;
    outline: none;
    box-shadow: none;
}   
  

  
label{
    display: block;
    color: aquamarine;
    color:  rgb(0, 48, 130);
    margin-bottom: 0.5em;
    font-weight: 500;
}


/* legend */
legend{
    color: #003082;
    font-weight: 700;
    margin-bottom: 1em;
    
}
.groep > legend{
    display: block;
    background: white;
    border-radius: 1em 1em 0 0;
    padding: 1.25em;
    margin: 0 0 0 -1.24em;
    width: calc(100% + 2.5em);
}

.vraag > legend{
    
    line-height: 1.3;
    margin-bottom: 0.65em;
}
.option{
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    padding: 0.15em;
    border-radius: 0.75em;
    margin-bottom: 0.10em;
}

.vraag, .details, .subsection{
    background-color: transparent;
    padding: 0;
    margin: 0.5em 0 0;
}
#huwelijkBlock, #kinderenBlock, #overledenKindBlock, #testamentBlock {
    margin-top: 1em;
}
#huwelijkBlock .vraag, #kinderenBlock .vraag, #overledenKindBlock .vraag, #testamentBlock .vraag{
    margin-top: 1em;
}
.hidden{
    display: none;
}





/* error messege */
.required {
    color: red;
}
.error {
    color: red;
    font-size: 1rem;
    display: block;
    margin-bottom: 1em;
    margin-top: -1em;

}

.groep-gemachtigde fieldset{
    margin-top: 1.25em;
}
.groep-gemachtigde p{
    font-weight: 400;
    line-height: 1.25em;
    margin: 1em 0;
    color: #003082;
}
.groep-gemachtigde p {
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 201, 23, 0.12);
    border-left: 4px solid rgba(255, 201, 23, 1);
    padding: .8em 1em;
    /* margin-bottom: 1em; */
    border-radius: .5em;
    line-height: 1.35;
}
.groep-gemachtigde p span {
  margin-top: -0.4em;
}



/* help text */
details{
    margin-bottom: 1em;
     
}
details summary{
    font-size: 0.9rem;
    color:  rgb(0, 48, 130);
   

}
details summary::marker{
    content: "";
    color: transparent;
}
details p{
     color:  rgb(0, 48, 130);
}


/* versturen button */
button {
    display: block;
    margin: 2em auto;
    background-color: rgba(255, 201, 23, 1);
    color:   #003082;
    border: none;
    border-radius: 1em;
    padding: 1em  1em;
    font-size: 1em;
    font-weight: bold;
    
    transition: 0.1s ease;

}
button:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 5em rgb(0, 0, 0, 0.2);
}