/* CSS SPECIFIC TO THE FORM PAGE */

h4 {
    font-size: 1.2rem;
    margin: 0;
}

.inforaft {
    background-color: #fcfbe9;
    padding: 2vw;
}

/* Applies to the multiple backgrounds header it changes bellow with the media queries */
.visual-header {
    background-repeat: no-repeat;
    background-image: 
    url(../img/backgrounds/arctic3x2.webp);
    background-position: 
    -0vw -10vw;
    background-size: 
    calc(120vw) auto; /* Aguarela */
    height: 160vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.header {
    grid-area: header;
}

.mainimage {
    grid-area: mainimage;
}

.mainimage {
    padding: 1vw;
    margin-top: 7vw;
 }

.form_maintext {
    grid-area: form_maintext;
}

.form {
    grid-area: form;
}

/* THANK YOU PAGES */
#thankspages {
    height: 108vh; 
    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;
}

/* BOAT SELECTOR */
.boat-selector {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
}

.boat-selector > div {
    padding: 10px;
    flex-grow: 1;
    border-color: var(--links-color);
    border: 1px solid;
    cursor: pointer;
    border-radius: 15px;
}

.dates, .note {
    font-size: smaller;
}

.boat-selector > div:hover {
    background-color: var(--light-background);
}

.boat-selector > div.selected {
    background-color: var(--links-hover);
}

/* THANK YOU MESSAGE */

.perdata {
    font-family: 'Courier New', Courier, monospace;
}

.harbour {
    font-weight: 700;
}

#logobarco {
    max-width: 70%;
}

.smallwarning {
    line-height: 1rem;
}

@media screen and (min-width: 520px) {
    .visual-header {
        background-image: 
        url(../img/backgrounds/arctic1x1.webp);
        background-size: calc(100vw) auto;
        height: 100vw;
    }
}

@media screen and (min-width: 880px) {
    .visual-header {
        background-image: 
        url(../img/backgrounds/arctic2x3.webp);
        background-position: 
        0vw 0vw; /* Aguarela */
        background-size: 
        calc(100vw) auto; /* Aguarela */
        height: 60vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    h1 {
        font-size: 7vw;
        line-height: 10vw;
        margin-top: 0;
    }
    .formgrid {
        grid-template-columns: 50% 50%;
        grid-template-areas: 
        'header header'
        'form_maintext mainimage'
        'form mainimage'
     }

     .mainimage {
        margin-left: 2vw;
        margin-top: 0;
     }
}

@media screen and (min-width: 1200px) {
    .visual-header {
        background-image: 
        url(../img/backgrounds/arctic16x9.webp);
        background-position: 
        0vw 0vw;
        background-size: 
        calc(100vw) auto;
        height: 48vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    h1 {
        font-size: 5vw;
        margin-top: -4vw;
        line-height: 7.5vw;
        width: 82vw;
    }
}

@media screen and (min-width: 1365px) {
    .visual-header {
        background-position: 
        0vw 0vw;
        background-size: 
        calc(100vw) auto;
        height: 50vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    h1 {
        font-size: 5vw;
        margin-top: -5vw;
        line-height: 9vw;
        width: 82vw;
    }

    h2 {
        margin-bottom: 1.5rem;
    }

    .form_maintext {
        margin-bottom: 0;
    }

}

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

select {
    display: block;
    background-color: var( --second-color);
    border: 1px solid #ced4da;
    padding: .8rem 1rem;
    font-family: var(--regular-font);
    font-size: 1rem;
    border-radius: 20px;
    margin-top: 5px;
    width: 100%;


    margin: 0;      
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;


}

select.round {
    background-image:
      linear-gradient(45deg, transparent 50%, gray 50%),
      linear-gradient(135deg, gray 50%, transparent 50%),
      radial-gradient(#ddd 70%, transparent 72%);
    background-position:
      calc(100% - 20px) calc(1em + 2px),
      calc(100% - 15px) calc(1em + 2px),
      calc(100% - .5em) .5em;
    background-size:
      5px 5px,
      5px 5px,
      1.5em 1.5em;
    background-repeat: no-repeat;
  }
  
  select.round:focus {
    background-image:
      linear-gradient(45deg, white 50%, transparent 50%),
      linear-gradient(135deg, transparent 50%, white 50%),
      radial-gradient(gray 70%, transparent 72%);
    background-position:
      calc(100% - 15px) 1em,
      calc(100% - 20px) 1em,
      calc(100% - .5em) .5em;
    background-size:
      5px 5px,
      5px 5px,
      1.5em 1.5em;
    background-repeat: no-repeat;
    border-color: green;
    outline: 0;
  }

@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;
    }
} 


