/* Public loan form. Keep the same source in the theme generator. */
.financing-page {
    --loan-ink: #032e42;
    --loan-accent: #bb0b0b;
    --loan-muted: #596b76;
    --loan-line: #e1e8ed;
    --loan-surface: #f5f7f9;
    --loan-white: #fff;
    background: radial-gradient(ellipse at 85% 5%, #bb0b0b08, transparent 38%), var(--loan-surface);
    color: var(--loan-ink);
}
.financing-page #rs-footer { display: none !important; }
.financing-page .full-width-header .rs-header .menu-area .expand-btn-inner .btn-quote .quote-button { border-radius: 10px; }
.financing-page .loan-page-section { margin: 0 !important; padding: 38px 0 64px !important; background: transparent; }
.financing-page .loan-modern-shell { width: 100%; max-width: 1040px; margin: 0 auto; }
.financing-page .loan-modern-shell *, .financing-page .form-group, .financing-page .input-group { min-width: 0; }
.financing-page #loanForm { max-width: 100%; overflow-anchor: none; }
.financing-page .loan-hero { margin-bottom: 26px; text-align: center; }
.financing-page .loan-hero-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 15px; border: 1px solid #bb0b0b12; border-radius: 14px; background: #fff; color: var(--loan-accent); font-size: 19px; box-shadow: 0 5px 18px #032e4209; }
.financing-page .loan-hero h1 { margin: 0 0 20px; color: var(--loan-ink); font-size: clamp(29px, 2.8vw, 39px); line-height: 1.25; font-weight: 650; letter-spacing: -.03em; }
.financing-page .loan-hero-notice { display: flex; align-items: flex-start; gap: 13px; max-width: 920px; margin: 0 auto; padding: 13px 18px; border: 1px solid #e6e9ed; border-radius: 12px; background: #ffffffbd; text-align: left; }
.financing-page .loan-hero-notice-title { flex: none; margin: 1px 0 0; color: var(--loan-accent); font-size: 12px; font-weight: 600; line-height: 1.8; }
.financing-page .loan-hero-notice-text { margin: 0; color: var(--loan-muted); font-size: 14px; line-height: 1.7; }

/* Progress remains visible without a second enclosing card. */
.financing-page .loan-progress { display: flex; gap: 0; max-width: 650px; margin: 0 auto 25px; }
.financing-page .loan-progress-item { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 7px; color: var(--loan-muted); font-size: 13px; font-weight: 500; line-height: 1.5; text-align: center; }
.financing-page .loan-progress-item::before { content: ''; position: absolute; top: 13px; left: 0; right: 0; height: 1px; background: #d9e1e7; }
.financing-page .loan-progress-item:first-child::before { left: 50%; }
.financing-page .loan-progress-item:last-child::before { right: 50%; }
.financing-page .loan-progress-number { position: relative; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d9e1e7; border-radius: 50%; background: var(--loan-surface); color: var(--loan-muted); font-size: 12px; font-weight: 500; box-shadow: 0 0 0 6px var(--loan-surface); }
.financing-page .loan-progress-item.active { color: var(--loan-ink); }
.financing-page .loan-progress-item.active .loan-progress-number { border-color: var(--loan-accent); background: var(--loan-accent); color: var(--loan-white); }
.financing-page .loan-progress-item.done .loan-progress-number { border-color: var(--loan-ink); background: var(--loan-ink); color: var(--loan-white); font-size: 0; }
.financing-page .loan-progress-item.done .loan-progress-number::after { content: '✓'; font-size: 12px; }
.financing-page .loan-progress-item.done::before { background: var(--loan-ink); }

.financing-page .loan-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.financing-page .loan-card { width: 100%; max-width: 100%; padding: 30px; border: 1px solid #e3e8ed; border-radius: 22px; background: var(--loan-white); box-shadow: 0 16px 50px #032e420b, 0 2px 5px #032e4203; }
.financing-page .loan-step-panel { display: none; }
.financing-page .loan-step-panel.active { display: block; animation: loan-panel-in .28s ease-out; }
.financing-page .loan-step-panel:focus { outline: none; }
.financing-page .loan-step-panel:not([data-loan-step="1"]) { max-width: 840px; margin: 0 auto; }
.financing-page .loan-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--loan-line); }
.financing-page .loan-step-number { display: inline-grid; flex: none; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--loan-surface); color: var(--loan-muted); font-size: 12px; font-weight: 500; }
.financing-page .loan-step-kicker { color: var(--loan-ink); font-size: 19px; font-weight: 600; line-height: 1.5; }
.financing-page .loan-financing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 32px; }
.financing-page .loan-selection .form-group:last-child { margin-bottom: 0; }
.financing-page .form-group { margin-bottom: 23px; }
.financing-page .loan-modern-shell .form-label,
.financing-page .loan-field-label { display: block; margin: 0 0 10px; color: var(--loan-ink); font-size: 15px; font-weight: 500; line-height: 1.65; }
.financing-page .amount-grid, .financing-page .duration-grid { display: grid; gap: 9px; }
.financing-page .amount-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.financing-page .duration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.financing-page .amount-btn, .financing-page .duration-btn { width: 100%; min-height: 45px; padding: 9px 5px; border: 1px solid #d9e2e7; border-radius: 9px; background: var(--loan-white); color: var(--loan-ink); font: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .18s; }
.financing-page .amount-btn:hover, .financing-page .duration-btn:hover { border-color: var(--loan-accent); background: #fff8f8; box-shadow: 0 5px 12px #032e4209; transform: translateY(-2px); }
.financing-page .amount-btn.active, .financing-page .duration-btn.active { border-color: var(--loan-accent); background: var(--loan-accent); color: var(--loan-white); box-shadow: 0 5px 14px #bb0b0b26; }
.financing-page .loan-live-box { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--loan-ink); border-radius: 17px; background: linear-gradient(145deg, var(--loan-ink), #12485a); color: #fff; box-shadow: 0 12px 25px #032e421c; }
.financing-page .loan-live-box::before { content: ''; position: absolute; top: -85px; right: -65px; width: 180px; height: 180px; border: 28px solid #ffffff05; border-radius: 50%; pointer-events: none; }
.financing-page .loan-live-box > * { position: relative; }
.financing-page .loan-live-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 27px; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.6; }
.financing-page .loan-live-title > i { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff1f; border-radius: 10px; background: #ffffff0a; font-size: 14px; }
.financing-page .loan-live-grid { display: grid; gap: 23px; }
.financing-page .loan-live-item + .loan-live-item { padding-top: 19px; border-top: 1px solid #ffffff24; }
.financing-page .loan-live-label { display: block; margin-bottom: 9px; color: #d1dee4; font-size: 14px; line-height: 1.6; }
.financing-page .loan-live-value { color: #fff; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; transition: transform .18s ease-out; transform-origin: left center; }
.financing-page #liveMensualite { font-size: 40px; letter-spacing: -.035em; }
.financing-page .loan-live-note { margin: 23px 0 0; padding-top: 19px; border-top: 1px solid #ffffff24; color: #e1eaee; font-size: 14px; line-height: 1.75; }
.financing-page .loan-rate-note { margin: 11px 0 0; color: #bfced6; font-size: 12px; line-height: 1.7; }
.financing-page .loan-financing-warning { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--loan-line); color: var(--loan-muted); font-size: 13px; line-height: 1.8; }
.financing-page .loan-financing-warning p { margin: 0; }
.financing-page .loan-financing-warning p + p { margin-top: 10px; }
.financing-page .loan-cost-notice { color: var(--loan-ink); }
.financing-page .loan-step-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.financing-page .loan-step-actions .readon.submit, .financing-page .loan-step-actions .loan-back-btn,
.financing-page .loan-submit-box .readon.submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 160px; padding: 12px 24px !important; border: 1px solid var(--loan-line); border-radius: 10px !important; font: inherit; font-size: 15px !important; font-weight: 600; line-height: 1.5; cursor: pointer; gap: 15px; box-shadow: none; transition: transform .18s, box-shadow .18s; }
.financing-page .loan-modern-shell .readon.submit { border-color: var(--loan-accent) !important; background: var(--loan-accent) !important; color: var(--loan-white) !important; box-shadow: 0 6px 16px #bb0b0b20; }
.financing-page .loan-modern-shell .readon.submit:hover { filter: brightness(.96); transform: translateY(-2px); box-shadow: 0 9px 20px #bb0b0b2c; }
.financing-page .loan-back-btn { background: var(--loan-white); color: var(--loan-ink); }
.financing-page .loan-back-btn:hover { background: var(--loan-surface); }

/* The existing identity and document fields keep their original behavior. */
.financing-page .loan-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.financing-page .loan-field-grid .full { grid-column: 1 / -1; }
.financing-page .loan-modern-shell .form-control { width: 100%; max-width: 100%; height: auto; min-height: 50px; padding: 12px 14px; border: 1px solid #d9e2e7; border-radius: 9px; background: #fcfdfe; color: var(--loan-ink); font-size: 16px; line-height: 1.5; transition: border-color .18s, box-shadow .18s; }
.financing-page .loan-modern-shell .form-control::placeholder { color: #82929c; opacity: 1; }
.financing-page .loan-modern-shell .form-control:focus { border-color: var(--loan-accent); background: var(--loan-white); box-shadow: 0 0 0 3px #bb0b0b12; }
.financing-page .loan-modern-shell select.form-control { padding-right: 28px; cursor: pointer; }
.financing-page .loan-modern-shell .form-control.is-invalid { border-color: var(--loan-accent); }
.financing-page .loan-modern-shell .invalid-feedback { margin-top: 7px; color: var(--loan-accent); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.financing-page .loan-modern-shell .alert-danger { margin-bottom: 0; padding: 10px 13px; border: 0; border-left: 2px solid var(--loan-accent); border-radius: 0 6px 6px 0; background: #fff8f8; color: var(--loan-accent); font-size: 13px; line-height: 1.6; }
.financing-page .loan-modern-shell .form-comment { margin-top: 8px !important; color: var(--loan-muted); font-size: 13px; line-height: 1.65; }
.financing-page .loan-modern-shell .form-comment i { margin-right: 4px; color: var(--loan-muted) !important; }
.financing-page .loan-divider { margin: 3px 0 25px; border-top: 1px solid var(--loan-line); }
.financing-page .loan-phone-input { display: grid; grid-template-columns: 112px minmax(0, 1fr); width: 100%; }
.financing-page .loan-phone-input .input-group-prepend { width: 100%; }
.financing-page .loan-phone-code-select { width: 100%; height: 50px; padding: 0 8px; border: 1px solid #d9e2e7; border-right: 0; border-radius: 9px 0 0 9px; background: var(--loan-surface); color: var(--loan-ink); font-size: 15px; font-weight: 500; text-align: center; }
.financing-page .loan-phone-input .form-control { width: 100%; border-radius: 0 9px 9px 0 !important; }
.financing-page .loan-modern-shell .input-group:not(.loan-phone-input) { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 100%; }
.financing-page .loan-modern-shell .input-group:not(.loan-phone-input) > .form-control { width: 100%; border-radius: 9px 0 0 9px; }
.financing-page .loan-modern-shell .input-group-text { display: flex; justify-content: center; height: 50px; min-width: 50px; border: 1px solid #d9e2e7; border-left: 0; border-radius: 0 9px 9px 0; background: var(--loan-surface); color: var(--loan-ink); font-size: 15px; }
.financing-page .loan-choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.financing-page .loan-choice { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid #d9e2e7; border-radius: 9px; background: var(--loan-white); color: var(--loan-ink); font-size: 14px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.financing-page .loan-choice:has(input:checked) { border-color: var(--loan-accent); background: #fff8f8; }
.financing-page .loan-choice input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--loan-accent); }
.financing-page .loan-identity-panel .loan-step-head { align-items: flex-start; gap: 14px; }
.financing-page .loan-identity-icon { display: grid; flex: none; place-items: center; width: 43px; height: 43px; border: 1px solid #032e4210; border-radius: 12px; background: #f0f5f7; color: var(--loan-ink); font-size: 19px; }
.financing-page .loan-identity-panel .loan-step-kicker { font-size: 22px; }
.financing-page .loan-identity-intro { margin: 5px 0 0; color: var(--loan-muted); font-size: 14px; line-height: 1.7; }
.financing-page .loan-identity-panel .form-group { margin-bottom: 21px; }
.financing-page .loan-identity-panel .loan-identity-location { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.financing-page .loan-identity-panel .loan-identity-choice { margin: 3px 0 0; }
.financing-page .loan-identity-panel .form-control { min-height: 52px; border-radius: 10px; }
.financing-page .loan-identity-panel .loan-phone-code-select { height: 52px; }
.financing-page .loan-identity-panel .loan-step-actions { padding-top: 23px; border-top: 1px solid var(--loan-line); }
.financing-page .loan-section-heading { margin: 6px 0 22px; padding-top: 23px; border-top: 1px solid var(--loan-line); }
.financing-page .loan-section-heading h4 { margin: 0 0 8px; color: var(--loan-ink); font-size: 19px; font-weight: 600; line-height: 1.5; }
.financing-page .loan-section-heading p { margin: 0; color: var(--loan-muted); font-size: 14px; line-height: 1.7; }
.financing-page .loan-modern-shell input[type="file"].form-control { padding: 5px 6px; overflow: hidden; color: var(--loan-muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.financing-page .loan-modern-shell input[type="file"]::file-selector-button { height: 38px; max-width: 55%; margin-right: 10px; padding: 0 12px; overflow: hidden; border: 0; border-radius: 6px; background: #edf1f4; color: var(--loan-ink); font: inherit; font-weight: 500; text-overflow: ellipsis; cursor: pointer; }
.financing-page .loan-submit-box { margin-top: 27px; }
.financing-page .loan-submit-box .readon.submit { width: 100%; }
.financing-page .loan-submit-note { margin: 12px 0 0; color: var(--loan-muted); font-size: 13px; font-weight: 400; line-height: 1.7; text-align: center; }
.financing-page .loan-dossier-panel .loan-step-head { gap: 14px; }
.financing-page .loan-dossier-panel .loan-step-kicker { font-size: 22px; }
.financing-page .loan-document-area { margin: 2px 0 26px; padding: 18px; border: 1px solid var(--loan-line); border-radius: 12px; background: #f7f9fb; }
.financing-page .loan-document-area > .form-group:last-child,
.financing-page .loan-document-area .loan-field-grid .form-group,
.financing-page .loan-document-area #passportField .form-group { margin-bottom: 0; }
.financing-page .loan-document-area input[type="file"].form-control { min-height: 58px; padding: 7px; border-style: dashed; background: var(--loan-white); font-size: 14px; }
.financing-page .loan-document-area input[type="file"]::file-selector-button { height: 42px; margin-right: 10px; background: #eaf0f4; font-weight: 400; }
.financing-page .loan-dossier-panel .loan-section-heading { margin: 0 0 22px; padding: 0; border: 0; }
.financing-page .loan-dossier-panel .loan-section-heading h4 { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; font-weight: 500; }
.financing-page .loan-dossier-panel .loan-section-heading h4 i { margin-top: 5px; color: var(--loan-muted); font-size: 15px; }
.financing-page .loan-dossier-panel .loan-section-heading p { font-size: 13px; }
.financing-page .loan-dossier-panel #ibanField { letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.financing-page .loan-dossier-panel .loan-submit-box { margin-top: 4px; padding-top: 23px; border-top: 1px solid var(--loan-line); }
.financing-page .loan-dossier-panel .loan-submit-box .readon.submit { width: auto; min-width: 220px; }
.financing-page .loan-dossier-panel .loan-submit-note { margin-top: 17px; }
.financing-page .loan-modern-shell button:focus-visible,
.financing-page .loan-modern-shell select:focus-visible,
.financing-page .loan-modern-shell input:focus-visible { outline: 2px solid var(--loan-ink); outline-offset: 3px; }

@media (max-width: 1199px) {
    .financing-page .loan-financing-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
    .financing-page .amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .financing-page .loan-financing-layout { grid-template-columns: minmax(0, 1fr); }
    .financing-page .amount-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .financing-page .loan-live-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .financing-page .loan-live-item + .loan-live-item { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid #ffffff24; }
    .financing-page .loan-live-box { padding: 22px; }
}
@media (max-width: 767px) {
    .financing-page .rs-breadcrumbs { display: none; }
    .financing-page .loan-page-section { padding: 24px 0 calc(40px + env(safe-area-inset-bottom)) !important; }
    .financing-page .loan-page-section > .container { width: 100%; max-width: 600px; padding: 0 15px; }
    .financing-page .loan-hero { margin-bottom: 22px; }
    .financing-page .loan-hero h1 { margin-bottom: 18px; font-size: 29px; }
    .financing-page .loan-hero-icon { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 12px; font-size: 16px; }
    .financing-page .loan-hero-notice { display: block; padding: 11px 14px; }
    .financing-page .loan-hero-notice-title { margin-bottom: 4px; }
    .financing-page .loan-hero-notice-text { font-size: 13px; line-height: 1.7; }
    .financing-page .loan-progress { margin-bottom: 22px; }
    .financing-page .loan-progress-item { font-size: 12px; }
    .financing-page .loan-card { padding: 20px 17px; border-radius: 15px; }
    .financing-page .loan-step-head { margin-bottom: 21px; padding-bottom: 16px; }
    .financing-page .loan-step-kicker { font-size: 18px; }
    .financing-page .loan-financing-layout { gap: 24px; }
    .financing-page .amount-grid, .financing-page .duration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .financing-page .amount-btn, .financing-page .duration-btn { min-height: 46px; padding: 9px 3px; font-size: 12px; }
    .financing-page .loan-modern-shell .form-label, .financing-page .loan-field-label { font-size: 14px; }
    .financing-page .loan-live-box { padding: 20px 17px; }
    .financing-page .loan-live-title { margin-bottom: 17px; }
    .financing-page .loan-live-grid { gap: 14px; }
    .financing-page .loan-live-item + .loan-live-item { padding-left: 14px; }
    .financing-page .loan-live-label { font-size: 13px; }
    .financing-page .loan-live-value { font-size: 20px; }
    .financing-page #liveMensualite { font-size: 28px; }
    .financing-page .loan-financing-warning { margin-top: 22px; padding-top: 19px; }
    .financing-page .loan-step-actions { gap: 12px; margin-top: 22px; }
    .financing-page .loan-step-actions > span:empty { display: none; }
    .financing-page .loan-step-actions .readon.submit { flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px !important; }
    .financing-page .loan-step-actions .loan-back-btn { min-width: 0; padding: 12px 14px !important; }
    .financing-page .loan-field-grid { grid-template-columns: minmax(0, 1fr); }
    .financing-page .loan-field-grid .full { grid-column: auto; }
    .financing-page .loan-phone-input { grid-template-columns: 104px minmax(0, 1fr); }
    .financing-page .loan-modern-shell input:not([type=file]), .financing-page .loan-modern-shell select { font-size: 16px; }
    .financing-page .loan-choice-group { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .financing-page .loan-choice { min-height: 48px; }
    .financing-page .loan-identity-panel .loan-identity-names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
    .financing-page .loan-identity-panel .loan-identity-location { grid-template-columns: minmax(0, 1fr); }
    .financing-page .loan-identity-panel .loan-choice-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .financing-page .loan-identity-panel .loan-choice { padding: 10px; font-size: 13px; }
    .financing-page .loan-identity-panel .loan-step-head { gap: 12px; }
    .financing-page .loan-identity-panel .loan-step-kicker { font-size: 21px; }
    .financing-page .loan-identity-intro { font-size: 13px; }
    .financing-page .loan-document-area { padding: 14px; border-radius: 10px; }
    .financing-page .loan-document-area .loan-field-grid { gap: 18px; }
    .financing-page .loan-dossier-panel .loan-submit-box { gap: 10px; }
    .financing-page .loan-dossier-panel .loan-submit-box .readon.submit { min-width: 0; padding: 12px !important; font-size: 14px !important; }
    .financing-page .loan-dossier-panel .loan-submit-box .loan-back-btn { padding: 12px 0 !important; border-color: transparent; background: transparent; font-size: 14px !important; }
    .financing-page .loan-dossier-panel .loan-submit-box button i { display: none; }
    .financing-page .loan-dossier-panel .loan-section-heading h4 { font-size: 16px; }
}
@media (max-width: 379px) {
    .financing-page .loan-identity-panel .loan-choice-group { grid-template-columns: minmax(0, 1fr); }
    .financing-page .loan-document-area input[type="file"]::file-selector-button { max-width: 70%; padding: 0 9px; font-size: 12px; }
}
@media (max-width: 359px) {
    .financing-page .loan-card { padding: 18px 13px; }
    .financing-page .loan-live-grid { grid-template-columns: minmax(0, 1fr); }
    .financing-page .loan-live-item + .loan-live-item { padding: 15px 0 0; border-top: 1px solid #ffffff24; border-left: 0; }
    .financing-page .loan-step-actions .loan-back-btn { padding: 12px 10px !important; }
}
@keyframes loan-panel-in { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .financing-page .loan-modern-shell *, .financing-page .loan-modern-shell *::before { transition: none !important; animation: none !important; }
}
