/*------------------------------ FRONT OFFICE ------------------------------ */
/*------------------------------ Button style ------------------------------ */

#modal-trigger, #contact-trigger {
    width: auto;
    font-size: 18px;
    height: auto;
    line-height: normal;
    text-align: center;
    background: #000000;
    border-width: 1px;
    border-color: #ffffff;
    border-style: solid;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Akira Expanded', Cairo;
    font-weight: normal;
    border-radius: 50px;
    padding: 19px 47px;
    box-sizing: border-box;
    box-shadow: 0 1px 1px #eeeeee;
    vertical-align: middle;
}

#modal-trigger:hover, #contact-trigger:hover {
    width: auto;
    font-size: 18px;
    height: auto;
    line-height: normal;
    text-align: center;
    background: #ffffff;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    color: #000000;
    padding: 19px 47px;
}

/*------------------------------ Modal style ------------------------------ */

.fo-modal {
    display: none;
    position: fixed!important;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    z-index: 2000;
    background-color: rgb(0, 0, 0, 40%);
    width: 100%;
    height: 100%;
    overflow: auto;
}

.fo-modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: fit-content;
    max-width: 55%;
    height: fit-content;
    border-radius: 12px;
}

.fo-form-content {
    margin : 0 75px 20px 75px;
}

.fo-close {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.fo-close:hover,
.fo-close:focus {
color: #9f31ff;
  text-decoration: none;
  cursor: pointer;
}

input[type="text"], input[type="email"], input[type="tel"] {
    color: black;
    background-color: white;
    border-color: black;
    border-width: 2px;
    border-style: solid;
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    font-size: 18px;
    padding: 12px 8px 12px 8px;
    box-sizing: border-box;
    outline: none;
}

.fo-modal-btn[type="submit"] {
    width: auto;
    font-size: 18px;
    height: auto;
    text-align: center;
    background-color: #000000!important;
    border-width: 1px;
    border-color: #000000;
    border-style: solid;
    color: #ffffff;
    cursor: pointer;
    font-weight: normal;
    border-radius: 50px;
    text-shadow: none;
    padding: 19px 47px 19px 47px;
    box-sizing: border-box;
    margin: 20px 0 10px 0;
    vertical-align: middle;
}

input[type="checkbox"].modal-checkbox {
    margin-right: 7px;
}

.header-container {
    position: relative;
    display: flex;
}

.header-container span {
    position: absolute;
    top: 0;
    right: -50px;
}

.form-subtitle {
    margin-bottom: 20px;
    margin-top: -10px;
}

.checkbox-container {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fo-rgpd {
    line-height: 1.4;
}

.contact-pref-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

/* ----------------- BREAKPOINTS ----------------- */

/* 📱 Smartphones standards */
@media screen and (min-width: 361px) and (max-width: 570px) {
    h3 {
        font-size: 1.5rem;
    }
    .fo-modal-container {
        margin-top: 150px;
        max-width: none;
    }
    .fo-form-content {
        margin-top: 100px;
    }
    .contact-modal {
        margin-top: 380px;
        max-width: none;
    }
}

/* ≥ 600px */
@media screen and (min-width: 570px) and (max-width: 767px) {
    h3 {
        font-size: 1.5rem;
    }
    .fo-modal-container {
        margin-top: 130px;
        max-width: none;
    }
    .fo-form-content {
        margin-top: 50px;
    }
    .contact-modal {
        margin-top: 400px;
        max-width: none;
    }
}

/* ≥ 768px (tablettes) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    h3 {
        font-size: 2.2rem;
    }
    .fo-modal-container {
        margin-top: 100px;
        max-width: none;
    }
    .contact-modal {
        margin-top: 550px;
        max-width: none;
    }
}

/* ≥ 992px (ordinateurs portables) */
@media screen and (min-width: 992px) and (max-width: 1499px) {
    h3 {
        font-size: 2.5rem;
    }
    .fo-modal-container {
        margin-top: 240px;
    }
    .contact-modal {
        margin-top: 550px;
    }
}

/* ≥ 1500px (grands écrans) */
@media screen and (min-width: 1500px) {
    h3 {
        font-size: 2.8rem;
    }
    .fo-modal-container {
        margin-top: 150px;
    }
    .contact-modal {
        margin-top: 350px;
    }
}