.fmcs-gestion{max-width:1200px}.fmcs-standby{background:#fff5ca;border-left:5px solid #e1aa00;padding:15px 20px;margin:20px 0;color:#2b2700}.fmcs-standby p{margin:6px 0 0}.fmcs-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.fmcs-cards>div{background:#fff;border:1px solid #ddd;padding:20px;border-radius:8px}.fmcs-cards span{font-weight:700;color:#8b6500}.fmcs-cards h2{font-size:19px}.fmcs-on{color:#157333}.fmcs-preview-form{display:grid;grid-template-columns:260px minmax(180px,500px);gap:12px 18px;background:#fff;padding:25px;border:1px solid #ddd;border-radius:10px;max-width:850px}.fmcs-preview-form>label{font-weight:600;margin:auto 0}.fmcs-preview-form>input{width:100%;padding:10px;border-radius:5px;background:#f7f7f7}.fmcs-preview-form .fmcs-check,.fmcs-preview-form .fmcs-info,.fmcs-preview-form button{grid-column:1/-1}.fmcs-preview-form .fmcs-check{padding-top:10px}.fmcs-preview-form button{padding:12px;border:0;border-radius:6px;background:#ffe100;color:#111;font-weight:800}.fmcs-form-intro{max-width:850px;margin-top:15px}.fmcs-form-unavailable{padding:15px;border-left:4px solid #e0a700;background:#fff8dc}.fmcs-shortcode .fmcs-preview-form{margin:0 auto}@media(max-width:650px){.fmcs-cards{grid-template-columns:1fr}.fmcs-preview-form{grid-template-columns:1fr}}

.fmcs-preview-form input:not([type=checkbox]){background:#fff;border:1px solid #8c8f94;max-width:100%;box-sizing:border-box}.fmcs-preview-form .fmcs-preview-feedback{grid-column:1/-1}.fmcs-preview-feedback.fmcs-error{background:#fff1f0;border-left:4px solid #bf2424;padding:12px}.fmcs-preview-feedback.fmcs-valid{background:#eff8ed;border-left:4px solid #22833b;padding:12px}.fmcs-preview-form .fmcs-reset-button{background:#f0f0f1;color:#333;border:1px solid #8c8f94}

.fmcs-test-form{display:grid;grid-template-columns:240px minmax(200px,520px);gap:12px 16px;padding:22px;background:#fff;border:1px solid #ddd;max-width:850px;border-radius:8px}.fmcs-test-form>label{font-weight:600;align-self:center}.fmcs-test-form>input{width:100%;max-width:100%;padding:7px}.fmcs-test-form .fmcs-test-wide{grid-column:1/-1}.fmcs-test-form .button-primary{background:#ffe100!important;border-color:#d4ab00!important;color:#111!important;font-weight:bold}@media(max-width:650px){.fmcs-test-form{grid-template-columns:1fr}}
.fmcs-birth-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:center}.fmcs-birth-group select{min-width:0;width:100%;max-width:100%;padding:8px}.fmcs-birth-hint{grid-column:1/-1;color:#555;font-size:12px}.fmcs-geo-helper{grid-column:2;line-height:1.5;font-size:12px;color:#465363;margin-top:-9px}.fmcs-geo-helper[data-status=success]{color:#146b35}.fmcs-geo-helper[data-status=warning]{color:#9c5000}@media(max-width:650px){.fmcs-geo-helper{grid-column:1}}
/* v0.3.2 : choix international et subdivisions locales */
.fmcs-country-wrap{display:flex;flex-direction:column;gap:8px;max-width:100%;min-width:0}
.fmcs-country-wrap select,.fmcs-country-wrap input{width:100%;max-width:100%;min-height:38px}
.fmcs-country-wrap [hidden]{display:none!important}

/* v0.4.0 : champs mots de passe accessibles + suivi des tests */
.fmcs-password-field{position:relative;width:100%;max-width:100%;min-width:0}
.fmcs-password-field input{box-sizing:border-box;width:100%!important;max-width:100%!important;padding:10px 52px 10px 12px!important;min-height:42px}
.fmcs-password-field .fmcs-password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:42px;height:38px;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:4px;color:#252525!important;cursor:pointer;grid-column:auto!important}
.fmcs-password-field .fmcs-password-toggle:hover{background:#eee!important}
.fmcs-password-field .fmcs-password-toggle:focus-visible{outline:2px solid #135e96;outline-offset:1px}
.fmcs-password-field .fmcs-password-toggle .dashicons{font-size:21px;width:22px;height:22px}
.fmcs-test-stats{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:18px 0}.fmcs-test-stat{background:white;border-left:4px solid #e1ad00;padding:12px;display:flex;flex-direction:column;gap:4px}.fmcs-test-stat strong{font-size:26px;color:#111}.fmcs-test-stat span{font-size:13px}@media(max-width:700px){.fmcs-test-stats{grid-template-columns:repeat(2,minmax(120px,1fr))}}

/* Consent rows: native checkboxes, never styled as full-width text fields. */
.fmcs-preview-form .fmcs-check{grid-column:1/-1;padding:10px 0}
.fmcs-preview-form .fmcs-check label{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.6}
.fmcs-preview-form .fmcs-check input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;position:static!important;opacity:1!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;padding:0!important;margin:3px 0 0!important;flex:0 0 20px;border-radius:3px}
.fmcs-preview-form .fmcs-check small{display:block;margin-left:30px}
.fmcs-preview-form>small,.fmcs-preview-form>.fmcs-password-error{grid-column:1/-1}
.fmcs-preview-form .fmcs-terms-open{background:none;border:0;padding:6px 0;color:#135e96;text-decoration:underline;font-weight:600;cursor:pointer}
.fmcs-terms dialog{width:min(760px,90vw);max-height:90vh;border:1px solid #aaa;border-radius:10px;padding:24px;box-sizing:border-box}
.fmcs-terms dialog::backdrop{background:rgba(0,0,0,.5)}
.fmcs-terms-scroll{max-height:50vh;overflow:auto;border:1px solid #aaa;padding:18px;line-height:1.7;background:white;color:#222;overscroll-behavior:contain}
.fmcs-terms-text{white-space:pre-wrap;overflow-wrap:anywhere}
.fmcs-preview-form .fmcs-terms-validate:disabled{opacity:.5;cursor:not-allowed}
.fmcs-preview-form .fmcs-terms-close{background:#eee;border:1px solid #888;margin-top:10px}

.fmcs-preview-form .fmcs-terms{background:#f4f8fb;border:1px solid #bdcddd;border-radius:8px;padding:16px}.fmcs-terms-steps{margin:12px 0 16px 24px;line-height:1.7}.fmcs-preview-form .fmcs-terms-open{display:inline-block;background:#135e96;color:#fff;border-radius:5px;padding:12px 18px;text-decoration:none}.fmcs-terms #fmcs-terms-status{font-weight:600;margin:16px 0}

.fmcs-payment-step{grid-column:1/-1;border:1px solid #d4ad00;padding:18px;background:#fffbe8}.fmcs-payment-continue[aria-disabled=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.fmcs-payment-continue[aria-disabled=false]{background:#135e96!important;color:#fff!important;font-weight:700;padding:10px 18px!important;height:auto!important}

.fmcs-preview-form button:not(:disabled){cursor:pointer;touch-action:manipulation}.fmcs-preview-form button:disabled{cursor:not-allowed;opacity:.55}.fmcs-payment-step .fmcs-payment-log{margin-left:22px;line-height:1.8}.fmcs-payment-step .fmcs-payment-result{padding:10px 0;font-weight:600}.fmcs-payment-step .fmcs-payment-mail{border:1px solid #b9cbd9;padding:14px;background:white}
.fmcs-payment-confirmation{padding:14px;border-left:4px solid #b17e00;background:#fff6d5;font-weight:700}.fmcs-payment-confirmation.fmcs-paid{border-color:#208341;background:#eaf6ed;color:#145c2c}.fmcs-payment-fallback{width:min(650px,95vw);max-height:94vh;border:1px solid #8fa7b1;border-radius:10px}.fmcs-payment-fallback::backdrop{background:rgba(0,0,0,.5)}.fmcs-payment-fallback iframe{width:100%;height:62vh;border:0}

/* Missing/invalid applicant fields are visibly identified after a check. */
.fmcs-preview-form input.fmcs-field-invalid,.fmcs-preview-form select.fmcs-field-invalid,.fmcs-preview-form textarea.fmcs-field-invalid{border:2px solid #b42318!important;background:#fff1f0!important;box-shadow:0 0 0 1px #b42318!important;scroll-margin-top:90px}
.fmcs-preview-form .fmcs-consent-invalid{border:2px solid #b42318!important;background:#fff1f0!important;padding:12px;border-radius:6px}

.fmcs-live-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.fmcs-live-form .fmcs-live-actions{margin-top:20px;padding:18px;border:1px solid #ccd0d4}.fmcs-live-form button{cursor:pointer}.fmcs-live-form button:disabled{cursor:default;opacity:.6}

.fmcs-gestion summary{cursor:pointer;padding:10px 0}.fmcs-gestion summary:focus-visible{outline:2px solid #2271b1;outline-offset:3px}

/* The saved summary replaces the editor after server confirmation, including on reload. */
.fmcs-live-form .fmcs-live-fields{grid-column:1/-1;display:grid;grid-template-columns:inherit;gap:inherit}
.fmcs-live-fields>legend{font-weight:700;margin-bottom:16px}.fmcs-live-fields>label{font-weight:600;align-self:center}.fmcs-live-fields>input{width:100%;padding:10px;border-radius:5px}
.fmcs-live-form .fmcs-live-summary,.fmcs-live-form .fmcs-live-actions{grid-column:1/-1;min-width:0}
.fmcs-live-summary{padding:16px;border:1px solid #ccd0d4;border-radius:6px;background:#f7fafc}
.fmcs-live-summary h3{margin-top:0}.fmcs-live-summary-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px 18px}
.fmcs-live-summary-list dt{font-weight:600}.fmcs-live-summary-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.fmcs-live-form .fmcs-live-fields[hidden],.fmcs-live-form .fmcs-live-summary[hidden]{display:none!important}
@media(max-width:650px){.fmcs-live-summary-list{grid-template-columns:1fr;gap:4px}.fmcs-live-summary-list dd{margin-bottom:12px}}

/* Match the blue of the terms button on the registration form. */
.fmcs-registration-form .fmcs-live-finalize[hidden] {
  display: none !important;
}
.fmcs-gestion .fmcs-registration-form button:is(.fmcs-test-button, .fmcs-live-finalize, .fmcs-terms-validate) {
  background: #135e96 !important;
  border-color: #135e96 !important;
  color: #fff !important;
}
.fmcs-gestion .fmcs-registration-form button:is(.fmcs-test-button, .fmcs-live-finalize, .fmcs-terms-validate):enabled:hover {
  background: #0d4b79 !important;
  border-color: #0d4b79 !important;
}
.fmcs-gestion .fmcs-registration-form button:is(.fmcs-test-button, .fmcs-live-finalize, .fmcs-terms-validate):disabled {
  background: #dbeaf5 !important;
  border-color: #b8d0e1 !important;
  color: #36546a !important;
  opacity: 1;
}
