/* Specific to the download */

.visual-header {
    background-repeat: no-repeat;
    background-image: url(../img/backgrounds/zanahorias_1.svg), url(../img/backgrounds/zanahorias_2.svg), url(../img/backgrounds/zanahorias_3.svg), url(../img/backgrounds/zanahorias_4.svg);
    background-position: top left, top right, bottom left, bottom right;
    background-size: calc(200px * 0.7) auto, calc(200px * 0.7) auto, calc(360px *0.7) auto, calc(100px *0.7) auto;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formgrid {
    display: grid;
    grid-template-columns: 100%;
    grid-template-areas: 
    'header'
    'mainimage'
    'form_maintext'
    'form'
}

.header {
    grid-area: header;
}

.mainimage {
    grid-area: mainimage;
}

.form_maintext {
    grid-area: form_maintext;
}

.form {
    grid-area: form;
}

#thankspages {
    height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#thankspages > section {
    text-align: center;
    max-width: 500px;
    padding: 8px;
}

#thankyoupage .colored-button:nth-child(3) {
    margin-right: 7px;
}

#thankyoupage .colored-button:nth-child(4) {
    margin-left: 7px;
}

.thankyoubuttons {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.thankyoubuttons a { 
    padding: 15px;
}

a.colored-button {
    margin: 10px 0;
}

@media screen and (min-width: 580px) {
    .visual-header {
        height: 480px;
    }
}

@media screen and (min-width: 880px) {
    .visual-header {
        height: 430px;
        background-size: calc(200px * 1) auto, calc(200px * 1) auto, calc(360px * 1) auto, calc(100px * 1) auto;
    }
    h1 {
        max-width: 700px;
    }
    .formgrid {
        grid-template-columns: 50% 50%;
        grid-template-areas: 
        'header header'
        'form_maintext mainimage'
        'form mainimage'
     }
}

@media screen and (min-width: 1200px) {
    h1 {
        max-width: 805px;
    }
}

@media screen and (min-width: 1365px) {

    h1 {
        max-width: 900px;
    }

    .visual-header {
        height: 450px;
        background-size: calc(200px * 1.3) auto, calc(200px * 1.5) auto, calc(360px * 1.3) auto, calc(100px * 1.5) auto;
    }
}

/* Form */

#signup {
    max-width: 100%;
}

.error-message {
    color: red;
    margin-left: 1rem;
}

input {
    background-color: var( --second-color);
    border: 1px solid #ced4da;
    padding: .5rem 1rem;
    font-family: var(--regular-font);
    font-size: 1rem;
    border-radius: 20px;
}

input[type=text], input[type=email], input[type=tel] {
    box-sizing: border-box;
    width: 100%;
}  

.form-group {
    margin-bottom: 10px;
}

.privacynotice {
    font-size: 85%;
}
.privacycontainer {
    margin-bottom: 1rem;
}

@media screen and (min-width: 1080px) {
    input {
        padding: .7rem 1.2rem;
        font-size: 1.2rem;
        border-radius: 30px;
    }
}

/* ACESSIBILITY */

@media (prefers-contrast: more) {
    :root {
        --second-bg-color: #542314;
    }
    .colored-button {
        background-color: var(--second-bg-color);
    }
    ::placeholder {
        color: var(--text-color);
    }
}

/* PRINT */

@media print {
    form {
        display: none;
    }
    .visual-header {
        height: 200px;
    }
}
 
#fixed_button_petition_container {
    display: none;
}

@media screen and (max-width: 600px) {
    #fixed_button_petition_container {
        display: block;
        background-color: var(--links-color);
        color: var(--second-color);
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 15px;
        margin-right: auto;
        margin-left: auto;
      }
    
    #fixed_button_petition_container a {
        color: var(--second-color);
    }
    
    #fixed_button_petition_container > div {
        text-align: center;
    }
} 


