/* Registration styles are isolated from the legacy embedded form. */
.registration-page, .registration-page * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.registration-page { background: #fafbf9; color: var(--ink); }
.registration-page .registration-back { font-size: 13px; color: var(--muted); }
.registration-page .registration-main { display: block; width: 100%; max-width: 960px; min-height: 0; padding: 48px 24px 0 !important; margin: auto; }
.registration-intro { text-align: center; margin-bottom: 30px; }
.registration-intro h1 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0; }
.registration-intro > p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.registration-steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; justify-content: center; gap: 32px; }
.registration-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.registration-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.registration-steps [aria-current="step"] { color: var(--ink); font-weight: 600; }
.registration-steps [aria-current="step"] > span { background: var(--ink); color: #fff; border-color: var(--ink); }
.registration-steps .is-complete > span { background: #e6f1eb; border-color: #b6d4c5; color: #2c6350; }
.registration-page .containerForm { display: block; width: 100%; }
.registration-page .formulario { width: 100%; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 40px #203f3b05; scroll-margin-top: 24px; }
.registration-form-heading { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.registration-form-heading h2 { font-size: clamp(21px, 3vw, 27px); line-height: 1.35; margin: 0 0 10px; letter-spacing: -.025em; font-weight: 600; }
.registration-form-heading h2:focus { outline: none; }
.registration-page .formulario .registration-form-heading p { display: block; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.registration-page .textoAceite { padding: 0; }
.registration-page .textoAceite ul { padding: 0 0 0 22px; margin: 0; }
.registration-page .textoAceite ul li { padding-left: 8px; margin-bottom: 18px; font-size: 14px; line-height: 1.85; color: #526761; }
.registration-page .textoAceite li::marker { color: #b77660; }
.registration-page .formulario p { gap: 20px; margin: 0 0 18px; }
.registration-page .formulario p > span { display: flex; min-width: 0; }
.registration-page .formulario .col1 { width: 100%; }
.registration-page .formulario .col2 { width: calc((100% - 20px) / 2); }
.registration-page .formulario .col3 { width: calc((100% - 40px) / 3); }
.registration-page .formulario p label { font-size: 13px; font-weight: 550; color: var(--ink); margin: 0 0 8px; line-height: 1.5; }
.registration-page .formulario p > span > input, .registration-page .formulario p > span > textarea, .registration-page .formulario select { width: 100%; border: 1px solid #d5dfd9; background: #fff; border-radius: 8px; min-height: 48px; padding: 12px 14px; color: var(--ink); font-size: 16px; box-shadow: none; }
.registration-page .formulario p > span > textarea { height: 120px; resize: vertical; }
.registration-page input::placeholder, .registration-page textarea::placeholder { color: #89958f; font-size: 14px; }
.registration-page .formulario input:focus, .registration-page .formulario textarea:focus, .registration-page select:focus { outline: 2px solid #218780; outline-offset: 2px; }
.registration-page .form-section-title { font-size: 17px; font-weight: 600; margin: 30px 0 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.registration-page .formSend > .form-section-title:first-child { margin-top: 0; padding-top: 0; border: 0; margin-bottom: 8px; }
.form-section-help { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.registration-page .formulario p.aceite { align-items: start; justify-content: start; gap: 12px; padding: 18px; margin-top: 28px; background: #f3f6f3; border-radius: 10px; }
.registration-page .aceite input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.registration-page .formulario .aceite label { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.8; text-align: left; color: var(--muted); }
.registration-page .formulario p.botao_acao { justify-content: flex-end; margin: 24px 0 0; }
.registration-page .formulario p button { display: inline-flex; gap: 20px; min-height: 48px; padding: 14px 24px; margin: 0; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 550; }
.registration-page .formulario p button:hover { background: #305b53; }
.registration-page button:focus-visible, .registration-page a:focus-visible { outline: 3px solid #218780; outline-offset: 3px; }
.registration-page .select2-container { height: auto; min-height: 48px; max-width: 100%; }
.registration-page .select2-container .select2-selection { min-height: 48px !important; height: auto !important; border: 1px solid #d5dfd9 !important; border-radius: 8px !important; padding: 8px 10px !important; background: #fff; font-size: 14px; }
.registration-page .select2-container .select2-selection__rendered { color: var(--ink); line-height: 30px; padding-left: 2px; }
.registration-page .select2-container .select2-selection__arrow { height: 46px !important; right: 7px; }
.registration-page .select2-container--focus .select2-selection, .registration-page .select2-container--open .select2-selection { outline: 2px solid #218780; outline-offset: 2px; }
.registration-page .select2-container .select2-selection__choice { height: auto; margin: 3px 5px 3px 0 !important; padding: 2px 8px; line-height: 24px; background: #edf3ef; border-color: #d5dfd9; }
.registration-page .select2-container .select2-search__field { margin-top: 0; padding-top: 0; font-size: 16px; }
.registration-page .select2-dropdown { border-color: #d5dfd9; font-size: 14px; }
.registration-page .select2-results__option--highlighted[aria-selected] { background: var(--ink); }
.registration-page .popup { width: max-content; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; padding: 20px 24px; font-size: 14px; font-weight: 400; line-height: 1.6; border-radius: 12px; box-shadow: 0 12px 40px #203f3b30; }
.registration-page .popup ul { margin: 12px 0 0; padding: 0 0 0 20px; }
.registration-page .popup.success { background: #245444; }
.registration-page .popup.error { background: #903e34; }
.registration-page .loader { background: #203f3bd9; font-size: 18px; animation: none; }
.registration-page .portal-footer { margin-top: 40px; }
.registration-page .portal-footer a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 670px) {
 .registration-page .registration-main { padding: 32px 16px 0 !important; }
 .registration-steps { gap: 16px; }
 .registration-steps li { font-size: 11px; gap: 7px; }
 .registration-page .formulario { padding: 22px 18px; border-radius: 14px; }
 .registration-page .formulario p { flex-direction: column; gap: 18px; }
 .registration-page .formulario .col2, .registration-page .formulario .col3 { width: 100%; }
 .registration-page .formulario p.aceite { flex-direction: row; }
 .registration-page .formulario p button { width: 100%; justify-content: center; }
 .registration-page .registration-back { font-size: 12px; }
}

/* Keep Select2 tags and the inline search on the same wrapping row. */
.registration-page .select2-container .select2-selection--multiple {
 display: flex; align-items: center; padding: 7px 10px !important;
}
.registration-page .select2-container .select2-selection--multiple .select2-selection__rendered {
 display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
 width: 100%; margin: 0; padding: 0; line-height: normal; list-style: none;
}
.registration-page .select2-container .select2-selection--multiple .select2-selection__choice {
 display: inline-flex; align-items: center; gap: 6px; float: none;
 min-width: 0; max-width: 100%; margin: 0 !important; padding: 3px 8px;
 height: auto; min-height: 30px; white-space: normal; overflow-wrap: anywhere;
 line-height: 22px; border-radius: 6px; font-size: 13px;
}
.registration-page .select2-container .select2-selection__choice__remove {
 display: inline-flex; align-items: center; justify-content: center;
 flex-shrink: 0; margin: 0; width: 18px; height: 22px; color: #61736f; font-size: 17px;
}
.registration-page .select2-container .select2-selection__choice__remove:hover { color: #203f3b; }
.registration-page .select2-container .select2-search--inline {
 display: flex; align-items: center; float: none; flex: 1 1 100px; min-width: 0; margin: 0;
}
.registration-page .select2-container .select2-search--inline .select2-search__field {
 display: block; width: 100% !important; min-width: 0; height: 30px;
 margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
 line-height: 30px; box-shadow: none; outline: none;
}
.registration-page .select2-container .select2-selection--single .select2-selection__rendered {
 padding-right: 24px; line-height: 30px;
}
