/*Codes couleur*/ 
:root{
    --bg-body-1: #F8F8FF;
    --bg-body-: rgb(229, 229, 226);
    --border : #1ABC9C;
    --cta : #FF5841;
    --text-main: #333333;
    --text-titles: #2C3E50;
    --font-family-main: 'Lobster two', sans-serif;
    --font-family-secundary: 'Mulish', sans-serif;
    }

body {
    background-image: url('./img/landscape/mtsjrdl--RIHgVIKjYI-unsplash.webp');
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
}

#banner {
    background-color: white;
}

#contact-container {
    width:90%;
    max-width: 1200px;
    height: auto;
    padding: 2em 1em;
    margin:auto;   
}

#contact-container h1 {
    font-family: var(--font-family-secundary);
    color: var(--bg-body-1);
    padding: 5em 0 1em 0;
}

.contact_header {
    display: flex; 
    flex-direction: row;
    justify-content: space-between;
    padding: 1em 0 1em 0;
    margin:auto;
    width :100%;
    gap: 2em;
}

.contact_header-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1em 0 1em 0;
    width: 300px;
    height: 300px;
    background-color: white;
    text-align: center;
    color: var(--text-titles);
}

.contact_header-card a {
    text-decoration: none;
    color:var(--text-titles);
}

.contact_header-card a span {
    position: relative;
    display: inline-block;
    font-weight: normal;
}

.contact_header-card a span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: var(--text-titles);
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
  }
  
  .contact_header-card a:hover span::before {
    transform-origin: left;
    transform: scaleX(1);
  }


.contact_header img {
    width : 80px;
    height: 80px;
    margin: 1em auto 0 auto;

}

.contact_header-card-title {
    font-size: 1.2em;
    font-weight: 800;
}

.contact_main {
    display: flex;
    width: 100%;
    height: auto;
    margin: auto;
    padding: 3em 0 3em 0;
}

#success-dialog {
    display: none;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    position: fixed;
    width: 50%;
    height: 400px;
    z-index: 2000;
    border-radius: 10px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 1em;
    padding: 2em;
}

#success-dialog[open] {
    display: flex;
  }

#success-dialog::backdrop {
    background: rgba(0,0,0,0.4);
}

dialog img {
    width: 100px;
    height: 100px;
}

button img {
    width: 40px;
    height: 40px;
}

dialog p {
    font-weight: 700;
    color: var(--text-titles);
    font-size: 1.125em;
}

dialog button {
    background-color: var(--text-titles);
    border-radius: 10px;
    color:#f6f6f0;
    width : 50%;
    transition: transform 0.4s ease;
    border: 1px solid var(--text-titles);
    margin:0.5em;
    padding: 0.4em 1.5em;
    font-weight: 700;
    text-align: center;
}

dialog button:hover {
    font-weight: 700;
    transform: scale(1.1);
}

.success-dialog__close {
    all: unset;
    position: absolute;
    right:6px;
    top: 1px;
    width: 30px;
    height: 30px;
}

form {
    width: 50%;
    height: auto;
    background-color: var(--text-titles);
    color: var(--bg-body-1);
    padding : 1em;
}

span {
    padding-bottom: 1em;
}

.form_header-title{
    font-size: 2.5em;
    font-weight: 800;
    padding: 1em 0 1em 0.5em;
}

.form_fullname {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 1em 0 1em 1em;
}

.form_fullname input {
    padding-top: 1em;
    width: 90%;
}

.form-bottom label {
    display: flex;
    flex-direction: column;
    padding: 1em;
}

#map {
    width: 50%;
}

input {
    all: unset;
    background: none;
    border-bottom: 1px solid white;
    outline: none;
    appearance: none;
    -moz-appearance: none;
}

input:invalid {
    border-bottom: 1px solid red;
}

textarea:invalid {
    border-bottom: 1px solid red;
}

::placeholder {
    color: white;
    opacity: 0.8;
}

textarea {
    all: unset;
    height: 100px;
    resize: vertical;
    border-bottom: 1px solid white;
}

.form_bottom {
    display: flex;

}
.form_bottom-btn {
    padding: 0.5em;
    background-color: white;
    color:var(--text-titles);
    font-size: 1.2em;
    font-weight: 800;
    border-radius: 10px;
    width: 40%;
    margin: 1em;
    text-align: center;
    transition: transform 0.4s ease;
}

.form_bottom-btn:hover {
    transform: scale(1.1);
}

.errorDiv {
    color: #FF5841;
}

/* --------------------------------------MEDIA QUERIES */

@media screen and (max-width: 991px) {

    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
}

    #contact-container h1 {
        text-align: center;
    }

    .contact_header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4em 0 4em 0;
    }

    .contact_header-card {
        width: 250px;
        height: 250px;
    }

    .contact_main {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        gap: 6em;
    }

    #success-dialog {
        width: 80%;
        height: 300px;
        text-align: center;
    }

    dialog img {
        width: 80px;
    }

    .success-dialog__close {
        all: unset;
        position: absolute;
        right:6px;
        top: 0px;
        width: 30px;
        height: 30px;
    }


    form {
        width: 100%;
    }

    .form_bottom {
        display: flex;
        flex-direction: column;
    }

    .g-recaptcha {
    width :50px;
    height: auto;
    } 

    #map {
        width: 100%;
        height: 250px;
    }
}

@media screen and (min-width: 992px) {
    #menu-button {
        display: none;
        }
    #fixed-btn {
        display: none;
        }
    }