/*---------------------------------------------------------------------
    In this CSS file you will find the style for the contact page.
---------------------------------------------------------------------*/

/* Here you can import all stylesheets */
@import 'main.css';
@import 'header.css';
@import 'footer.css';


.contactHeader {
    text-align: center;
}

/*--------------------------------------------------
    CSS for the Contact details
---------------------------------------------------*/
.contactItems {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contactItem address {
    font-style: normal;
}

/* The Google Maps */
.contactMap {
    width: 100%;
    height: 300px;

    /* This makes Google Maps take up the full screen width */
    --child-width: 100vw;
    margin-left: calc(-.5 * var(--child-width) + 50%);
    width: var(--child-width);

    box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.48), inset 0px -2px 16px 0px rgba(0,0,0,0.48);
    -webkit-box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.48), inset 0px -2px 16px 0px rgba(0,0,0,0.48);
    -moz-box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.48), inset 0px -2px 16px 0px rgba(0,0,0,0.48);
}


/*--------------------------------------------------
    CSS for the Form
---------------------------------------------------*/
.contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contactIntro {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Form styling */
.formContainer {
    background-color: #D8E7F8;
    --child-width: 100vw;
    margin-left: calc(-.5 * var(--child-width) + 50%);
    width: var(--child-width);
}

form {
    max-width: 25rem;
    margin-right: auto;
    margin-left: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

fieldset {
    border: none;
    margin-bottom: 0px;
    width: auto;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"] {
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: 2.5rem;
    padding: 8px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}

input#phoneNumber {
    width: 60%;
}

textarea {
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: auto;
    padding: 8px;
    border: none;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

input:hover, textarea:hover {
    box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.5);
}

input:focus-visible, textarea:focus-visible {
    outline: var(--primary) auto 1px;
}

input.error-border, textarea.error-border {
    border: 2.5px solid var(--warning);
}

input.valid-border, textarea.valid-border {
    border: 2.5px solid var(--sucsess);
}

.error {
    color: var(--warning);
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    margin-top: 0.25rem;
}


/*--------------------------------------------------
    CSS for the pop-up notification
---------------------------------------------------*/

/* For the black background */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* display: none; */
}

/* The box where the pop-up message is located */
#popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 60%;
    background-color: #fff;
    padding: 24px 16px;
    border-radius: 16px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.5);
    /* display: none; */
}

#popup {
    text-align: center;
}


/*--------------------------------------------------
    The breakpoints
---------------------------------------------------*/
@media (min-width: 366px) {
    /* The Contact details */
    .contactItems {
        display: grid;
        grid-template-rows: auto auto;
        row-gap: 1.5rem;
        column-gap: 0;
    }

    /* 1st item (title) takes up the first column and all the rows in row 1 */
    .contactItems > .contactItem:nth-child(1) {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    /* 2nd item (address) takes up two rows in column 1 */
    .contactItems > .contactItem:nth-child(2) {
        grid-column: 1;
        grid-row: 2 / span 3;
    }

    /* 3rd item (telephone) in column 2, row 2 */
    .contactItems > .contactItem:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        padding-left: 1.5rem;
    }

    /* 4th item (email) in column 2, row 3 */
    .contactItems > .contactItem:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
        padding-left: 1.5rem;
    }
}

/* Intermediate version of mobile and tablet (480px) */
@media screen and (min-width: 480px) {
    /* The Contact details */
    .contactItems {
        gap: 1.75rem;
    }

    .contactItems > .contactItem:nth-child(3) {
        padding-left: 0;
    }

    .contactItems > .contactItem:nth-child(4) {
        padding-left: 0;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the contact form */
    .contactForm {
        gap: 1.75rem;
    }

    form {
        padding-top: 1.75rem;
        padding-bottom: 4.25rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the Pop-up */

    #popup-container {
        min-width: 55%;
        padding: 32px 20px;
    }
}

/* Additional intermediate version of mobile and tablet (592px) */
@media (min-width: 592px) {
    /* The Contact details */
    .contactItems {
        align-items: start;
    }

    .contactItems > .contactItem:nth-child(1) {
        grid-column: 1 / span 3;
        grid-row: 1;
    }

    .contactItems > .contactItem:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .contactItems > .contactItem:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .contactItems > .contactItem:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }
}

/* Tablet version (768px) */
@media screen and (min-width: 768px) {
    /* The Contact details */
    .contactDetails {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.125rem;
    }

    .contactMap {
        margin-top: 0;
        grid-row: 1;
        grid-column: 1;

        height: 100%;
        width: 100%;
        --child-width: 100%;
        margin-left: 0;
        box-shadow: none;
        border-radius: 16px;
    }

    .contactItems {
        display: flex;
        flex-direction: column;
        grid-row: 1;
        grid-column: 2;

        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the contact form */
    .contactForm {
        flex-direction: row;
        align-items: center;
        gap: 2.125rem;
        margin-bottom: 3.5rem;
    }

    .contactIntro {
        max-width: 100%;
        text-align: left;
        flex-basis: 50%;
    }

    .formContainer {
        flex-basis: 50%;
        height: 100%;
        width: 100%;
        --child-width: 100%;
        margin-left: 0;

        border-radius: 16px;
    }

    form {
        padding-top: 0.875rem;
        padding-bottom: 2rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the Pop-up */
    #popup-container {
        min-width: 50%;
        padding: 40px 24px;
    }
}

/* Laptop version (1024px) */
@media screen and (min-width: 1024px) {
    /* The Contact details */
    .contactDetails {
        gap: 2.5rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the contact form */
    .contactForm {
        gap: 2.5rem;
        margin-bottom: 4.5rem;
    }
}

/* Larger laptop version (1280px) */
@media screen and (min-width: 1280PX) {
    /* The Contact details */
    .contactDetails {
        gap: 3rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the contact form */
    .contactForm {
        gap: 3rem;
        margin-bottom: 5.5rem;
    }
}

/* Intermediate version of laptop and desktop (1600px) */
@media screen and (min-width: 1600PX) {
    /* The Contact details */
    .contactDetails {
        gap: 3.5rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the contact form */
    .contactForm {
        gap: 3.5rem;
        margin-bottom: 6.5rem;
    }

    input[type="text"],
    input[type="date"],
    input[type="email"],
    input[type="tel"] {
        height: 2.75rem;
    }
}

/* Desktop version (1920px) */
@media screen and (min-width: 1920PX) {
    /* The Contact details */
    .contactDetails {
        gap: 4rem;
    }
    /*----------------------------------------*/

    /* Everything that belongs to the contact form */
    .contactForm {
        gap: 4rem;
        margin-bottom: 7.5rem;
    }
}