/* ============================================================
   STRUCTURE COMMUNE CE : .hs-form-ce
   ============================================================ */

.hs-form-ce {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hs-form-ce form.hs-form {
    width: 100% !important;
    font-family: inherit;
}

/* Grille et Layout */
.hs-form-ce .hs-form fieldset {
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

.hs-form-ce .hs-form fieldset.form-columns-2 {
    display: flex;
    gap: 20px;
}

.hs-form-ce .hs-form fieldset.form-columns-2 .hs-form-field {
    flex: 1;
    min-width: 0;
}

.hs-form-ce .hs-form .hs-form-field {
    margin-bottom: 8px;
}

/* Éléments de saisie (Structure) */
.hs-form-ce .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.hs-form-ce .hs-form select.hs-input {
    width: 100% !important;
    height: 42px;
    padding: 0 18px;
    border-radius: 50px; /* Style Pilule */
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.hs-form-ce .hs-form textarea.hs-input {
    width: 100% !important;
    height: 130px;
    padding: 14px 18px;
    border-radius: 16px;
    resize: vertical;
}

/* Labels et Erreurs */
.hs-form-ce .hs-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.hs-form-ce .hs-form .hs-form-required {
    margin-left: 2px;
}

.hs-form-ce .hs-form .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    font-size: 12px;
}

/* Bouton (Structure) */
.hs-form-ce .hs-form .hs-submit {
    text-align: center;
}

.hs-form-ce .hs-form .hs-button {
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    border-width: 4px;
    border-style: solid;
}

.hs-form-ce .hs-form .hs-button:active {
    transform: scale(0.98);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .hs-form-ce .hs-form fieldset.form-columns-2 {
        flex-direction: column;
        gap: 0;
    }
    .hs-form-ce .hs-form fieldset.form-columns-2 .hs-form-field {
        width: 100% !important;
    }
}

/* ============================================================
   THÈME COULEUR WHITE (CE) : .hs-form-white
   ============================================================ */

/* Couleurs des textes */
.hs-form-white.hs-form-ce .hs-form label {
    color: #1a1a2e;
}

.hs-form-white.hs-form-ce .hs-form .hs-form-required {
    color: #e0442a;
}

.hs-form-white.hs-form-ce .hs-form .hs-error-msgs {
    color: #e0442a;
}

/* Couleurs des champs */
.hs-form-white.hs-form-ce .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.hs-form-white.hs-form-ce .hs-form textarea.hs-input,
.hs-form-white.hs-form-ce .hs-form select.hs-input {
    background-color: #f0f5ff;
    border: 1.5px solid #3b82f6;
    color: #1a1a2e;
}

/* Focus */
.hs-form-white.hs-form-ce .hs-form input.hs-input:focus,
.hs-form-white.hs-form-ce .hs-form textarea.hs-input:focus,
.hs-form-white.hs-form-ce .hs-form select.hs-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Icône Select */
.hs-form-white.hs-form-ce .hs-form select.hs-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b82f6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

/* Couleurs Bouton (Orange) */
.hs-form-white.hs-form-ce .hs-form .hs-button {
    background-color: #F36222;
    border-color: #F36222;
    color: #ffffff;
}

.hs-form-white.hs-form-ce .hs-form .hs-button:hover {
    background-color: #ffffff;
    color: #F36222;
    border:4px solid #F36222;
}

/* ============================================================
   THÈME COULEUR BLEU (CE) : .hs-form-blue
   ============================================================ */

/* Couleurs des textes */
.hs-form-blue.hs-form-ce .hs-form label {
    color: #FFF;
}

.hs-form-blue.hs-form-ce .hs-form .hs-form-required {
    color: #FFF;
}

.hs-form-blue.hs-form-ce .hs-form .hs-error-msgs {
    color: #FFF;
}

/* Couleurs des champs */
.hs-form-blue.hs-form-ce .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.hs-form-blue.hs-form-ce .hs-form textarea.hs-input,
.hs-form-blue.hs-form-ce .hs-form select.hs-input {
    background-color: #f0f5ff;
    border: 1.5px solid #3b82f6;
    color: #1a1a2e;
}

/* Focus */
.hs-form-white.hs-form-ce .hs-form input.hs-input:focus,
.hs-form-white.hs-form-ce .hs-form textarea.hs-input:focus,
.hs-form-white.hs-form-ce .hs-form select.hs-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Icône Select */
.hs-form-blue.hs-form-ce .hs-form select.hs-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b82f6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

/* Couleurs Bouton (Orange) */
.hs-form-blue.hs-form-ce .hs-form .hs-button {
    background-color: #f36221;
    border-color: #f36221;
    color: #ffffff;
    border:4px solid #f36221;
}

.hs-form-blue.hs-form-ce .hs-form .hs-button:hover {
    background-color: #ffffff;
    color: #F36222;
}