/* Cadastro público compacto, alinhado à identidade do painel. */
#register-modal .register-content{width:min(820px,calc(100vw - 32px));padding:28px;box-sizing:border-box;border:1px solid #dce6f5;border-radius:20px;scrollbar-gutter:auto}
#register-modal .register-content:has(#register-profile-view:not(.hidden)) {width:min(620px,calc(100vw - 32px))}
#register-modal .register-header{text-align:left;margin:0 0 22px;padding:0 44px 0 0}
#register-modal .register-header h2{font-size:24px;line-height:1.25;margin:6px 0;color:#152c4e;letter-spacing:-.4px}
#register-modal .register-header p{font-size:13px;line-height:1.5;color:#6a7d96;margin:0}
#register-modal .register-eyebrow{font-size:10px;font-weight:750;letter-spacing:.07em;color:#1657ff}
#register-modal .close-register{width:36px;height:36px;top:22px;right:22px;border:1px solid #dce6f5;border-radius:10px;background:#f7faff;color:#476284;font-size:18px}
#register-modal .close-register:hover{transform:none;background:#edf3ff;color:#1657ff}
#register-modal .register-options{gap:10px}
#register-modal .register-card{min-height:88px;padding:15px;gap:14px;border:1px solid #dce6f5;border-radius:12px;background:#fff;box-shadow:0 3px 12px #17365f05;transition:background .15s,border-color .15s;font-family:inherit}
#register-modal .register-card:hover{transform:none;background:#f7faff;border-color:#91b4ff;box-shadow:0 3px 12px #1657ff0a}
#register-modal .register-icon{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#edf3ff;color:#245bd8}
#register-modal .register-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#register-modal .register-info{min-width:0;flex:1}
#register-modal .register-info strong{font-size:15px;font-weight:700;line-height:1.35;color:#173354;display:block;margin-bottom:4px}
#register-modal .register-info small{font-size:12px;line-height:1.5;color:#677b96;display:block}
#register-modal .register-arrow{font-size:24px;color:#8596ad;flex:none;margin:0}
#register-modal .register-review-note{font-size:11px;line-height:1.5;color:#71829a;margin:16px 0 0}
#register-modal .register-form label{font-size:12px}
#register-modal .register-form input,#register-modal .register-form select{font-family:inherit;font-size:13px;min-height:40px;border-radius:9px}
#register-modal .register-back{font-family:inherit;font-size:12px;padding:8px 12px;border:1px solid #dce6f5;border-radius:9px;background:#f7faff;color:#245bd8;margin-bottom:16px}
#register-modal button:focus-visible,#register-modal input:focus-visible,#register-modal select:focus-visible{outline:2px solid #1657ff;outline-offset:3px}
@media(max-width:550px){#register-modal .register-content{padding:22px 18px;width:calc(100vw - 24px);border-radius:16px}#register-modal .register-header h2{font-size:22px}#register-modal .close-register{top:17px;right:16px}#register-modal .register-card{padding:12px;gap:10px}#register-modal .register-info strong{font-size:14px}#register-modal .register-info small{font-size:12px}#register-modal .register-form input,#register-modal .register-form select{font-size:16px}}
@media(max-width:550px){#register-modal .register-card{flex-direction:row;align-items:center}#register-modal .register-info{width:auto;text-align:left}#register-modal .register-icon{margin:0}#register-modal .register-arrow{display:block}}
#register-modal .register-icon{min-width:42px;max-width:42px;min-height:42px;max-height:42px}
/* Formulários de todos os perfis públicos. */
#register-modal .register-content:has(.register-form-view.active){width:min(840px,calc(100vw - 32px));padding:26px 28px}
#register-modal .register-form-view .register-header{margin:6px 0 20px;padding-right:0}
#register-modal .register-form-view .register-header h2{font-size:22px;line-height:1.3}
#register-modal .register-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:18px;border:1px solid #e0e8f5;border-radius:14px;background:#fbfcff}
#register-modal .register-field{min-width:0;gap:6px;font-size:12px;font-weight:650;color:#405978}
#register-modal .register-form input:not([type=checkbox]):not([type=hidden]),#register-modal .register-form select,#register-modal .register-form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:42px;height:42px;padding:0 12px;border:1px solid #d6e2f3;border-radius:9px;background:#fff;font-family:inherit;font-size:13px;font-weight:500;color:#173354;box-shadow:none}
#register-modal .register-form textarea{height:auto;min-height:80px;padding:10px 12px}
#register-modal .register-form select{background-position:calc(100% - 17px) 18px,calc(100% - 11px) 18px;padding-right:30px}
#register-modal .register-form input:focus,#register-modal .register-form select:focus,#register-modal .register-form textarea:focus{border-color:#78a4ff;box-shadow:0 0 0 3px #1657ff0d}
#register-modal .register-form small{font-size:11px;font-weight:400;color:#73839a;line-height:1.45}
#register-modal .register-action-row{display:flex;align-items:stretch;gap:8px;min-width:0}
#register-modal .register-action-row input{flex:1;width:0!important}
#register-modal .register-action-button{min-height:42px;padding:0 12px;border:1px solid #cbdcff;border-radius:9px;background:#eef4ff;color:#245bd8;font:650 12px/1.3 Inter,system-ui,sans-serif;white-space:nowrap;flex:none;box-shadow:none}
#register-modal .register-password-field{position:relative;min-width:0}
#register-modal .register-password-field input{padding-right:44px!important}
#register-modal .register-password-toggle{height:34px;width:34px;min-height:0;border-radius:7px;top:4px;right:4px;color:#637d9d}
#register-modal .register-section-title{grid-column:1/-1;padding:0 0 10px;margin:6px 0 0;border:0;border-bottom:1px solid #e0e8f5;background:transparent}
#register-modal .register-section-title span{font-size:12px;font-weight:700;color:#245bd8;letter-spacing:0;text-transform:none}
#register-modal .register-section-title p{margin:4px 0 0;font-size:11px;font-weight:400;line-height:1.5;color:#73839a}
#register-modal .register-full{grid-column:1/-1}
#register-modal .carrier-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#register-modal .carrier-service-grid label{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:42px;padding:10px;border:1px solid #dce6f5;border-radius:9px;background:#fff;font-size:12px;font-weight:500}
#register-modal .register-form input[type=checkbox]{width:16px;height:16px;min-height:0;flex:none;accent-color:#1657ff}
#register-modal .driver-choice-chip{font-family:inherit;font-size:12px;min-height:40px;border-radius:9px;padding:8px 12px}
#register-modal .driver-category-group>strong{font-size:12px}
#register-modal .driver-operation-card{padding:12px;border-radius:10px;gap:6px}
#register-modal .driver-operation-card strong{font-size:12px}
#register-modal .driver-operation-card small{font-size:11px}
#register-modal .driver-location-consent{flex-direction:row;align-items:flex-start;gap:10px;padding:12px;background:#f0f5ff;border-radius:10px;font-size:11px;font-weight:400;line-height:1.5}
#register-modal .register-submit{display:block;width:100%;min-height:44px;padding:12px 18px;margin-top:18px;border:1px solid #1657ff;border-radius:10px;background:#1657ff;color:#fff;font-family:inherit;font-size:13px;font-weight:700;box-shadow:0 4px 12px #1657ff20}
#register-modal .register-turnstile{max-width:100%;margin-top:16px}
@media(max-width:600px){#register-modal .register-content:has(.register-form-view.active){width:calc(100vw - 20px);padding:20px 14px}#register-modal .register-form-view .register-header h2{font-size:19px}#register-modal .register-form-grid{grid-template-columns:minmax(0,1fr);gap:14px;padding:12px}#register-modal .register-form input:not([type=checkbox]):not([type=hidden]),#register-modal .register-form select,#register-modal .register-form textarea{font-size:16px;min-height:44px;height:44px}#register-modal .register-form textarea{height:auto;min-height:80px}#register-modal .register-action-row{flex-wrap:wrap}#register-modal .register-action-row input{width:100%!important;flex-basis:100%}#register-modal .register-action-button{width:100%;min-height:40px}#register-modal .carrier-service-grid,#register-modal .driver-operation-grid{grid-template-columns:minmax(0,1fr)}#register-modal .register-password-toggle{top:5px}#register-modal .register-turnstile{overflow-x:auto}}
@media(min-width:601px){#register-modal .register-action-button{width:auto}#register-modal .register-action-row{flex-direction:row}#register-modal .register-action-row input{flex:1 1 0;min-width:0}}
#register-modal .client-register-layout .register-header{display:flex;align-items:center;gap:14px}
#register-modal .client-register-layout .register-form-grid{display:block;padding:0;border:0;background:transparent}
#register-modal .client-register-section{border:1px solid #dce7f9;border-radius:12px;overflow:hidden;margin-bottom:14px;background:#fff}
#register-modal .client-register-section>header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #e7eef9;background:linear-gradient(110deg,#f4f8ff,#f9fbff)}
#register-modal .client-section-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:#e9f1ff;color:#1657ff}
#register-modal .client-section-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#register-modal .client-register-section h3{margin:0;color:#173354;font-size:14px;font-weight:700;line-height:1.3}
#register-modal .client-register-section header p{margin:4px 0 0;font-size:12px;line-height:1.45;color:#687c97}
#register-modal .client-section-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}
#register-modal .client-section-fields label:has([name=empresa]){grid-column:1/-1}
#register-modal .client-register-layout .register-field:has(input[required])>span:first-child::after{content:' *';color:#c44657}
#register-modal .client-register-layout .register-turnstile{display:flex;justify-content:center}
@media(max-width:600px){#register-modal .client-section-fields{grid-template-columns:minmax(0,1fr);padding:12px;gap:14px}#register-modal .client-register-section>header{padding:12px;gap:10px}#register-modal .client-register-section header p{font-size:11px}#register-modal .client-register-section h3{font-size:13px}}
/* Lookup controls keep a usable input width at every viewport. */
#register-modal .register-action-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;width:100%;min-width:0}
#register-modal .register-action-row input{width:100%!important;min-width:0;flex:none}
#register-modal .register-action-button{max-width:100%;width:auto;min-width:0;min-height:44px;white-space:normal;line-height:1.4}
#register-modal .register-action-button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;margin:auto}
#register-modal .register-action-button[aria-busy=true] svg{animation:register-lookup-spin 1s linear infinite}
@keyframes register-lookup-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){#register-modal .register-action-row{grid-template-columns:minmax(0,1fr);gap:8px}#register-modal .register-action-row input{width:100%!important;min-height:46px;height:46px}#register-modal .register-action-button{width:100%;height:42px;min-height:42px;padding:10px 14px}}
@media(prefers-reduced-motion:reduce){#register-modal .register-action-button[aria-busy=true] svg{animation:none}}
#register-modal .client-section-fields label:has([name=email]),#register-modal .client-section-fields label:has([name=documento]){grid-column:1/-1}
/* Cabeçalho de cadastro com hierarquia e identidade visual. */
#register-modal .register-form-view .register-header{display:flex;align-items:center;gap:16px;padding:20px!important;margin:8px 0 20px;border:1px solid #dae6fb;border-radius:14px;background:linear-gradient(120deg,#f0f5ff,#fafcff);position:relative;overflow:hidden}
#register-modal .client-register-hero-icon{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:14px;background:#1657ff;color:#fff;box-shadow:0 6px 16px #1657ff20}
#register-modal .client-register-hero-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#register-modal .client-register-hero-copy{min-width:0;display:grid;gap:5px}
#register-modal .client-register-hero-kicker{font-size:9px;font-weight:750;letter-spacing:.09em;color:#245bd8;line-height:1.3}
#register-modal .register-form-view .register-header h2{margin:0;font-size:21px;line-height:1.3;letter-spacing:-.3px}
#register-modal .register-form-view .register-header p{margin:0;font-size:12px;line-height:1.5;color:#637a98}
#register-modal .register-back{margin-bottom:12px;background:#fff;border-color:#dce6f5;font-size:11px;min-height:36px;padding:8px 12px}
@media(max-width:600px){#register-modal .register-form-view .register-header{padding:15px!important;gap:12px;margin:8px 0 16px}#register-modal .client-register-hero-icon{width:42px;height:42px;border-radius:11px}#register-modal .client-register-hero-icon svg{width:25px;height:25px}#register-modal .register-form-view .register-header h2{font-size:18px}#register-modal .register-form-view .register-header p{font-size:11px}}
#register-modal .client-section-fields .register-full{grid-column:1/-1}
#register-modal .client-section-fields .carrier-service-grid,#register-modal .client-section-fields .driver-category-grid,#register-modal .client-section-fields .driver-operation-grid{min-width:0;max-width:100%}
#register-modal .client-section-fields .driver-operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){#register-modal .client-section-fields .driver-operation-grid{grid-template-columns:minmax(0,1fr)}}
.register-success-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:0;border:1px solid #dce6f5;border-radius:20px;background:#fff;color:#173354;font-family:Inter,system-ui,sans-serif;box-shadow:0 24px 80px #071d4540}
.register-success-dialog::backdrop{background:#0b1e4270;backdrop-filter:blur(6px)}
.register-success-body{padding:28px;text-align:center}
.register-success-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;border-radius:18px;background:#e5f7ef;color:#078658}
.register-success-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.register-success-kicker{display:block;font-size:10px;font-weight:750;letter-spacing:.08em;color:#245bd8}
.register-success-dialog h2{margin:8px 0 12px;font-size:23px;line-height:1.3;letter-spacing:-.4px;color:#173354}
.register-success-dialog p{margin:0;color:#667b96;font-size:13px;line-height:1.65}
.register-success-deadline{display:grid;gap:5px;margin:20px 0;padding:14px;border:1px solid #dce7fa;border-radius:12px;background:#f3f7ff}
.register-success-deadline span{font-size:11px;color:#637a98}
.register-success-deadline strong{font-size:23px;color:#1657ff;font-weight:750}
.register-success-dialog .register-success-email{color:#415c7d}
.register-success-body>small{display:block;margin-top:10px;font-size:11px;line-height:1.5;color:#7a8ba1}
.register-success-dialog footer{padding:16px 24px;border-top:1px solid #e3ebf7;background:#f8faff}
.register-success-dialog button{width:100%;min-height:44px;padding:11px 16px;border:1px solid #1657ff;border-radius:10px;background:#1657ff;color:#fff;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer}
.register-success-dialog button:hover{background:#1248dc}
.register-success-dialog button:focus-visible{outline:2px solid #1657ff;outline-offset:3px}
@media(max-width:420px){.register-success-body{padding:24px 20px}.register-success-dialog h2{font-size:21px}}

/* Mobile form: one scroll surface, readable controls, consistent section spacing. */
#register-modal .register-content{overscroll-behavior:contain;scroll-padding-block:20px;max-height:calc(100dvh - 24px)}
#register-modal .register-field{width:100%;max-width:100%}
#register-modal .register-form-view .register-header{padding-right:40px!important}
#register-modal .register-form input{scroll-margin-block:24px}
#register-modal .register-action-button:disabled{opacity:.65;cursor:wait}
@media(max-width:600px){#register-modal .register-content:has(.register-form-view.active){padding:20px 14px;width:calc(100vw - 20px)}#register-modal .client-section-fields{padding:14px;gap:18px}#register-modal .client-register-section{margin-bottom:18px}#register-modal .register-field{font-size:12px}#register-modal .register-form input:not([type=checkbox]):not([type=hidden]),#register-modal .register-form select{min-height:46px;height:46px;font-size:16px}#register-modal .register-form-view .register-header{padding:16px 34px 16px 14px!important;align-items:flex-start}#register-modal .register-form-view .register-header h2{font-size:18px;line-height:1.35}#register-modal .client-register-hero-icon{width:36px;height:36px;border-radius:10px}#register-modal .client-register-hero-icon svg{width:22px;height:22px}#register-modal .client-section-icon{width:32px;height:32px}#register-modal .client-register-section>header{padding:14px;align-items:flex-start}#register-modal .register-password-toggle{top:6px}#register-modal .register-submit{min-height:48px;font-size:14px}#register-modal .register-back{min-height:40px}}

#register-modal input[type=password]::-ms-reveal,#register-modal input[type=password]::-ms-clear{display:none}
