/* Padding du formulaire */
.powermail_form {
    padding-left: 30px;
    padding-right: 30px;
}

/* Container pour les champs en colonnes */
.powermail_fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Powermail conditionne certains fieldsets avec un style inline display:block */
.powermail_fieldset[style*="display: block"] {
    display: flex !important;
}

/* Colonne 1 */
.layout1 {
    flex: 1;
    min-width: calc(50% - 15px);
}

/* Colonne 2 */
.layout2 {
    flex: 1;
    min-width: calc(50% - 15px);
}

/* Titre (layout3) */
.powermail_fieldwrap_type_text.layout3 .powermail_field {
    width: 100%;
    clear: both;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Champs pleine largeur (sans classe layout) */
.powermail_fieldwrap:not(.layout1):not(.layout2) {
    width: 100%;
    clear: both;
}

.powermail_fieldwrap:not(.layout1):not(.layout2) div.powermail_field{
    width: calc(50% - 15px);
    clear: both;
}

/* Mobile - 1 colonne */
@media (max-width: 768px) {
    .layout1,
    .layout2 {
        width: 100%;
        float: none;
        flex: none;
    }
    .powermail_field {
        width: 100% !important;
    }
}

/* Clear floats */
.powermail_fieldset::after {
    content: "";
    display: table;
    clear: both;
}

.powermail_fieldset input,
.powermail_fieldset select,
.powermail_fieldset textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: inherit;
}

.layout1 input,
.layout1 select,
.layout1 textarea,
.layout2 input,
.layout2 select,
.layout2 textarea {
    max-width: 100%;
}

.powermail_fieldwrap_type_submit .powermail_field {
    margin: auto;
}

form h3 {
  display: none !important;
}

.powermail_legend {
  display: block !important;
  color: #ef3e42;
  font-size: 20px !important;
  border-bottom: none !important;
}

/* Chevron visible sur tous les dropdowns */
select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding-right: 2.2rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 14px 14px;
}

select::-ms-expand {
        display: none;
}