/* CSS SPECIFIC TO THE DOWNLOAD FORM PAGE */

/* Applies to the multiple backgrounds header it changes bellow with the media queries */
.visual-header {
    background-repeat: no-repeat;
    background-image: 
    url(../img/backgrounds/bolsa.webp),
    url(../img/backgrounds/peines.webp), 
    url(../img/backgrounds/habitacion.webp), 
    url(../img/backgrounds/naranja.webp), 
    url(../img/backgrounds/a-granel.webp), 
    url(../img/backgrounds/botella.webp), 
    url(../img/backgrounds/tarro.webp),
    url(../img/backgrounds/aguarela.svg);
    background-position: 
    2vw 25vw, /* bolsa */
    8vw 48vw, /* peines */
    80vw 20vw, /* habitacion */
    40vw 50vw,  /* naranja */
    5vw 3vw, /* a granel */
    80vw 3vw, /* botella */
    75vw 46vw, /* tarro */
    -10vw 0vw; /* Aguarela */
    background-size: 
    calc(12vw) auto, /* bolsa */
    calc(10vw) auto, /* peines */
    calc(14vw) auto, /* habitacion */
    calc(15vw) auto, /* naranja */
    calc(12vw) auto, /* a granel */
    calc(6vw) auto, /* botella */
    calc(10vw) auto, /* tarro */
    calc(120vw) auto; /* Aguarela */
    height: 65vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* GRID */
.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;
}

/* THANK YOU PAGES */
#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;
}

.modal h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media screen and (min-width: 880px) {
    .visual-header {
        background-repeat: no-repeat;
        background-position: 
        2vw 20vw, /* bolsa */
        8vw 35vw, /* peines */
        82vw 20vw, /* habitacion */
        40vw 33vw,  /* naranja */
        5vw 3vw, /* a granel */
        80vw 3vw, /* botella */
        73vw 33vw, /* tarro */
        0vw 0vw; /* Aguarela */
        background-size: 
        calc(9vw) auto, /* bolsa */
        calc(8vw) auto, /* peines */
        calc(11vw) auto, /* habitacion */
        calc(11vw) auto, /* naranja */
        calc(10vw) auto, /* a granel */
        calc(5vw) auto, /* botella */
        calc(8vw) auto, /* tarro */
        calc(100vw) auto; /* Aguarela */
        height: 55vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    h1 {
        font-size: 6vw;
        margin-top: -12vw;
        line-height: 7vw;
    }
    .formgrid {
        grid-template-columns: 50% 50%;
        grid-template-areas: 
        'header header'
        'form_maintext mainimage'
        'form mainimage'
     }
}

@media screen and (min-width: 1200px) {
    .visual-header {
        background-repeat: no-repeat;
        background-position: 
        5vw 18vw, /* bolsa */
        10vw 30vw, /* peines */
        82vw 18vw, /* habitacion */
        40vw 33vw,  /* naranja */
        9vw 3vw, /* a granel */
        80vw 2vw, /* botella */
        73vw 30vw, /* tarro */
        0vw 0vw; /* Aguarela */
        background-size: 
        calc(7vw) auto, /* bolsa */
        calc(6vw) auto, /* peines */
        calc(9vw) auto, /* habitacion */
        calc(10vw) auto, /* naranja */
        calc(8vw) auto, /* a granel */
        calc(4vw) auto, /* botella */
        calc(6vw) auto, /* tarro */
        calc(100vw) auto; /* Aguarela */
        height: 48vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    h1 {
        font-size: 6vw;
        margin-top: -8vw;
        line-height: 6.5vw;
    }
}

@media screen and (min-width: 1365px) {
    .visual-header {
        background-repeat: no-repeat;
        background-position: 
        11vw 15vw, /* bolsa */
        20vw 25vw, /* peines */
        82vw 14vw, /* habitacion */
        40vw 25vw,  /* naranja */
        9vw 3vw, /* a granel */
        80vw 2vw, /* botella */
        70vw 23vw, /* tarro */
        5vw 0vw; /* Aguarela */
        background-size: 
        calc(6vw) auto, /* bolsa */
        calc(5vw) auto, /* peines */
        calc(8vw) auto, /* habitacion */
        calc(8vw) auto, /* naranja */
        calc(7vw) auto, /* a granel */
        calc(3.5vw) auto, /* botella */
        calc(5vw) auto, /* tarro */
        calc(90vw) auto; /* Aguarela */
        height: 35vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    h1 {
        font-size: 5vw;
        margin-top: -5vw;
        line-height: 6vw;
        width: 55vw;
    }

    h2 {
        margin-bottom: 4rem;
    }

    .form_maintext {
        margin-bottom: 0;
    }

}

/*
@media screen and (min-width: 1600px) {
    .form_maintext {
        margin-bottom: -5vw;
    }
}
*/

/* Form */

#signup {
    max-width: 100%;
}

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

input {
    background-color: var( --second-color);
    border: 1px solid #ced4da;
    padding: .8rem 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-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
}
.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;
    }
} 


