/* === Formulaire Brochure PDF MLV (Gravity ID 8) — version améliorée === */

#gform_wrapper_8 {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

#gform_wrapper_8 .gfield_label,
#gform_wrapper_8 legend.gfield_label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #004a8f;
  margin-bottom: 0.5rem;
  text-align: left;
}

#gform_wrapper_8 .gform-field-label--type-sub {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-top: 0.3rem;
  color: #333;
}

/* Champs input */
#gform_wrapper_8 input[type="text"],
#gform_wrapper_8 input[type="email"],
#gform_wrapper_8 input[type="file"],
#gform_wrapper_8 textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease-in-out;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#gform_wrapper_8 input:focus,
#gform_wrapper_8 textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Mise en page du champ nom/prénom */
#gform_wrapper_8 .ginput_container_name .gform-grid-col {
  padding-right: 1rem;
  margin-bottom: 1rem;
}

#gform_wrapper_8 .gform-grid-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Description sous champ fichier */
#gform_wrapper_8 .gform_fileupload_rules {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Champ textarea */
#gform_wrapper_8 textarea {
  min-height: 140px;
  resize: vertical;
}

/* Bouton d’envoi */
#gform_submit_button_8 {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #004a8f 0%, #007bff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 85, 160, 0.2);
}

#gform_submit_button_8:hover {
  background: linear-gradient(135deg, #005ecb 0%, #339bff 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 85, 160, 0.3);
}

#gform_submit_button_8:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 85, 160, 0.2);
}/* ================================================================
   ML Voyages — Formulaire Newsletter popup (Gravity Form #10)
   UI premium, discret, optimisé 9:16
   ================================================================ */

#mlv-news-form {
    background: #f6faff;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #e0ecf7;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
    max-width: 430px;
    margin: 15px auto;
}

/* Champs en grille (Prénom / Nom / Email / Confirmation) */
#mlv-news-form fieldset {
    border: none !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}

/* Titres des champs */
#mlv-news-form legend.gfield_label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e56d2;
}

/* Labels internes (Prénom / Nom / Email / Confirmer) */
#mlv-news-form .gform-field-label--type-sub {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #1e56d2 !important;
    margin-bottom: 3px;
}

/* Conteneurs Première ligne (Prénom / Nom) + Email / Conf email */
#mlv-news-form .ginput_complex span,
#mlv-news-form .ginput_container_email span {
    display: block;
    width: 100%;
}

/* Champs texte */
#mlv-news-form input[type="text"],
#mlv-news-form input[type="email"],
#mlv-news-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cee1f3;
    background: #ffffff;
    font-size: 15px;
    color: #003f63;

    transition: all .2s ease;
}

/* Focus */
#mlv-news-form input:focus {
    border-color: #1e56d2;
    box-shadow: 0 0 0 3px rgba(30,86,210,0.15);
    outline: none !important;
}

/* Checkbox RGPD */
#mlv-news-form .gfield_checkbox,
#mlv-news-form .ginput_container_checkbox {
    background: #ffffff;
    padding: 12px 14px;
    border: 1px solid #cedff2;
    border-radius: 10px;
    margin-top: 8px;
}

#mlv-news-form .gchoice label {
    font-size: 13px !important;
    line-height: 1.45;
    color: #003f63 !important;
}

/* Lien confidentialité */
#mlv-news-form .gchoice a {
    color: #1e56d2;
    text-decoration: underline;
}

/* Bouton envoyer */
#mlv-news-form input[type="submit"] {
    width: 100%;
    background: #1e56d2 !important;
    color: #fff !important;
    padding: 14px 0 !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    margin-top: 6px;

    transition: all .25s ease;
}
#mlv-news-form input[type="submit"]:hover {
    background: #003f63 !important;
    transform: translateY(-2px);
}

/* Message après validation */
#mlv-news-form .gform_confirmation_message {
    background: #e7f1ff;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    color: #003f63;
}

/* ===========================
   MOBILE 9:16 optimisé
   =========================== */
@media (max-width: 480px) {

    #mlv-news-form {
        padding: 16px 14px;
        max-height: 82vh;
        overflow-y: auto;
    }

    #mlv-news-form input[type="text"],
    #mlv-news-form input[type="email"] {
        padding: 11px 12px !important;
        font-size: 14px !important;
    }

    #mlv-news-form input[type="submit"] {
        padding: 12px 0 !important;
        font-size: 14px;
    }

    #mlv-news-form legend.gfield_label {
        font-size: 13px;
    }

    #mlv-news-form .gform-field-label--type-sub {
        font-size: 12px !important;
    }
}