/* Global */
.form-input, textarea.form-control, .newsletter-input {
    border-radius: 25px;
    border: none;
    padding: 10px;
    animation: backgroundColorChangeLight 30s infinite alternate ease-in-out;
    transition: all 0.3s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    color: black;
}

/* Formulaire de contact */
.form-container {
    margin-top: 100px;
    margin-bottom: 100px;
}

.contact-form {
    padding: 10px;
    width: 98%;
    border-radius: 25px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-family: "Dancing Script", cursive;
    font-size: 40px !important;
    color: #D0B134;
}

@media screen and (min-width: 768px) {
    .form-title {
        font-size: 48px !important;
    }
}

.form-subtitle {
    font-size: 14px !important;
}

.form-label {
    font-weight: bold;
    margin: 10px;
    white-space: nowrap;
    font-size: 16px;
}

textarea.form-control {
    width: 80%;
    resize: none;
}

.form-input:focus,
textarea.form-control:focus,
select:focus {
    border-color: #FFDAB9;
    outline: none;
    box-shadow: none;
}

@keyframes backgroundColorChangeLight {
    0%   { background-color: rgba(255, 182, 193, 0.3); } /* LightPink */
    25%  { background-color: rgba(255, 218, 185, 0.3); } /* PeachPuff */
    50%  { background-color: rgba(230, 230, 250, 0.3); } /* Lavender */
    75%  { background-color: rgba(176, 224, 230, 0.3); } /* PowderBlue */
    100% { background-color: rgba(255, 182, 193, 0.3); } /* LightPink */
}

#form-lname {
    margin-bottom: 20px;
}

/* Newsletter */
.newsletter-button {
    margin: 0 !important;
    width: auto;
    padding: 10px 20px;
}

.newsletter-form {
    display: block;
    gap: 10px;
}

.newsletter-input {
    height: 50px;
    padding: 10px;
    width: 100%;
}

input.newsletter-input::placeholder {
    font-size: 15px;
}

.newsletter-checkbox-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-checkbox-label {
    font-size: 14px;
}


/* Style de la checkbox */
/* Cacher la checkbox native */
.newsletter-checkbox-label {
    appearance: none;
    -webkit-appearance: none;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
  }
  
  /* Style quand cochée */
  .newsletter-checkbox-label:checked {
    background-color: #D0B134;
    border-color: #D0B134;
  }
  
  /* Optionnel : Ajouter un check visuel */
  .newsletter-checkbox-label:checked::after {
    content: '✔';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 3px;
}

@media (min-width: 768px) {
    .newsletter-section {
        background-color: #fff;
        padding: 70px;
    }

    .newsletter-container {
        padding: 30px;
    }

    .newsletter-text {
        width: 75%;
    }
}

/* Responsive */
@media screen and (min-width: 768px) {
    .form-label {
        min-width: 75px;
        text-align: right;
        display: inline-block;
    }

    .form-input,
    textarea.form-control {
        flex-grow: 1;
        width: 100%;
        font-size: 16px;
    }

    .form-group {
        display: flex;
        align-items: center;
    }

    .form-input {
        margin-bottom: 0px;
    }

    #form-lname, #form-title {
        margin-bottom: 10px;
    }

    .newsletter-form {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .newsletter-input {
        margin-right: 10px;
        width: 80%;
    }

    .newsletter-button {
        width: 18%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (min-width: 1024px) {
    .contact-form {
        width: 70%;
        padding: 30px;
    }

    .form-input, #form-title {
        margin-bottom: 10px;
    }

    input.newsletter-input::placeholder {
        font-size: 15px;
    }
}

@media screen and (min-width: 1400px) {
    .contact-form {
        width: 50%;
        padding: 50px;
    }

    .form-input, #form-title {
        margin-bottom: 15px;
    }
}

/* Recaptcha */
.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Message d'alerte */
.alert {
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    width: 90%;
    margin: 10px auto;
}

.alert-error {
    background-color: rgba(255, 99, 71, 0.3);
    color: #ff2600;
}
.alert-success {
    background-color: rgba(144, 238, 144, 0.3);
    color: #03b403;
}

.alert-info {
    background-color: rgba(173, 216, 230, 0.3);
    color: #31708f;
}


.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.form-container ul li {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.8rem;
}

.select-arrow {
    appearance: none;
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 10px 6px;
    background-color: white;
    padding-right: 2.5rem;
    position: relative;
}

.select-arrow:focus {
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}