/* =====================================================
   SOCAF Forms – Feuille de style
   Compatible avec la plupart des thèmes WordPress
===================================================== */

/* ---------- Reset / base ---------- */
.socaf-form-wrap *,
.socaf-form-wrap *::before,
.socaf-form-wrap *::after {
    box-sizing: border-box;
}

.socaf-form-wrap {
    font-size: 15px;
    color: #1a2533;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---------- Notice / alert ---------- */
.socaf-notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.socaf-notice--success {
    background: #edfaf1;
    border: 1px solid #27ae60;
    color: #155724;
}

.socaf-notice--error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #721c24;
}

.socaf-confirmation h3 {
    margin: 0 0 12px;
    color: #27ae60;
}

.socaf-confirmation ul {
    margin: 8px 0 8px 20px;
    padding: 0;
}

.socaf-confirmation li {
    margin-bottom: 6px;
}

/* ---------- Sections / fieldsets ---------- */
.socaf-section {
    border: 1px solid #d6e4f7;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 28px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.socaf-section legend {
    font-weight: 700;
    font-size: 16px;
    color: #1a3a5c;
    background: #fff;
    padding: 0 10px;
    margin-left: -4px;
}

.socaf-section--total {
    background: #f0f6ff;
    border-color: #2d6cb4;
}

/* ---------- Fields ---------- */
.socaf-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    margin-bottom: 18px;
}

.socaf-field--short {
    flex: 0 1 300px;
}

.socaf-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.socaf-label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: #2c3e50;
}

.socaf-label .req {
    color: #e74c3c;
    margin-left: 2px;
}

/* ---------- Inputs ---------- */
.socaf-input {
    padding: 9px 13px;
    border: 1px solid #b8cce4;
    border-radius: 5px;
    font-size: 14px;
    color: #1a2533;
    background: #fafcff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

.socaf-input:focus {
    outline: none;
    border-color: #2d6cb4;
    box-shadow: 0 0 0 3px rgba(45,108,180,.15);
    background: #fff;
}

.socaf-input--error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.12) !important;
}

.socaf-field-error {
    color: #e74c3c;
    font-size: 12.5px;
    margin-top: 4px;
}

/* ---------- Radios & checkboxes ---------- */
.socaf-radio-group,
.socaf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.socaf-radio-group label,
.socaf-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.socaf-radio-group input[type="radio"],
.socaf-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2d6cb4;
    cursor: pointer;
}

/* ---------- Info messages ---------- */
.socaf-info-msg {
    background: #eff5ff;
    border-left: 4px solid #2d6cb4;
    padding: 10px 14px;
    border-radius: 0 5px 5px 0;
    font-size: 13.5px;
    color: #1a3a5c;
    margin-bottom: 18px;
}

/* ---------- Intervenants ---------- */
.socaf-intervenant {
    border-top: 1px dashed #d6e4f7;
    padding-top: 16px;
    margin-top: 8px;
}

.socaf-intervenant:first-child {
    border-top: none;
    padding-top: 0;
}

/* ---------- Entreprises ---------- */
.socaf-entreprise {
    background: #f7faff;
    border: 1px solid #d6e4f7;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.socaf-entreprise-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.socaf-remove-entreprise {
    background: none;
    border: none;
    font-size: 16px!important;
    cursor: pointer;
    padding: 8px!important;
    border-radius: 4px !important;
    line-height: 1;
    transition: .2s;
}

.socaf-remove-entreprise:hover {
    
}

/* ---------- Total ---------- */
.socaf-total-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.socaf-total-label {
    font-weight: 600;
    font-size: 16px;
}

.socaf-total-value {
    font-size: 24px;
    font-weight: 800;
    color: #2d6cb4;
    min-width: 140px;
}

/* ---------- Buttons ---------- */
.socaf-btn-primary {
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s;
    letter-spacing: .3px;
}

.socaf-btn-primary:hover {
    border: none;
}

.socaf-btn-primary:active {
    transform: scale(.98);
}

.socaf-btn-primary:disabled {
    background: #95a5b8;
    cursor: not-allowed;
}

.socaf-btn-secondary {
    display: inline-block;
    padding: 9px 20px!important;
    font-size: 14px!important;
    font-weight: 600!important;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
    margin-top: 4px;
}

.socaf-btn-secondary:hover {
    border: none;
}

/* ---------- Submit area ---------- */
.socaf-submit-wrap {
    text-align: center;
    padding-top: 8px;
}

.socaf-recaptcha-notice {
    font-size: 11.5px;
    color: #888;
    margin-top: 10px;
}

.socaf-recaptcha-notice a {
    color: #2d6cb4;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .socaf-section {
        padding: 16px 14px;
    }

    .socaf-field--short {
        flex: 1 1 100%;
    }

    .socaf-total-value {
        font-size: 20px;
    }
}
