/* ============================================================ */
/* === HYDROMUR — Formulaires SureForms                     === */
/* ============================================================ */

/* ===== CONTENEUR PRINCIPAL ===== */
.srfm-form-container {
    background: #0d2461 !important;
    border: 2px solid #a6c5d5 !important;
    border-radius: 10px !important;
    padding: 32px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* ===== OVERRIDE VARIABLES SUREFORMS ===== */
.srfm-form-container {
    --srfm-color-scheme-primary: #a6c5d5 !important;
    --srfm-color-scheme-text-on-primary: #0d2461 !important;
    --srfm-color-scheme-text: #ffffff !important;
    --srfm-color-input-label: #ffffff !important;
    --srfm-color-input-placeholder: #999999 !important;
    --srfm-color-input-text: #1a1a1a !important;
    --srfm-color-input-background: #ffffff !important;
    --srfm-color-input-background-hover: #f5f8fa !important;
    --srfm-color-input-border: #d0d8e4 !important;
    --srfm-color-input-border-hover: #a6c5d5 !important;
    --srfm-color-input-border-focus-glow: rgba(166,197,213,0.3) !important;
    --srfm-bg-color: transparent !important;
}

/* ===== CHAMPS INPUT / EMAIL / TEL / TEXTAREA ===== */
.srfm-form-container .srfm-input-common {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #d0d8e4 !important;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.srfm-form-container .srfm-input-common:focus {
    border-color: #a6c5d5 !important;
    box-shadow: 0 0 0 3px rgba(166,197,213,0.25) !important;
    outline: none !important;
    background-color: #ffffff !important;
}
.srfm-form-container .srfm-input-common::placeholder {
    color: #999999 !important;
}

/* ===== LABEL ===== */
.srfm-form-container .srfm-label,
.srfm-form-container label {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

/* ===== TÉLÉPHONE ITI ===== */
.srfm-form-container .iti__selected-country {
    background-color: #f0f4f8 !important;
    border-right: 1px solid #d0d8e4 !important;
    border-radius: 6px 0 0 6px !important;
}
.srfm-form-container .iti__selected-dial-code {
    color: #1a1a1a !important;
}
.srfm-form-container .iti__arrow {
    border-top-color: #666666 !important;
}
.srfm-form-container .iti__dropdown-content {
    background: #ffffff !important;
    border: 1px solid #d0d8e4 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.srfm-form-container .iti__country-name,
.srfm-form-container .iti__dial-code {
    color: #1a1a1a !important;
}
.srfm-form-container .iti__country:hover {
    background-color: #f0f4f8 !important;
}
.srfm-form-container .iti__search-input {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #d0d8e4 !important;
}

/* ===== CHECKBOX ===== */
.srfm-form-container .srfm-cbx .srfm-span-wrap:first-child {
    background-color: #ffffff !important;
    border: 1px solid #d0d8e4 !important;
    border-radius: 3px !important;
}
.srfm-form-container .srfm-input-checkbox:checked + .srfm-cbx .srfm-span-wrap:first-child {
    background-color: #a6c5d5 !important;
    border-color: #a6c5d5 !important;
}
.srfm-form-container .srfm-check-icon {
    stroke: #0d2461 !important;
}
.srfm-form-container .srfm-block-label {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
}

/* ===== MESSAGES D'ERREUR ===== */
.srfm-form-container .srfm-error-message {
    color: #f87171 !important;
    font-size: 0.78rem !important;
    font-family: 'Montserrat', sans-serif !important;
}
.srfm-form-container .srfm-common-error-message {
    background: rgba(248,113,113,0.1) !important;
    border: 1px solid rgba(248,113,113,0.4) !important;
    border-radius: 6px !important;
    color: #f87171 !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
}

/* ===== BOUTON ENVOYER ===== */
.srfm-form-container .srfm-submit-button,
.srfm-form-container .srfm-btn-frontend {
    background: #a6c5d5 !important;
    color: #0d2461 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: background 0.2s, transform 0.15s !important;
    cursor: pointer !important;
}
.srfm-form-container .srfm-submit-button:hover,
.srfm-form-container .srfm-btn-frontend:hover {
    background: #ffffff !important;
    color: #0d2461 !important;
    transform: translateY(-1px) !important;
}

/* ===== MESSAGE DE SUCCÈS ===== */
.srfm-success-box {
    background: rgba(166,197,213,0.15) !important;
    border: 1px solid #a6c5d5 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    text-align: center !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .srfm-form-container {
        padding: 20px 16px !important;
    }
}