/* Private CRO lot 1: scoped to the existing public wizard. */
#wizard .technical-cro {background:#fff;color:#17232c;}
#wizard .technical-cro .form-group {min-width:0;}
#wizard .technical-cro select,#wizard .technical-cro input:not([type=radio]) {min-height:44px;box-sizing:border-box;max-width:100%;font:inherit;}
#wizard .technical-optional {margin:20px 0;border:1px solid #b7c3cc;border-radius:8px;background:#fff;}
#wizard .technical-optional summary {min-height:48px;box-sizing:border-box;padding:12px 14px;cursor:pointer;font:inherit;font-weight:600;color:#0e3d52;}
#wizard .technical-optional summary:focus-visible {outline:3px solid #0e3d52;outline-offset:3px;}
#wizard .technical-optional-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;}
#wizard .technical-optional:not([open])>.technical-optional-fields {display:none;}
#wizard .technical-optional-fields .form-group {margin:0;}
#wizard #technical-reassurance {margin:12px 0;padding:12px 14px;color:#164331;border-left:3px solid #388861;background:#f4faf6;font:inherit;}
#wizard #technical-reassurance[hidden],#wizard .technical-conditional[hidden] {display:none!important;}
#wizard .technical-cro .radio-option {min-height:44px;box-sizing:border-box;}
#charte-public-root #wizard .wizard-step .btn-primary {background:#0e3d52!important;color:#fff!important;min-height:48px;}
#charte-public-root #wizard .wizard-step .btn-primary:disabled {opacity:.48;cursor:not-allowed;}
@media(max-width:600px){#wizard .technical-optional-fields{grid-template-columns:1fr;}#wizard .technical-optional summary{line-height:1.5;}}

/* The four client entry pages use the requested SOS top-bar treatment. */
#charte-public-root body :is(.unified-header,.lot1-header) {background:#55648f!important;color:#fff!important;}
#charte-public-root body :is(.unified-header,.lot1-header) :is(a,span,strong) {color:#fff!important;}
#charte-public-root body :is(.unified-header,.lot1-header) a:hover {background:transparent!important;text-decoration:underline;}
#charte-public-root body :is(.unified-header,.lot1-header) a:focus-visible {outline:2px solid #fff;outline-offset:3px;}

#wizard #tech-details-form {scroll-margin-top:96px;}

/* Optional label photo, one upload zone and an explicit non-blocking path. */
#wizard .photo-single-zone { grid-template-columns: minmax(0,1fr); max-width: 520px; margin-inline: auto; }
#wizard .photo-optional-badge { display:inline-block; vertical-align:middle; padding:4px 10px; border-radius:12px; background:#eef1f6; color:#46567d; font:inherit; font-size:13px; font-weight:600; line-height:1.4; }
#wizard .photo-skip-button { display:block; width:100%; min-height:48px; padding:12px 14px; margin:8px auto 20px; border:1px solid #d4dbe4; border-radius:8px; background:white; color:#0e3d52; font:inherit; cursor:pointer; }
#wizard .photo-skip-button:focus-visible { outline:3px solid #55648f; outline-offset:3px; }

#wizard [data-incident-panel][hidden] { display:none !important; }
#wizard .incident-description-optional { margin:16px 0; border:1px solid #d4dbe4; border-radius:8px; padding:0 14px; background:white; }
#wizard .incident-description-optional summary { min-height:48px; display:list-item; padding:12px 0; cursor:pointer; color:#0e3d52; }
#wizard .incident-description-optional summary:focus-visible { outline:3px solid #55648f; outline-offset:3px; }
#wizard [data-incident-panel] .wizard-question { scroll-margin-top:96px; }

#wizard .photo-nonblocking-note { font-size:13px; line-height:1.5; color:#526d72; margin:10px auto; max-width:520px; }

/* Stable step changes: no transform animation or competing native scroll anchor. */
#wizard .wizard-step, #wizard [data-incident-panel] { animation: none !important; }
#wizard, #wizard-feedback { overflow-anchor: none; }

/* Mobile: let short questions use their natural height. */
@media(max-width:600px){#charte-public-root #wizard.wizard-container{min-height:0;}}

/* Optional photo: native selection, drag/drop and readable selection status. */
#wizard .photo-label-help{max-width:520px;margin:16px auto;padding:14px;text-align:left;background:#eef0f8;border-radius:10px;color:#46567d;box-sizing:border-box}
#wizard .photo-label-help p{margin:6px 0 0;line-height:1.5;color:#253043}
#charte-public-root #wizard #dropzone-etiquette{border:2px dashed #55648f;border-radius:12px;background:#fff;padding:16px;box-sizing:border-box;cursor:pointer}
#charte-public-root #wizard #dropzone-etiquette:focus-visible,#wizard #dropzone-etiquette.photo-dragover{outline:3px solid #55648f;outline-offset:3px;background:#f3f5fc}
#charte-public-root #wizard #preview-etiquette{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:auto;min-height:170px;text-align:center;box-sizing:border-box}
#wizard .photo-camera{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#eef0f8;color:#55648f;font-size:24px}
#wizard .photo-format-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
#wizard .photo-format-badges>span{padding:3px 8px;border-radius:5px;background:#edf0f4;color:#536072;font-size:12px;font-weight:600}
#charte-public-root #wizard #preview-etiquette.has-image{flex-direction:row;min-height:110px;text-align:left;gap:14px}
#wizard .photo-preview-thumb{width:72px;height:72px;flex:none;background:#eef0f8;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#55648f}
#charte-public-root #wizard .photo-preview-thumb img{width:72px;height:72px;object-fit:cover;border-radius:8px}
#wizard .photo-preview-details{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
#wizard .photo-added-status{color:#247344}
#wizard .photo-file-name{font-size:13px;color:#536072}
#wizard .photo-change-link{color:#55648f;text-decoration:underline;font-size:14px}

/* Readable SOS controls in both languages. */
#charte-public-root #wizard .problem-card span{background:#fff;border:1px solid #cbd2df;border-radius:10px;color:#1a1a1a;font-weight:600;line-height:1.4}
#charte-public-root #wizard .problem-card i{color:#55648f}
#charte-public-root #wizard .problem-card input:checked+span{background:#eef0f8;border-color:#55648f}
#charte-public-root #wizard .problem-card input:focus-visible+span{outline:3px solid #55648f;outline-offset:2px}
#charte-public-root #wizard-back{color:#46567d!important;opacity:1!important;font-size:16px}
@media(max-width:600px){#charte-public-root #wizard .problem-card span{font-size:14px;padding:10px;min-height:64px;gap:8px}#charte-public-root #wizard .wizard-step .btn-primary{width:100%;border-radius:8px;font-size:17px;box-sizing:border-box}}

/* Final contact step: one title, essential fields and one reassurance line. */
#charte-public-root .diagnostic-section.wizard-contact-stage .section-title,
#charte-public-root .diagnostic-section.wizard-contact-stage .section-subtitle,
#charte-public-root .wizard-contact-stage .progress-steps,
#charte-public-root .wizard-contact-stage #progress-encourage{display:none!important}
#charte-public-root .wizard-contact-stage .wizard-result{background:transparent!important;border:0!important;padding:0!important;margin:16px 0!important}
#charte-public-root .wizard-contact-stage .result-title{color:#1a1a1a!important;font-size:clamp(20px,3.5vw,26px)!important;line-height:1.3;margin:0}
#charte-public-root .wizard-contact-stage #wizard-form{margin-top:20px}
#charte-public-root .wizard-contact-stage [data-contact-privacy]{font-size:13px;line-height:1.6;margin:12px 0 0;text-align:center}

/* Manu, 9 November: readable answers, one frame and consistent spacing. */
#charte-public-root .diagnostic-section{background:#fff!important;border:1px solid #cbd2df!important;border-radius:12px;padding-inline:24px!important;box-sizing:border-box}
#charte-public-root .lot1-form{background:#fff!important;border:1px solid #cbd2df!important;border-radius:12px;padding:24px!important;box-sizing:border-box}
#charte-public-root .lot1-form .diagnostic-section{border:0!important;padding-inline:0!important}
#charte-public-root .diagnostic-section>.container{width:100%;max-width:100%;padding:0!important;box-sizing:border-box}
#charte-public-root .diagnostic-section .section-title{font-size:26px!important;line-height:1.3!important;text-transform:none!important;text-align:left;margin:0 0 16px!important}
#charte-public-root .diagnostic-section .section-subtitle,#charte-public-root .diagnostic-section .progress-steps{display:none!important}
#charte-public-root .diagnostic-section .wizard-progress{margin:0 0 24px!important}
#charte-public-root .diagnostic-section .progress-header{font-size:14px;line-height:1.5;margin-bottom:8px}
#charte-public-root .diagnostic-section #wizard{padding:0!important;background:#fff!important;min-height:0;box-sizing:border-box}
#charte-public-root .diagnostic-section #wizard .wizard-question{font-size:22px!important;line-height:1.4!important;text-align:left;margin:0 0 20px!important}
#charte-public-root .diagnostic-section #wizard #support-options{gap:10px}
#charte-public-root .diagnostic-section #wizard #support-options .wizard-option{min-height:88px;padding:14px 12px;box-sizing:border-box}
#charte-public-root .diagnostic-section #wizard #support-options .wizard-option span{font-size:16px!important;line-height:1.45!important;color:#1a1a1a!important;overflow-wrap:normal}
#charte-public-root .diagnostic-section #wizard :is(.problem-card span,.radio-label,.label-block,.form-group>label){font-size:16px!important;line-height:1.5!important}
#charte-public-root .diagnostic-section #wizard .radio-option{display:flex;align-items:center;gap:10px;padding:12px;min-height:52px;box-sizing:border-box}
#charte-public-root .diagnostic-section #wizard .radio-option input{flex:none;margin:0}
#charte-public-root .diagnostic-section #wizard .radio-label{display:flex;align-items:center;gap:8px;min-width:0}
#charte-public-root .diagnostic-section #wizard .wizard-hint{font-size:16px!important;line-height:1.5!important;text-align:left}
#charte-public-root .diagnostic-section #wizard .wizard-help-box{display:block!important;padding:0!important;margin:16px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:left}
#charte-public-root .diagnostic-section #wizard .wizard-help-box>i,#charte-public-root .diagnostic-section #wizard .wizard-help-box strong{display:none!important}
#charte-public-root .diagnostic-section #wizard .wizard-help-box p{font-size:14px!important;line-height:1.5!important;margin:0!important;color:#46567d!important}
#charte-public-root .diagnostic-section #wizard .wizard-help-box a{white-space:nowrap}
#charte-public-root .diagnostic-section #wizard .wizard-step .btn-primary{min-height:52px;padding:14px 22px;border-radius:8px;font-size:17px;line-height:1.4;box-shadow:none!important}
#charte-public-root .diagnostic-section #wizard-back{margin:20px auto 0!important;padding:12px;min-height:48px;line-height:1.5;box-shadow:none!important}
#charte-public-root .diagnostic-section #wizard-form .form-group{margin-bottom:20px}
#charte-public-root .diagnostic-section #wizard-form input{font-size:16px!important;min-height:50px;box-sizing:border-box}
#charte-public-root .diagnostic-section #wizard .result-title{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;text-align:left}
#charte-public-root .diagnostic-section #wizard .wizard-success{padding:0;text-align:left}
@media(max-width:600px){
 #charte-public-root .diagnostic-section{padding-left:16px!important;padding-right:16px!important}
 #charte-public-root .lot1-form{padding:20px 16px!important}
 #charte-public-root .diagnostic-section .section-title{font-size:24px!important}
 #charte-public-root .diagnostic-section #wizard .wizard-question{font-size:20px!important;margin-bottom:16px!important}
 #charte-public-root .diagnostic-section #wizard #support-options .wizard-option{min-height:94px;padding:12px 8px}
 #charte-public-root .diagnostic-section #wizard .problem-card:has(input[value="data_loss"]),#charte-public-root .diagnostic-section #wizard .problem-card:has(input[value="burning_smell"]){grid-column:1/-1}
 #charte-public-root .diagnostic-section #wizard .problem-card span{font-size:16px!important;padding:12px;min-height:64px}
 #charte-public-root .diagnostic-section #wizard .wizard-step .btn-primary{width:100%}
 #charte-public-root .diagnostic-section #wizard-form .btn-primary i{display:none}
}
