/* Prevaler Enrollment Portal — Styles */

/* =========================================================
   Design tokens — referencia as CSS vars globais do tema
   ========================================================= */

:root {
  --enr-primary:        var(--bg-brand-solid,       #1db4ff);
  --enr-primary-dark:   var(--button-primary,        #0096e0);
  --enr-primary-light:  var(--bg-brand-primary,      #d6f1ff);
  --enr-primary-hover:  var(--bg-brand-solid-hover,  #0aadff);
  --enr-accent:         #7b18dd;
  --enr-border:         var(--border-secondary,      #e9eaeb);
  --enr-border-input:   var(--border-primary,        #d5d7da);
  --enr-border-brand:   var(--border-brand,          #47c2ff);
  --enr-text:           var(--text-primary,          #181d27);
  --enr-text-secondary: var(--text-secondary,        #414651);
  --enr-text-tertiary:  var(--text-tertiary,         #535862);
  --enr-text-disabled:  var(--text-disable,          #a4a7ae);
  --enr-text-error:     var(--text-error-primary,    #d32f2f);
  --enr-text-success:   var(--text-success-primary,  #2e7d32);
  --enr-bg:             var(--bg-primary,            #ffffff);
  --enr-bg-subtle:      var(--bg-secondary,          #fafafa);
  --enr-bg-selected:    #f0f7ff;
  --enr-bg-success:     var(--bg-success-primary,    #f1f8e9);
  --enr-bg-error:       var(--bg-error-primary,      #fdecea);
  --enr-font:           var(--ssa-font-stacks-uni-neue-regular, 'Uni Neue', sans-serif);
  --enr-font-bold:      var(--ssa-font-stacks-uni-neue-bold,    'Uni Neue Bold', sans-serif);
  --enr-radius-sm:      var(--radius-sm,  6px);
  --enr-radius-md:      var(--radius-md,  8px);
  --enr-radius-lg:      var(--radius-xl, 12px);
  --enr-shadow-xs:      var(--shadow-xs, 0 1px 2px rgba(10,13,18,.05));
  --enr-shadow-btn:     0 1px 2px rgba(10,13,18,.05),
                        inset 0 0 0 1px rgba(10,13,18,.18),
                        inset 0 -2px 0 rgba(10,13,18,.05);
  --enr-shadow-btn-primary: 0 1px 2px rgba(10,13,18,.1),
                            inset 0 0 0 1px rgba(255,255,255,.12),
                            inset 0 -2px 0 rgba(0,0,0,.1);
  --enr-focus-ring:     0 0 0 3px rgba(29, 180, 255, 0.25);
}

/* Suppress Cohesion focusable-content ring on radio inputs */
.enrollment-shell input[type="radio"]:focus {
  box-shadow: none;
}
.enrollment-shell input[type="radio"]:focus:checked {
  box-shadow: inset 0 0 0 3px var(--enr-bg);
}

/* =========================================================
   Shell layout — two-column (form left + banner right)
   ========================================================= */

.enrollment-shell {
  display: flex;
  background: var(--enr-bg);
  font-family: var(--enr-font);
}

.enrollment-shell__left {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.enrollment-shell__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  padding: 48px 32px;
  gap: 80px;
}

.enrollment-shell__progress {
  flex-shrink: 0;
}

.enrollment-shell__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Right column — decorative banner */
.enrollment-shell__right {
  flex: 1 1 50%;
  padding: 24px 24px 24px 0;
  display: flex;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .enrollment-shell__right {
    display: none;
  }
}

/* =========================================================
   Prevaler logo (left column header)
   ========================================================= */

.enrollment-shell__logo {
  flex-shrink: 0;
  margin-bottom: 24px;
}

.enrollment-logo {
  display: block;
  width: 284px;
  height: 48px;
}

/* =========================================================
   Banner (right column)
   ========================================================= */

.enrollment-banner {
  border-radius: 32px;
  overflow: hidden;
  flex: 1;
}

.enrollment-banner__img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: right top;
  border-radius: 32px;
}

/* =========================================================
   Step progress indicator
   ========================================================= */

.enr-progress {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.enr-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 48px;
}

.enr-progress__bar {
  flex: 1;
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.enr-progress__bar-track {
  position: absolute;
  inset: 0;
  height: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--enr-border);
  border-radius: 9999px;
}

.enr-progress__bar-fill {
  position: absolute;
  left: 0;
  height: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--enr-primary);
  border-radius: 9999px;
  width: 0;
  transition: width 0.4s ease;
}

.enr-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.enr-step-icon--complete {
  background: var(--enr-primary-light);
}

.enr-step-icon--complete img {
  width: 100%;
  height: 100%;
  display: block;
}

.enr-step-icon--current {
  background: var(--enr-primary-light);
  box-shadow:
    0 0 0 2px var(--enr-bg),
    0 0 0 4px var(--enr-accent);
}

.enr-step-icon__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--enr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.enr-step-icon__inner {
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enr-step-icon__inner img {
  width: 100%;
  height: 100%;
  display: block;
}

.enr-step-icon--incomplete {
  background: var(--enr-bg-subtle);
}

.enr-step-icon__border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--enr-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.enr-step-icon__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--enr-border-input);
}

.enr-progress__label {
  font-size: 13px;
  font-family: var(--enr-font);
  color: var(--enr-text-secondary);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

/* Small screens (webview): anchor the first/last labels inside the content box
   so they are not clipped; icons stay centered on the bars. [VAL-218] */
@media (max-width: 600px) {
  .enr-progress__step:first-child .enr-progress__label {
    align-self: flex-start;
    text-align: left;
  }

  .enr-progress__step:last-child .enr-progress__label {
    align-self: flex-end;
    text-align: right;
  }
}

.enr-progress__label--current {
  color: var(--enr-primary-dark);
  font-family: var(--enr-font-bold);
}

.enr-progress__label--complete {
  color: var(--enr-text-secondary);
}

.enr-progress__label--incomplete {
  color: var(--enr-text-secondary);
}

/* =========================================================
   Progress ring card — compact "<legenda> X de N" + label of the
   current step, mirroring the loan wizard mobile progress. Shared
   by the main enrollment stepper (behind the MAIN_PROGRESS_MOBILE_RING
   flag) and by the investor profile questionnaire. [VAL-218 item 11]

   Hidden by default: each host turns it on at its own breakpoint.
   ========================================================= */

.enr-ring-card {
  display: none;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  background: var(--enr-bg);
  border: 1px solid var(--enr-border);
  border-radius: 12px;
}

/* Conic-gradient progress ring; --progress-pct is set inline per step. */
.enr-ring-card__ring {
  flex-shrink: 0;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(
    var(--enr-primary) var(--progress-pct, 0%),
    var(--enr-border) var(--progress-pct, 0%)
  );
}

/* Inner circle punches the donut hole. */
.enr-ring-card__ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--enr-bg);
}

.enr-ring-card__text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.enr-ring-card__caption,
.enr-ring-card__count {
  font-family: var(--enr-font);
  font-size: 12px;
  color: var(--enr-text);
  white-space: nowrap;
}

.enr-ring-card__label {
  font-family: var(--enr-font-bold);
  font-size: 14px;
  line-height: 1.3;
  color: var(--enr-text-tertiary);
}

/* Mobile: the main stepper swaps the horizontal steps for the ring card.
   Scoped to the modifier class, which is only rendered while the
   MAIN_PROGRESS_MOBILE_RING flag is on — without it the stepper is untouched. */
@media (max-width: 768px) {
  .enr-progress--mobile-ring .enr-progress__step,
  .enr-progress--mobile-ring .enr-progress__bar {
    display: none;
  }

  .enr-progress--mobile-ring .enr-ring-card {
    display: flex;
  }
}

/* =========================================================
   Step container
   ========================================================= */

.enrollment-step {
  flex: 1;
}

.enrollment-step__title {
  font-size: 30px;
  font-family: var(--enr-font);
  font-weight: normal;
  color: #344563;
  line-height: 1.3;
  margin: 0 0 24px;
}

/* <strong> dentro do título alterna para a face Bold sem dobrar o peso. */
.enrollment-step__title strong {
  font-family: var(--enr-font-bold);
  font-weight: normal;
}

/* O conteúdo vem do admin e pode chegar como texto solto (sem <p>), então a
   tipografia fica no próprio container — assim as duas formas de escrever o
   texto rendem igual. A margem do último <p> colapsa com a do container, sem
   dobrar o espaçamento. */
.enrollment-step__subtitle {
  font-size: 14px;
  color: var(--enr-text-tertiary);
  line-height: 1.6;
  margin: 0 0 28px;
}

.enrollment-step__subtitle p {
  font-size: inherit;
  color: inherit;
  margin: 0 0 28px;
  line-height: inherit;
}

/* <strong> escrito no admin alterna para a face Bold sem dobrar o peso, igual ao
   título. */
.enrollment-step__subtitle strong {
  font-family: var(--enr-font-bold);
  font-weight: normal;
}

/* Aviso de "pular esta etapa", exibido sob o subtítulo enquanto nenhum arquivo
   foi anexado: destaque em negrito por decisão de UX, não pelo texto do admin. */
.enrollment-step__skip-hint {
  font-family: var(--enr-font-bold);
  font-weight: normal;
}

/* Address-step heading shown above the address fields ("Seu endereço está
   correto?" / "Digite o seu endereço:"). */
.enrollment-step__address-heading {
  font-size: 22px;
  font-family: var(--enr-font-bold);
  font-weight: normal;
  color: #717680;
  line-height: 1.3;
  margin: 8px 0 4px;
}

/* =========================================================
   Form fields
   ========================================================= */

.enrollment-field {
  margin-bottom: 16px;
}

.enrollment-field__label {
  display: block;
  font-size: 13px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text-secondary);
  margin-bottom: 6px;
}

.enrollment-field__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--enr-border-input);
  border-radius: var(--enr-radius-md);
  font-size: 14px;
  font-family: var(--enr-font);
  color: var(--enr-text);
  background: var(--enr-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: var(--enr-shadow-xs);
}

.enrollment-field__input:focus {
  outline: none;
  border-color: var(--enr-primary-dark);
  box-shadow: var(--enr-focus-ring);
}

.enrollment-field__input::placeholder {
  color: var(--enr-text-disabled);
}

.enrollment-field__error {
  display: block;
  font-size: 12px;
  color: var(--enr-text-error);
  margin-top: 4px;
}

.enrollment-field__hint {
  display: block;
  font-size: 14px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text-tertiary);
  margin-top: 6px;
}

/* =========================================================
   Buttons
   ========================================================= */

.enrollment-actions {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}

.enrollment-btn {
  padding: 10px 20px;
  border-radius: var(--enr-radius-md);
  font-size: 14px;
  font-family: var(--enr-font-bold);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.enrollment-btn--primary {
  background: var(--enr-primary-dark);
  color: #fff;
  flex: 1;
  box-shadow: var(--enr-shadow-btn-primary);
}

.enrollment-btn--primary:hover:not(:disabled) {
  background: var(--enr-primary-hover);
}

.enrollment-btn--primary:disabled {
  background: var(--enr-text-disabled);
  box-shadow: none;
  cursor: not-allowed;
}

.enrollment-btn--secondary {
  background: var(--enr-bg);
  color: var(--enr-text);
  border: 1px solid var(--enr-border-input);
  box-shadow: var(--enr-shadow-btn);
}

.enrollment-btn--secondary:hover:not(:disabled) {
  background: var(--enr-bg-subtle);
  border-color: var(--enr-text-secondary);
}

.enrollment-btn--secondary:disabled {
  color: var(--enr-text-disabled);
  border-color: var(--enr-border);
  box-shadow: none;
  cursor: not-allowed;
}

.enrollment-btn--ghost {
  background: none;
  border: none;
  color: var(--enr-primary-dark);
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: none;
  min-width: auto;
}

.enrollment-btn--ghost:disabled {
  color: var(--enr-text-disabled);
  cursor: not-allowed;
}

.enrollment-btn--nowrap {
  white-space: nowrap;
}

/* =========================================================
   Payment options
   ========================================================= */

.enrollment-payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--enr-border-input);
  border-radius: var(--enr-radius-lg);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--enr-bg);
  box-shadow: var(--enr-shadow-xs);
  margin-bottom: 10px;
}

.enrollment-payment-option:last-child {
  margin-bottom: 0;
}

.enrollment-payment-option:hover {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-selected);
}

.enrollment-payment-option--selected {
  border-color: var(--enr-accent);
  background: var(--enr-bg);
  box-shadow: none;
}

.enrollment-payment-option__icon {
  font-size: 24px;
  color: var(--enr-primary-dark);
  flex-shrink: 0;
}

.enrollment-payment-option__body {
  flex: 1;
  min-width: 0;
}

.enrollment-payment-option__title {
  font-size: 14px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text);
}

.enrollment-payment-option__description {
  font-size: 12px;
  color: var(--enr-text-tertiary);
  margin-top: 2px;
  line-height: 1.4;
}

.enrollment-payment-option__check {
  font-size: 22px;
  color: var(--enr-accent);
  flex-shrink: 0;
  margin-left: auto;
}

/* Aviso sob os cartões de forma de pagamento (estagiário / jovem aprendiz não
   tem desconto em folha). Texto editável no admin — em branco não é renderizado. */
.enrollment-payment-hint {
  font-size: 12px;
  color: var(--enr-text-tertiary);
  margin: 10px 0 0;
  line-height: 1.4;
}

/* =========================================================
   Generic radio-card option (Income, PPE, etc.)
   ========================================================= */

.enrollment-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.enrollment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--enr-border-input);
  border-radius: var(--enr-radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--enr-bg);
  box-shadow: var(--enr-shadow-xs);
}

.enrollment-option:hover {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-subtle);
}

.enrollment-option--selected {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-selected);
  box-shadow: 0 0 0 3px var(--enr-primary-light);
}

/* Custom radio visual — hides native, draws styled circle */
.enrollment-option__radio {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--enr-border-input);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  background: var(--enr-bg);
}

.enrollment-option__radio:checked {
  background: var(--enr-primary-dark);
  border-color: var(--enr-primary-dark);
  box-shadow: inset 0 0 0 3px var(--enr-bg);
}

.enrollment-option__title {
  font-size: 14px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text);
}

/* =========================================================
   PPE step
   ========================================================= */

.enrollment-ppe__question {
  font-size: 30px;
  font-family: var(--enr-font);
  font-weight: normal;
  color: #344563;
  line-height: 1.3;
  margin: 0 0 12px;
}

.enrollment-ppe__helper p {
  font-size: 12px;
  color: var(--enr-text-tertiary);
  line-height: 1.5;
  margin: 0 0 24px;
}

.enrollment-ppe__helper-link {
  color: var(--enr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.enrollment-ppe__actions {
  display: flex;
  gap: 20px;
}

.enrollment-ppe__actions .enrollment-btn {
  flex: 1;
}

/* =========================================================
   Modal overlay
   ========================================================= */

.enrollment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.enrollment-modal {
  background: var(--enr-bg);
  border-radius: var(--enr-radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 24px rgba(10, 13, 18, 0.16);
}

.enrollment-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--enr-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--enr-radius-sm);
  transition: color 0.15s, background 0.15s;
}

.enrollment-modal__close:hover {
  color: var(--enr-text);
  background: var(--enr-bg-subtle);
}

.enrollment-modal--sm {
  max-width: 420px;
}

.enrollment-modal--md {
  max-width: 440px;
}

.enrollment-modal--lg {
  max-width: 600px;
}

.enrollment-modal--centered {
  text-align: center;
}

.enrollment-modal__logo {
  margin-bottom: 16px;
}

.enrollment-modal__logo img {
  height: 28px;
}

.enrollment-modal__title {
  font-size: 20px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text);
  margin: 0 0 12px;
}

.enrollment-modal__body {
  font-size: 14px;
  color: var(--enr-text-secondary);
  line-height: 1.6;
  text-align: left;
  margin: 0 0 16px;
}

.enrollment-modal__plan-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--enr-border-brand);
  border-radius: var(--enr-radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: left;
  background: var(--enr-primary-light);
}

.enrollment-modal__plan-preview__icon {
  color: var(--enr-primary-dark);
  font-size: 22px;
}

.enrollment-modal__plan-preview__label {
  font-size: 11px;
  color: var(--enr-text-tertiary);
  margin-bottom: 2px;
}

.enrollment-modal__plan-preview__name {
  font-size: 14px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text);
}

.enrollment-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.enrollment-modal__actions .enrollment-btn {
  flex: 1;
  text-wrap: balance;
}

.enrollment-modal__acknowledge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 28px;
}

.enrollment-modal__acknowledge-radio {
  -webkit-appearance: none;
  appearance: none;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--enr-border-input);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
}

.enrollment-modal__acknowledge-radio:checked {
  background: var(--enr-primary-dark);
  border-color: var(--enr-primary-dark);
  box-shadow: inset 0 0 0 3px var(--enr-bg);
}

.enrollment-modal__acknowledge-text {
  font-size: 13px;
  color: var(--enr-text-tertiary);
  line-height: 1.5;
}

.enrollment-modal__field {
  text-align: left;
}

.enrollment-modal__field .enrollment-optin-label {
  margin-bottom: 8px;
}

.enrollment-modal__heading {
  font-size: 18px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text);
  margin: 0 0 16px;
}

.enrollment-modal__description {
  font-size: 13px;
  color: var(--enr-text-tertiary);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Reforço da mesma regra dentro do modal de busca de empresa: fica entre a
   descrição e o rótulo do campo de busca, com margem menor para agrupar as duas
   linhas. Texto editável no admin — em branco não é renderizado. */
.enrollment-modal__hint {
  font-size: 13px;
  font-family: var(--enr-font-bold);
  font-weight: normal;
  color: var(--enr-text-tertiary);
  margin: -8px 0 16px;
  line-height: 1.5;
}

.enrollment-modal__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--enr-primary-light);
  margin-bottom: 16px;
}

.enrollment-modal__icon {
  font-size: 24px;
  color: var(--enr-text-tertiary);
}

.enrollment-modal__icon--brand {
  color: var(--enr-primary-dark);
}

/* =========================================================
   Search field with leading icon
   ========================================================= */

.enrollment-field--search {
  position: relative;
}

.enrollment-field__search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--enr-text-disabled);
  pointer-events: none;
}

.enrollment-field__input--with-icon {
  padding-left: 40px;
}

.enrollment-field__input--error {
  border-color: var(--enr-text-error);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.enrollment-field__input--error:focus {
  border-color: var(--enr-text-error);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* =========================================================
   Company selection list
   ========================================================= */

.enrollment-company-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 2px;
}

.enrollment-company-list::-webkit-scrollbar {
  width: 4px;
}

.enrollment-company-list::-webkit-scrollbar-track {
  background: transparent;
}

.enrollment-company-list::-webkit-scrollbar-thumb {
  background: var(--enr-border-input);
  border-radius: 2px;
}

.enrollment-company-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--enr-bg);
}

.enrollment-company-item:hover {
  border-color: var(--enr-border-brand);
  background: var(--enr-bg-subtle);
}

.enrollment-company-item--selected {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-selected);
}

.enrollment-company-item--selected:hover {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-selected);
}

.enrollment-company-item__name {
  font-size: 14px;
  color: var(--enr-text);
  line-height: 1.4;
}

.enrollment-company-item--selected .enrollment-company-item__name {
  font-family: var(--enr-font-bold);
  color: var(--enr-primary-dark);
}

.enrollment-company-item__check {
  font-size: 18px;
  color: var(--enr-primary-dark);
  flex-shrink: 0;
}

/* =========================================================
   Company not found state
   ========================================================= */

.enrollment-company-not-found {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  margin-top: 8px;
  border-radius: var(--enr-radius-md);
  background: var(--enr-bg-error);
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.enrollment-company-not-found__icon {
  font-size: 20px;
  color: var(--enr-text-error);
  flex-shrink: 0;
  margin-top: 1px;
}

.enrollment-company-not-found__text {
  font-size: 13px;
  color: var(--enr-text-error);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   Document upload — dropzone
   ========================================================= */

.enrollment-doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.enrollment-doc-dropzone {
  background: var(--enr-bg);
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-lg);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 24px;
}

.enrollment-doc-dropzone:hover {
  border-color: var(--enr-border-brand);
}

.enrollment-doc-dropzone--drag {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-selected);
}

.enrollment-doc-dropzone__icon-box {
  width: 40px;
  height: 40px;
  background: var(--enr-bg);
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-md);
  box-shadow: var(--enr-shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enrollment-doc-dropzone__icon {
  font-size: 20px;
  color: var(--enr-text-secondary);
}

.enrollment-doc-dropzone__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.enrollment-doc-dropzone__action-row {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.enrollment-doc-dropzone__click-text {
  font-size: 14px;
  color: var(--enr-primary-dark);
  font-family: var(--enr-font);
}

.enrollment-doc-dropzone__drag-text {
  font-size: 14px;
  color: var(--enr-text-tertiary);
}

.enrollment-doc-dropzone__hint {
  font-size: 12px;
  color: var(--enr-text-tertiary);
  text-align: center;
}

/* =========================================================
   Document upload — attachment card
   ========================================================= */

.enrollment-doc-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--enr-bg);
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-md);
}

.enrollment-doc-card__thumb {
  width: 32px;
  height: 32px;
  background: #d9d9d9;
  border-radius: var(--enr-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--enr-text-secondary);
  font-size: 18px;
}

.enrollment-doc-card__name {
  flex: 1;
  font-size: 16px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.enrollment-doc-card__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--enr-text-tertiary);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--enr-radius-sm);
  flex-shrink: 0;
  transition: color 0.15s;
}

.enrollment-doc-card__remove:hover {
  color: var(--enr-text-error);
}

/* Only on this step the two buttons share the row evenly: the primary already
   carries flex:1, so the secondary gets it too instead of sitting at its
   content width. Scoped to #step-documentation to keep every other step's
   "Voltar" narrow. */
#step-documentation .enrollment-actions .enrollment-btn--secondary {
  flex: 1;
}

/* =========================================================
   Modal — warning/error icon variants
   ========================================================= */

.enrollment-modal__icon-wrapper--warning {
  background: #fff3e0;
}

.enrollment-modal__icon--warning {
  color: #e65100;
}

/* =========================================================
   OTP input
   ========================================================= */

.enrollment-otp-wrapper {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.enrollment-otp-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enrollment-otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-family: var(--enr-font-bold);
  border: 1px solid var(--enr-border-input);
  border-radius: var(--enr-radius-md);
  color: var(--enr-text);
  background: var(--enr-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--enr-shadow-xs);
}

.enrollment-otp-digit:focus {
  outline: none;
  border-color: var(--enr-primary-dark);
  box-shadow: var(--enr-focus-ring);
}

.enrollment-otp-digit--error {
  border-color: var(--enr-text-error);
}

.enrollment-otp-separator {
  font-size: 20px;
  color: var(--enr-text-disabled);
  font-weight: 300;
  margin: 0 4px;
}

.enrollment-otp-resend-row {
  text-align: center;
  margin-top: 16px;
}

/* =========================================================
   Links e estados de carregamento
   ========================================================= */

.enrollment-link {
  color: var(--enr-primary-dark);
  text-decoration: none;
}

.enrollment-link:hover {
  text-decoration: underline;
}

.enrollment-loading {
  color: var(--enr-text-tertiary);
  font-size: 14px;
}

/* =========================================================
   Optin checkbox row
   ========================================================= */

.enrollment-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--enr-text-tertiary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.enrollment-optin-checkbox {
  margin-top: 2px;
  accent-color: var(--enr-primary-dark);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.enrollment-minor-warning {
  color: #e65100;
}

/* =========================================================
   Utility layouts
   ========================================================= */

.enrollment-phone-row {
  display: flex;
  gap: 8px;
}

.enrollment-input--ddd {
  width: 80px;
  flex-shrink: 0;
}

.enrollment-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Two equal-width fields side by side on desktop (Gênero/Nacionalidade),
   stacked on mobile. */
.enrollment-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .enrollment-field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Two-column row with a wider first field (Logradouro/Número, Cidade/Estado). */
.enrollment-grid-21 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.enrollment-grid-city {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

/* "Não sei meu CEP" helper link below the CEP field. */
.enrollment-link--cep {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--enr-font-bold);
  font-size: 14px;
  text-decoration: underline;
}

/* "Moro no exterior" checkbox row. */
.enrollment-field--checkbox {
  margin-bottom: 16px;
}

.enrollment-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--enr-text-disabled);
}

.enrollment-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--enr-primary);
  cursor: pointer;
}

/* "Preencher depois. →" link below the action buttons. */
.enrollment-skip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 0;
  background: none;
  border: none;
  color: var(--enr-primary-dark);
  font-family: var(--enr-font-bold);
  font-size: 14px;
  cursor: pointer;
}

.enrollment-skip-link:hover {
  text-decoration: underline;
}

.enrollment-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.enrollment-input--flex {
  flex: 1;
}

.enrollment-input--uf {
  width: 60px;
}

.enrollment-actions--centered {
  justify-content: center;
}

/* =========================================================
   Feedback / status screens
   ========================================================= */

.enrollment-feedback {
  text-align: center;
  padding: 32px 0;
}

.enrollment-feedback__icon {
  font-size: 64px;
}

.enrollment-feedback__icon--error {
  color: var(--enr-text-error);
}

.enrollment-feedback__title {
  margin-top: 16px;
}

/* =========================================================
   Spinner / loading screen
   ========================================================= */

.enrollment-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 24px;
  text-align: center;
}

.enrollment-spinner {
  width: 64px;
  height: 64px;
  border: 8px solid var(--enr-primary-light, #d6f1ff);
  border-top-color: var(--enr-primary-dark, #0096e0);
  border-radius: 50%;
  animation: enr-spinner-rotate 0.8s linear infinite;
}

@keyframes enr-spinner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.enrollment-loading-screen__text {
  color: var(--enr-text-secondary);
  font-size: 16px;
  margin: 0;
}

/* =========================================================
   Beneficiary list item
   ========================================================= */

.enrollment-beneficiary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-md);
  margin-bottom: 8px;
  background: var(--enr-bg);
}

.enrollment-beneficiary-item__main {
  flex: 1;
  min-width: 0;
}

.enrollment-beneficiary-item__name {
  font-family: var(--enr-font-bold);
  font-size: 14px;
  color: var(--enr-text);
}

.enrollment-beneficiary-item__info {
  font-size: 12px;
  color: var(--enr-text-tertiary);
  margin-top: 2px;
}

.enrollment-beneficiary-item__info--pending {
  color: var(--enr-text-error);
  font-style: italic;
}

.enrollment-btn-remove {
  background: none;
  border: none;
  color: var(--enr-text-error);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--enr-radius-sm);
  transition: background 0.15s;
}

.enrollment-btn-remove:hover {
  background: var(--enr-bg-error);
}

.enrollment-btn-icon {
  background: none;
  border: none;
  color: var(--enr-accent);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--enr-radius-sm);
  transition: background 0.15s;
  flex-shrink: 0;
}

.enrollment-btn-icon:hover {
  background: var(--enr-bg-hover, rgba(0, 0, 0, 0.06));
}

.enrollment-beneficiary-item__percent {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px;
  flex-shrink: 0;
}

.enrollment-beneficiary-item__pct-input {
  width: 64px;
  padding: 6px 8px;
  text-align: center;
  font-size: 14px;
}

.enrollment-beneficiary-item__pct-symbol {
  font-size: 14px;
  color: var(--enr-text-secondary);
}

.enrollment-beneficiary-total {
  text-align: right;
  font-size: 13px;
  color: var(--enr-text-secondary);
  margin-bottom: 4px;
}

#pl-ben-add-dep {
  margin-top: 12px;
}

/* =========================================================
   Spinner animation
   ========================================================= */

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =========================================================
   Select input arrow
   ========================================================= */

select.enrollment-field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23535862' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* =========================================================
   Investor profile — questionnaire
   ========================================================= */

.ip-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ip-sidebar {
  width: 200px;
  flex-shrink: 0;
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-lg);
  padding: 24px;
  background: var(--enr-bg);
}

.ip-main {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--enr-border-brand);
  border-radius: var(--enr-radius-lg);
  padding: 24px;
  background: var(--enr-bg);
  box-shadow: var(--enr-shadow-xs);
}

.ip-sidebar__title {
  font-size: 14px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text-tertiary);
  margin: 0 0 0;
}

.ip-sidebar__steps {
  display: flex;
  flex-direction: column;
}

.ip-sidebar__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ip-step-connector-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  align-self: stretch;
  padding-bottom: 4px;
}

.ip-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ip-step-icon--active {
  background: var(--enr-primary);
  box-shadow: 0 0 0 2px var(--enr-bg), 0 0 0 4px var(--enr-border-brand);
}

.ip-step-icon--active::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
}

.ip-step-icon--incomplete {
  background: #fafafa;
  border: 1.5px solid var(--enr-border);
}

.ip-step-icon--incomplete::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--enr-border-input);
  flex-shrink: 0;
}

.ip-step-icon--done {
  background: var(--enr-primary-light);
}

.ip-step-icon--done::after {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  font-size: 14px;
  color: var(--enr-primary-dark);
  line-height: 1;
}

.ip-step-connector {
  flex: 1;
  width: 2px;
  min-height: 1px;
  background: var(--enr-border);
  border-radius: 2px;
}

.ip-step-text {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
  padding-bottom: 24px;
  min-width: 0;
}

.ip-step-label {
  font-size: 14px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text-secondary);
  word-break: break-word;
  line-height: 1.3;
}

.ip-sidebar__step--active .ip-step-label {
  color: var(--enr-primary-dark);
}

.ip-sidebar__step--done .ip-step-label {
  color: var(--enr-text-secondary);
}

.ip-step-sublabel {
  font-size: 14px;
  color: var(--enr-text-tertiary);
  font-family: var(--enr-font);
}

.ip-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ip-nav-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

.ip-btn-back {
  background: var(--enr-bg);
  color: var(--enr-text-secondary);
  border: 1px solid var(--enr-border);
  box-shadow: var(--enr-shadow-xs);
  min-width: auto;
  padding: 8px 12px;
  font-family: var(--enr-font);
}

.ip-btn-back:hover:not(:disabled) {
  background: var(--enr-bg-subtle);
  border-color: var(--enr-border-input);
}

.ip-btn-next {
  background: var(--enr-bg);
  color: var(--enr-text);
  border: 1px solid var(--enr-border-input);
  box-shadow: var(--enr-shadow-btn);
  min-width: auto;
  padding: 8px 12px;
  font-family: var(--enr-font);
}

.ip-btn-next:hover:not(:disabled) {
  background: var(--enr-bg-subtle);
}

.ip-btn-next:disabled {
  color: var(--enr-text-disabled);
  border-color: var(--enr-border);
  box-shadow: none;
  cursor: not-allowed;
}

.ip-question {
  font-size: 18px;
  font-family: var(--enr-font);
  font-weight: normal;
  color: var(--enr-text);
  line-height: 1.4;
  margin: 0 0 20px;
}

.ip-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.ip-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--enr-border-input);
  border-radius: var(--enr-radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--enr-bg);
  box-shadow: var(--enr-shadow-xs);
}

.ip-option:hover {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-subtle);
}

.ip-option--selected {
  border-color: var(--enr-primary-dark);
  background: var(--enr-bg-selected);
  box-shadow: 0 0 0 3px var(--enr-primary-light);
}

.ip-option__radio {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--enr-border-input);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--enr-bg);
}

.ip-option__radio:checked {
  background: var(--enr-primary-dark);
  border-color: var(--enr-primary-dark);
  box-shadow: inset 0 0 0 3px var(--enr-bg);
}

.ip-option__label {
  font-size: 13px;
  color: var(--enr-text);
  line-height: 1.4;
}

/* =========================================================
   Investor profile — plan selection result
   ========================================================= */

.enrollment-step--plan-result {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ip-results__logo {
  flex-shrink: 0;
}

.ip-results__logo img {
  height: 48px;
  display: block;
}

.ip-results__title {
  font-size: 30px;
  font-family: var(--enr-font);
  font-weight: normal;
  color: var(--enr-text);
  line-height: 1.3;
  margin: 0;
}

.ip-results__title--blue {
  color: var(--enr-primary);
}

.ip-plans {
  display: flex;
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
}

.ip-plan-card {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--enr-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--enr-bg);
}

.ip-plan-card--recommended {
  background: linear-gradient(77.71deg, #100f2c 0%, #7b18dd 100%);
  border-color: #1db4ff;
  color: #fdfdfd;
}

.ip-plan-card__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px 12px 16px;
  border-bottom: 1px solid var(--enr-border);
  flex-shrink: 0;
}

.ip-plan-card--recommended .ip-plan-card__header {
  border-bottom-color: #47c2ff;
}

.ip-plan-card__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c2ebff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ip-plan-card__icon-symbol {
  font-size: 16px;
  color: var(--enr-accent);
}

.ip-plan-card__name {
  font-size: 16px;
  font-family: var(--enr-font);
  color: var(--enr-text-secondary);
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  margin: 0;
}

.ip-plan-card--recommended .ip-plan-card__name {
  font-family: var(--enr-font-bold);
  color: #fdfdfd;
}

.ip-plan-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  align-items: flex-end;
}

.ip-plan-card__tag {
  width: 100%;
  background: var(--enr-bg);
  border: 1px solid var(--enr-border-input);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--enr-text-secondary);
  text-align: center;
  flex-shrink: 0;
  line-height: 1.4;
}

.ip-plan-card__content {
  flex: 1;
  width: 100%;
}

.ip-plan-card__description {
  font-size: 14px;
  color: var(--enr-text-tertiary);
  line-height: 1.5;
  margin: 0;
}

.ip-plan-card--recommended .ip-plan-card__description {
  color: #fdfdfd;
}

.ip-plan-card__actions {
  width: 100%;
  flex-shrink: 0;
}

.ip-plan-card__select {
  width: 100%;
  background: var(--enr-primary);
  color: #100f2c;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--enr-font);
  cursor: pointer;
  text-align: center;
  display: block;
  transition: background 0.15s;
}

.ip-plan-card__select:hover {
  background: var(--enr-primary-hover);
}

.ip-plan-disclaimer {
  font-size: 12px;
  color: #717680;
  margin: 0;
  line-height: 1.5;
}

.ip-plan-disclaimer__link {
  color: var(--enr-primary-dark);
  text-decoration: underline;
  font-family: var(--enr-font-bold);
}

/* =========================================================
   User type selection
   ========================================================= */

/* Two side-by-side cards (Figma node 50817:60968): title, description and an
   own "Iniciar" button per card — the click advances directly, there is no
   selection state. */
.user-type-options {
  display: flex;
  align-items: stretch;
  gap: 32px;
  margin-bottom: 32px;
}

.user-type-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--enr-border);
  border-radius: 12px;
  background: var(--enr-bg);
  box-shadow: 0 2px 4px rgba(10, 13, 18, 0.08);
}

.user-type-card__title {
  font-size: 24px;
  font-family: var(--enr-font-bold);
  color: #344563;
  line-height: 1.3;
}

.user-type-card__title p,
.user-type-card__description p {
  margin: 0;
}

.user-type-card__description {
  font-size: 16px;
  color: var(--enr-text-tertiary);
  line-height: 1.4;
  flex: 1;
}

/* Figma button-primary variant of this screen: cyan fill + dark navy label.
   flex reset: the inherited .enrollment-btn--primary flex:1 would stretch the
   button vertically inside the card's column layout. */
.user-type-card__start {
  flex: 0 0 auto;
  width: 100%;
  background: var(--enr-primary);
  color: #100f2c;
  font-family: var(--enr-font-bold);
  font-size: 16px;
  padding: 10px 16px;
  border-radius: var(--enr-radius-md);
}

.user-type-card__start:hover:not(:disabled) {
  background: var(--enr-primary-hover);
}

@media (max-width: 640px) {
  .user-type-options {
    flex-direction: column;
  }
}

/* The "indicar outra pessoa" sentence mirrors the card titles (24px bold). */
.user-type-indicar {
  font-size: 24px;
  font-family: var(--enr-font-bold);
  color: #344563;
  line-height: 1.3;
}

.user-type-indicar p {
  margin: 0;
}

.user-type-indicar a {
  color: #00a3f5;
  text-decoration: none;
}

.user-type-indicar a:hover {
  text-decoration: underline;
}

.enrollment-step__helper-text {
  font-size: 12px;
  font-family: var(--enr-font);
  color: var(--enr-text-disabled);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* =========================================================
   Complete / Parabéns screen
   ========================================================= */


.enrollment-complete__documents {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-bottom: 24px;
}

.enrollment-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-md);
  background: var(--enr-bg);
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.enrollment-download-card:hover {
  background: var(--enr-bg-subtle);
}

.enrollment-download-card--unavailable {
  cursor: default;
  opacity: 0.5;
}

.enrollment-download-card--unavailable:hover {
  background: var(--enr-bg);
}

.enrollment-download-card__name {
  font-family: var(--enr-font-bold);
  font-size: 16px;
  color: var(--enr-text-secondary);
}

.enrollment-download-card__icon {
  color: var(--enr-accent);
  font-size: 24px;
  flex-shrink: 0;
}

/* =========================================================
   Welcome / Boas-vindas screen
   ========================================================= */

.enrollment-welcome__title--brand {
  color: #344563;
}

.enrollment-welcome__subtitle {
  font-size: 20px;
  color: var(--enr-text-tertiary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.enrollment-welcome__subtitle p {
  margin: 0 0 14px;
}

.enrollment-welcome__subtitle p:last-child {
  margin-bottom: 0;
}

.enrollment-welcome__subtitle--compact {
  font-size: 16px;
  margin-bottom: 28px;
}

.enrollment-welcome__helper {
  font-size: 16px;
  color: #717680;
  line-height: 1.5;
  margin-bottom: 28px;
}

.enrollment-welcome__subtitle ul {
  font-size: 16px;
  list-style: disc;
  padding-left: 20px;
  margin: 6px 0 0;
}

.enrollment-welcome__subtitle ul li {
  font-size: inherit;
  color: inherit;
  line-height: 1.6;
}

.enrollment-welcome__arrow {
  font-size: 16px;
  vertical-align: middle;
  margin-left: 2px;
}

/* "Saiba mais" text link shown above the action buttons (link + modal variant). */
.enrollment-welcome__learn {
  font-size: 16px;
  color: var(--enr-text-tertiary);
  line-height: 1.5;
  margin: 0 0 24px;
}

.enrollment-welcome__learn .enrollment-link {
  text-decoration: underline;
  font-weight: 600;
}

/* =========================================================
   Investor profile — compact horizontal progress (mobile only)
   ========================================================= */

.ip-progress-compact {
  display: none;
  border: 1px solid var(--enr-border);
  border-radius: var(--enr-radius-lg);
  padding: 10px 14px;
  background: var(--enr-bg);
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.ip-progress-compact__title {
  font-size: 12px;
  font-family: var(--enr-font-bold);
  color: var(--enr-text-tertiary);
  margin: 0 0 8px;
  line-height: 1;
}

.ip-progress-compact__steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.ip-progress-compact__step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ip-progress-compact__connector {
  flex: 0 0 8px;
  height: 1.5px;
  margin-top: 7px;
  border-radius: 2px;
}

.ip-progress-compact__connector--done {
  background: var(--enr-border-brand);
}

.ip-progress-compact__connector--incomplete {
  background: var(--enr-border);
}

.ip-progress-compact__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-progress-compact__icon--done {
  background: var(--enr-primary-light);
}

.ip-progress-compact__icon--done::after {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  font-size: 10px;
  color: var(--enr-primary-dark);
  line-height: 1;
}

.ip-progress-compact__icon--active {
  background: var(--enr-primary);
  box-shadow: 0 0 0 1.5px var(--enr-bg), 0 0 0 3px var(--enr-border-brand);
}

.ip-progress-compact__icon--active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.ip-progress-compact__icon--incomplete {
  background: var(--enr-bg-subtle);
  border: 1.5px solid var(--enr-border);
}

.ip-progress-compact__icon--incomplete::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--enr-border-input);
}

.ip-progress-compact__label {
  font-size: 10px;
  font-family: var(--enr-font);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-progress-compact__label--done,
.ip-progress-compact__label--active {
  color: var(--enr-primary-dark);
}

.ip-progress-compact__label--incomplete {
  color: var(--enr-text-disabled);
}

.ip-progress-compact__sublabel {
  font-size: 10px;
  font-family: var(--enr-font);
  line-height: 1;
  text-align: center;
}

.ip-progress-compact__sublabel--done,
.ip-progress-compact__sublabel--active {
  color: var(--enr-text-tertiary);
}

.ip-progress-compact__sublabel--incomplete {
  color: var(--enr-text-disabled);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .enrollment-shell__content {
    max-width: 100%;
    padding: 40px 28px;
  }
}

@media (max-width: 700px) {
  .enrollment-shell__content {
    padding: 24px 0;
    gap: 32px;
  }

  .ip-layout {
    flex-direction: column;
  }

  .ip-sidebar {
    display: none;
  }

  .ip-right-col {
    width: 100%;
  }

  /* Only one of the two is in the DOM (see INVESTOR_PROFILE_MOBILE_RING). */
  .ip-progress-compact {
    display: block;
  }

  .enr-ring-card--investor-profile {
    display: flex;
  }

  .enrollment-otp-digit {
    width: 40px;
    height: 48px;
    font-size: 18px;
  }

  .enrollment-doc-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Step footnote
   ========================================================= */

.enrollment-step__footnote p {
  font-size: 12px;
  color: var(--enr-text-disabled);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* =========================================================
   Progress bar — Concluído state
   ========================================================= */

.enr-progress--complete {
  justify-content: center;
}

.enr-progress__complete-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--enr-primary-dark);
}

.enr-progress__complete-icon {
  font-size: 24px;
  color: var(--enr-primary-dark);
}

.enr-progress__complete-label {
  font-size: 16px;
  font-family: var(--enr-font-bold);
  color: var(--enr-primary-dark);
}

/* =========================================================
   Plan result screen — full-width layout, hide family banner
   ========================================================= */

.enrollment-shell--plan-result .enrollment-shell__right {
  display: none;
}

.enrollment-shell--plan-result .enrollment-shell__left {
  flex: 1 1 100%;
}

.enrollment-shell--plan-result .enrollment-shell__content {
  max-width: 1200px;
  padding: 48px 10px;
}

@media (max-width: 900px) {
  .enrollment-shell--plan-result .enrollment-shell__content {
    padding: 32px 10px;
  }

  .ip-plans {
    flex-wrap: wrap;
  }

  .ip-plan-card {
    min-width: 200px;
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .ip-plans {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .ip-plan-card {
    flex: none;
    width: 100%;
    min-width: 0;
  }
}
