form {
    margin: auto;
    width: 86%;
    z-index: 20;
}

form > * {
    display: block;
    width: 100%;
}

label,
.label {
    margin: 0.8rem 0 0.8rem 0;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 2.4rem;
}

label a,
.label a {
    text-decoration: underline;
}

label.small,
.label.small {
    margin: 1rem 0 0.8rem 0;
    font-size: 1.1rem;
}

label.big,
.label.big {
    font-size: 2.6rem;
}

input[type=text],
input[type=email],
input[type=submit],
input[type=password],
textarea,
.input,
.photoInput,
.button,
.uploading,
.writeMessage {
    display: block;
    margin: 0 0 1.2rem 0;
    padding: 2.1rem 2rem;
    width: 100%;
    color: var(--clr-black);
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 2.5rem;
    background-color: var(--clr-white);
    text-align: center;
    border: none;
    border-radius: 0.6rem;
    text-align: left;
}

input[type=text],
input[type=email],
input[type=password],
textarea {
    box-shadow: 0 1.0rem 2.1rem 0 #0000001A;
}

input[type=text].missing,
input[type=email].missing,
input[type=password].missing,
textarea.missing,
.photoInput.missing{
    box-shadow: inset 0 0 0.4rem 0.3rem #DC091F;
}

input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
textarea::placeholder {
    color: #595959bd;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
}

.photoInput {
    color: var(--clr-green);
    text-transform: uppercase;
}

.importantInput {
    color: var(--white-clr) !important;
    background-color: var(--blue-clr) !important;
    border: solid 0.4rem var(--blue-clr) !important;
    text-transform: uppercase;
}

.heighlightedInput {
    color: var(--blue-clr) !important;
    background-color: var(--yellow-clr) !important;
    border: solid 0.4rem var(--yellow-clr) !important;
    text-transform: uppercase;
}


.innerBorderInput:after {
    content: "";
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    top: 0.2rem;
    bottom: 0.2rem;
    border-radius: 2.8rem;
    border: 0.2rem solid transparent;
    background-image: linear-gradient(180deg, #E5CE8C 0%, #C2953F 100%);
    background-position-y: -2rem;
    background-size: calc(100% + 4rem) calc(100% + 4rem);
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;    
}


.photoInput {
    margin-left: auto;
    margin-right: auto;
    padding: 1.7rem 6rem 1.7rem 2.6rem;
    width: 27rem;
    background-image: url("/public/images/soutez/icons/icon-camera.svg?v=1");
    background-size: auto 2.1rem;
    background-position: 82% center;
    overflow-wrap: break-word;
    border-radius: 3rem;
    text-align: center;
}

.photoInput:after{
    border: 0.3rem solid transparent;
    /*border: solid var(--clr-gold-light) 0.3rem;*/
}

.photoInput.filled {
    padding-right: 2.6rem;
    color: var(--clr-green-dark);
    background-image: none;
}

form .formSpace {
    margin: 3.0rem;
    width: 100%;
    height: 0;
}

form .formSpace.bigger {
    width: 100%;
    height: 2.8rem;
}

form .checkLine {
    display: flex;
    width: 100%;
    text-align: left;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

input[type=checkbox] {
    appearance: none; /* Hide the default appearance */
    -webkit-appearance: none; /* For older versions of Chrome and Safari */
    -moz-appearance: none;
    width: 2.2rem; /* Set a width for the custom checkbox */
    height: 2.2rem;
    min-width: 2.2rem;
    margin: 0 1.8rem 0 0;
    cursor: pointer;
}

input[type=checkbox]:after,
input[type=checkbox]:checked:after {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0.3rem 0rem 0rem 0.7rem;
    margin: 0 0 0 0;
    border-radius: 0.6rem;
    display: inline-block;
    content: '\2714';
    font-family: sans-serif;
    font-size: 0.9rem;
    line-height: 1.7rem;
    color: transparent;
    font-weight: bold;
    border: solid 0.1rem var(--clr-white);
}

input[type=checkbox].missing:after {
    box-shadow: inset 0 0 0.4rem 0.3rem #DC091F;
}

input[type=checkbox]:after {
    background-color: var(--clr-white-transparent);
}

input[type=checkbox]:checked:after {
    color: var(--clr-white);
    background-color: var(--clr-green);
    outline: 0.26rem solid var(--clr-cream);
    outline-offset: -0.36rem;
    border: solid 0.1rem var(--clr-green);
}

.buttonBackground {
    position: relative;
    width: 100%;
    height: 7.4rem;
    background: linear-gradient(127.78deg, #CBA96A 4.78%, #C09A53 70.61%);
    border-radius: 0.6rem;
}

input[type=submit],
.button {
    width: calc(100% - 0.8rem);
    padding: 2.0rem;
    background: transparent;
    color: var(--clr-white);
    font-size: 2.1rem;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 0.5rem;
    border: solid #CDAA63 0.2rem;
}

.uploading {
    margin: 0 auto 1.2rem auto;
    width: calc(100% - 0.8rem);
    padding: 2.0rem;
    background: transparent;
    color: var(--clr-black);
    font-size: 2.1rem;
    line-height: 2.5rem;
    text-align: center;
    border: solid #CDAA63 0.2rem;
}

.error {
    margin: 2.4rem auto 1rem auto; 
}

