/* Modal-clone do cadastro Esportiva. Layout pixel-perfect do real:
   tela-cheia = banner laranja promocional (esquerda) + form (direita).
   Cores/fonte fieis: fundo #151923, campos #424344, Montserrat,
   acento verde #22BB33, CTA laranja #FF5A1F. */

.crm-bridge-modal[hidden] {
  display: none;
}

.crm-bridge-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px;
  font-family: 'Montserrat', -apple-system, 'Segoe UI', 'Helvetica Neue',
    Arial, sans-serif;
}

.crm-bridge-card {
  width: min(100%, 1080px);
  height: min(100%, 720px);
  display: grid;
  grid-template-columns: 45% 55%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #151923;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  color: #fdffff;
  overflow: hidden;
}

/* ---- Coluna esquerda: banner promocional laranja ---- */
.crm-bridge-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 26px 0;
  background: linear-gradient(160deg, #ff6a23 0%, #ff5a1f 55%, #e64a12 100%);
  overflow: hidden;
}

.crm-bridge-promo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.crm-bridge-promo-logo {
  height: 26px;
  filter: brightness(0) invert(1);
}

.crm-bridge-promo-seal {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.crm-bridge-promo-seal b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  font-size: 9px;
  flex: 0 0 auto;
}

.crm-bridge-promo-card {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
  border-radius: 16px;
  background: #0c1322;
  padding: 18px 14px;
  text-align: center;
}

.crm-bridge-promo-line {
  padding: 11px 4px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.crm-bridge-promo-line + .crm-bridge-promo-line {
  border-top: 2px solid #ff5a1f;
}

.crm-bridge-promo-line em {
  color: #22bb33;
  font-style: normal;
}

.crm-bridge-promo-figure {
  margin-top: auto;
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* ---- Coluna direita: formulario ---- */
.crm-bridge-formcol {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #151923;
}

.crm-bridge-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 8px;
  flex: 0 0 auto;
}

.crm-bridge-help {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(253, 255, 255, 0.55);
  flex: 0 0 auto;
}

.crm-bridge-login {
  margin-left: auto;
  text-align: right;
  color: rgba(253, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.3;
}

.crm-bridge-login a {
  display: block;
  color: #ff5a1f;
  font-weight: 700;
  text-decoration: none;
}

.crm-bridge-close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.crm-bridge-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 10px 40px 32px;
  overflow-y: auto;
  min-height: 0;
}

.crm-bridge-title {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.crm-bridge-subtitle {
  margin: 4px 0 6px;
  color: rgba(253, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1.45;
}

.crm-bridge-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: rgba(66, 67, 68, 0.55);
  color: #fdffff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.crm-bridge-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(253, 255, 255, 0.4);
  font-size: 12px;
  text-transform: uppercase;
}

.crm-bridge-divider::before,
.crm-bridge-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.crm-bridge-field {
  display: grid;
  gap: 6px;
}

.crm-bridge-field-label {
  color: rgba(253, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}

.crm-bridge-field-label .req {
  color: #fb4f4f;
  margin-left: 2px;
}

.crm-bridge-input {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: #424344;
  color: #fdffff;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
}

.crm-bridge-input::placeholder {
  color: rgba(253, 255, 255, 0.35);
}

.crm-bridge-input:focus {
  box-shadow: 0 0 0 2px rgba(34, 187, 51, 0.5);
}

/* Resumo do CPF validado (caixa cinza com nome ofuscado + Trocar CPF) */
.crm-bridge-cpf-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 6px;
  background: #424344;
  padding: 12px 16px;
}

.crm-bridge-cpf-summary-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.crm-bridge-cpf-name {
  color: #fdffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-bridge-cpf-doc {
  color: #ff5a1f;
  font-size: 13px;
  font-weight: 600;
}

.crm-bridge-cpf-doc span {
  color: rgba(253, 255, 255, 0.5);
  margin-left: 8px;
}

.crm-bridge-trocar {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fdffff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

/* Telefone com prefixo +55 / bandeira fixo */
.crm-bridge-phone {
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  background: #424344;
  overflow: hidden;
}

.crm-bridge-phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #fdffff;
  font-size: 15px;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.crm-bridge-phone .crm-bridge-input {
  background: transparent;
  border-radius: 0;
}

.crm-bridge-phone:focus-within {
  box-shadow: 0 0 0 2px rgba(34, 187, 51, 0.5);
}

.crm-bridge-phone .crm-bridge-input:focus {
  box-shadow: none;
}

/* Linha dupla: Senha + dropdown nacionalidade */
.crm-bridge-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.crm-bridge-select {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: #424344;
  color: #fdffff;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.crm-bridge-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(253, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.45;
}

.crm-bridge-terms input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.crm-bridge-terms a {
  color: #22bb33;
  text-decoration: none;
}

.crm-bridge-refcode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  background: rgba(66, 67, 68, 0.45);
  padding: 13px 16px;
  color: rgba(253, 255, 255, 0.65);
  font-size: 14px;
}

.crm-bridge-refcode b {
  color: #ff5a1f;
  font-weight: 700;
}

.crm-bridge-submit {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: #ff5a1f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
}

.crm-bridge-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.crm-bridge-message {
  min-height: 18px;
  margin: 0;
  border-radius: 4px;
  color: rgb(34, 187, 51);
  background: rgba(34, 187, 51, 0.1);
  padding: 12px 14px;
  font-size: 14px;
}

.crm-bridge-message:empty {
  display: none;
}

.crm-bridge-message.is-error {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
}

.crm-bridge-message.is-success {
  color: #22bb33;
  background: rgba(34, 187, 51, 0.1);
}

/* ---- Age-gate: popup "Voce tem 18 anos?" ao entrar no site. ---- */
.crm-bridge-age {
  z-index: 2147483600; /* acima do modal de cadastro */
}

.crm-bridge-age .crm-bridge-card {
  width: min(100%, 420px);
  height: auto;
  display: block;
}

.crm-bridge-age-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 24px 26px;
}

.crm-bridge-age-inner .crm-bridge-brand {
  height: 32px;
  margin-bottom: 4px;
}

.crm-bridge-age-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.14);
  color: #ff5a1f;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.crm-bridge-age-inner .crm-bridge-title {
  font-size: 21px;
}

.crm-bridge-age-inner .crm-bridge-subtitle {
  max-width: 320px;
}

.crm-bridge-age-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.crm-bridge-age-no {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: transparent;
  color: rgba(253, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* ---- Responsivo: empilha (esconde banner, form full) ---- */
@media (max-width: 880px) {
  .crm-bridge-card {
    grid-template-columns: 1fr;
    height: min(100%, 100%);
    border-radius: 12px;
  }

  .crm-bridge-promo {
    display: none;
  }

  .crm-bridge-form {
    padding: 10px 22px 28px;
  }

  .crm-bridge-title {
    font-size: 22px;
  }
}
