form {
    margin: auto;
    width: 100%;
}

form > * {
    display: block;
    width: 100%;
}

label,
.label {
    margin: 0.8rem 0 0.8rem 0;
    color: var(--clr-black);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 2.0rem;
}

label a,
.label a {
    text-decoration: underline;
}

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.5rem 2.5rem;
    width: 100%;
    color: var(--clr-black);
    font-family: 'Foco', sans-serif;
    font-size: 1.6rem;
    line-height: 2.6rem;
    font-weight: 600;
    background-color: #FFFFFF80;
    text-align: center;
    border-radius: 1.0rem;
    text-align: left;
    border: solid 0.25rem transparent;
}

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/*,
.photoInput*/ {
    color: var(--clr-black);
    opacity: 0.7;
    font-weight: 400;
}

.innerBorderInput:after {
    content: "";
    position: absolute;
    /*
    left: 0.2rem;
    right: 0.2rem;
    top: 0.2rem;
    bottom: 0.2rem;
    */
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 2.8rem;
    border: 0.2rem solid transparent;
    background-image: linear-gradient(180deg, #1F57C3 0%, #0F40A8 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;
    color: var(--clr-blue);
    font-weight: 400;
    background-image: url("/public/images/soutez/icons/icon-camera.svg?v=1");
    background-size: auto 2.1rem;
    background-position: 78% center;
    overflow-wrap: break-word;
    border-radius: 3rem;
    text-align: center;
    text-transform: uppercase;
}

.photoInput:after{
    border: 0.3rem solid transparent;
    /*border: solid var(--clr-gold-light) 0.3rem;*/
}

.photoInput.filled {
    padding-right: 2.6rem;
    color: var(--clr-blue);
    background-image: none;
}

form .formSpace {
    width: 100%;
    height: 1.2rem;
}

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.6rem; /* Set a width for the custom checkbox */
    height: 2.6rem;
    min-width: 2.6rem;
    margin: 0 1.6rem 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.4rem 0rem 0rem 0.8rem;
    margin: 0 0 0 0;
    border-radius: 0.6rem;
    display: inline-block;
    content: '\2714';
    font-family: 'Foco', sans-serif;
    font-size: 1.0rem;
    line-height: 1.7rem;
    color: transparent;
    font-weight: bold;
    border: solid 0.13rem var(--clr-blue);
}

input[type=checkbox].missing:after {
    box-shadow: inset 0 0 0.4rem 0.3rem #DC091F;
}

input[type=checkbox]:after {
    background-color: transparent;
}

input[type=checkbox]:checked:after {
    color: var(--clr-white);
    background-color: var(--clr-red);
    outline: 0.26rem solid var(--clr-yellow);
    outline-offset: -0.36rem;
    border: solid 0.13rem var(--clr-blue);
}

input[type=submit],
.button {
    margin: 0;
    width: 100%;
    padding: 2.2rem;
    background-color: var(--clr-red);
    color: var(--clr-white);
    font-size: 2.0rem;
    line-height: 2.6rem;
    font-weight: 900;
    border-radius: 1.0rem;
    border: solid var(--clr-red) 0.2rem;
    box-shadow:
        0rem 0.8rem 1.8rem 0rem #0000001A,
        0rem 3.3rem 3.3rem 0rem #00000017,
        0rem 7.5rem 4.5rem 0rem #0000000D,
        0rem 13.4rem 5.3rem 0rem #00000003,
        0rem 20.9rem 5.9rem 0rem #00000000;
    text-align: center;
}

/* Button behaviour */
.button {
    transition: transform 0.1s ease;
}

.button.touch {
    transform: scale(0.95);
}

.uploading {
    margin: 0;
    width: 100%;
    padding: 2.2rem;
    background-color: transparent;
    color: var(--clr-red);
    font-size: 2.0rem;
    line-height: 2.6rem;
    font-weight: 700;
    border-radius: 1.0rem;
    border: solid var(--clr-red) 0.2rem;
    box-shadow:
        0rem 0.8rem 1.8rem 0rem #0000001A,
        0rem 3.3rem 3.3rem 0rem #00000017,
        0rem 7.5rem 4.5rem 0rem #0000000D,
        0rem 13.4rem 5.3rem 0rem #00000003,
        0rem 20.9rem 5.9rem 0rem #00000000;
    text-align: center;
}

.error {
    margin: 2.4rem auto 1rem auto; 
}

