/* ======================================
   PLUGIN: Empréstimos Privados
   Visual Premium — O Credor
====================================== */

:root {
  --emp-bg-main: #141212;
  --emp-bg-card: #1C1919;
  --emp-bg-soft: #232020;

  --emp-text-main: #E7E5E4;
  --emp-text-muted: #A8A29E;
  --emp-text-dark: #0F0F0F;

  --emp-border-soft: rgba(255,255,255,.08);

  --emp-accent: #2563eb;
  --emp-accent-dark: #1e40af;
}

/* RESET CONTROLADO */
.emp-form,
.emp-form * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* CONTAINER PRINCIPAL */
.emp-form {
  max-width: 420px;
  margin: 30px auto;
  padding: 22px;
  background: var(--emp-bg-card);
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.8),
    inset 0 0 0 1px rgba(255,255,255,.03);
  color: var(--emp-text-main);
}

/* TÍTULOS */
.emp-form h2,
.emp-form h3 {
  text-align: center;
  font-weight: 500;
  color: var(--emp-text-main);
}

/* TEXTO */
.emp-form p {
  font-size: 14px;
  color: var(--emp-text-muted);
}

/* =====================================
   INPUTS — ESTILO APP MODERNO (LIGHT ON DARK)
===================================== */

.emp-form input,
.emp-form textarea,
.emp-form select {
  max-width: 360px;
  width: 100%;

  padding: 16px 18px;
  margin-top: 12px;

  background: #F9FAFB;
  color: #0F172A;

  border: 1px solid #E5E7EB;
  border-radius: 18px;

  font-size: 16px;
  font-weight: 500;

  box-shadow:
    0 4px 12px rgba(0,0,0,.08);

  transition: all .25s ease;
}


/* PLACEHOLDER */
.emp-form ::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

/* FOCUS */
.emp-form input:focus,
.emp-form textarea:focus,
.emp-form select:focus {
  outline: none;

  border-color: var(--emp-accent);
  box-shadow:
    0 0 0 3px rgba(37,99,235,.25),
    0 10px 30px rgba(0,0,0,.15);
}

/* DESABILITADO */
.emp-form input:disabled {
  background: #E5E7EB;
  color: #6B7280;
}

/* BOTÕES */
.emp-form button {
  width: 100%;
  padding: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--emp-accent), var(--emp-accent-dark));
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all .25s ease;
}

.emp-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
}

.emp-form button[disabled] {
  background: #44403C;
  cursor: not-allowed;
}

/* STEPS */
.emp-step {
  display: none;
}
.emp-step.active {
  display: block;
}

/* VÍDEO */
.emp-form video {
  width: 100%;
  border-radius: 14px;
  margin-top: 12px;
  background: #000;
}



/* CHECKBOX */
.emp-form label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--emp-text-muted);
}

/* =====================================
   STEP 0 — HOME DARK PREMIUM
===================================== */

.emp-step-home {
  background: radial-gradient(
    circle at top,
    #1F1C1C 0%,
    #141212 75%
  );
  padding: 40px 24px 34px;
  border-radius: 22px;
  text-align: center;
}

/* LOGO */
.emp-step-home .emp-logo {
  max-width: 190px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.9));
}

/* TÍTULO */
.emp-step-home h3 {
  margin-bottom: 26px;
  font-size: 20px;
  letter-spacing: .4px;
}

/* BOTÕES HOME */
.emp-step-home button:first-of-type {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.emp-step-home button:last-of-type {
  background: #0f172a;
  border: 1px solid var(--emp-border-soft);
}

/* FINAL */
.emp-step-final {
  text-align: center;
}

.emp-final-icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.emp-final-alert {
  font-weight: 600;
  color: var(--emp-accent);
}

/* RESPONSIVO */
@media (max-width: 480px) {
  .emp-form {
    margin: 12px;
    padding: 18px;
  }
}


/* =====================================
   FULLSCREEN MOBILE — STEP 0
===================================== */
@media (max-width: 768px) {

  body {
    background: var(--emp-bg-main);
  }

  .emp-form {
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .emp-step-home {
    min-height: 100vh;
    width: 100%;
    border-radius: 0;
    padding: 48px 22px 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .emp-step-home .emp-logo {
    max-width: 220px;
    margin-bottom: 26px;
  }

  .emp-step-home h3 {
    font-size: 21px;
    margin-bottom: 34px;
  }

  .emp-step-home button {
    padding: 18px;
    font-size: 17px;
    border-radius: 16px;
  }
}

/* =====================================
   FIX DEFINITIVO — FUNDO DARK MOBILE
===================================== */
html, body {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {

  html,
  body {
    background: var(--emp-bg-main) !important;
  }

  body {
    margin: 0;
    padding: 0;
  }

  .emp-form {
    background: transparent !important;
    min-height: 100vh;
  }

  .emp-step-home {
    background: radial-gradient(
      circle at top,
      #1F1C1C 0%,
      #141212 75%
    ) !important;
  }
}


/* =====================================
   STEPS CENTRALIZADOS (UX PREMIUM)
===================================== */

.emp-step {
  min-height: calc(100vh - 40px);
  display: none;
}

.emp-step.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding-left: 20px;
  padding-right: 20px;
}


/* CONTEÚDO INTERNO DO STEP */
.emp-step > h3,
.emp-step > h2 {
  margin-bottom: 18px;
}

.emp-step input,
.emp-step select,
.emp-step textarea {
  margin-bottom: 18px;
}

/* MOBILE — ainda mais central */
@media (max-width: 768px) {
  .emp-step {
    min-height: 100vh;
    padding-top: 0;
  }
}

/* =====================================
   LOADING OVERLAY
===================================== */

.emp-loading {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 18, 0.92);
  backdrop-filter: blur(6px);
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.emp-loading img {
  width: 110px;      /* aumenta o tamanho */
  height: auto;      /* mantém proporção */
  max-width: 60vw;   /* segurança no mobile */
  margin-bottom: 18px;
}


.emp-loading p {
  font-size: 14px;
  letter-spacing: .4px;
  color: var(--emp-text-muted);
}


/* =====================================
   LIMITADOR DE LARGURA (INPUTS + BOTÕES)
===================================== */

.emp-step input,
.emp-step select,
.emp-step textarea,
.emp-step button {
  max-width: 360px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* =====================================
   SIMULAÇÃO — CARD PREMIUM
===================================== */

.emp-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 24px;

  background: linear-gradient(
    180deg,
    #1C1919,
    #141212
  );

  border-radius: 20px;
  padding: 22px 20px;

  box-shadow:
    0 20px 40px rgba(0,0,0,.7),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.emp-card p {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 14px;
  font-size: 14px;
  color: var(--emp-text-muted);
}

.emp-card p strong {
  font-weight: 500;
  color: var(--emp-text-main);
}

/* valores */
.emp-card span {
  font-weight: 600;
  color: #F8FAFC;
}

/* linha divisória */
.emp-card p:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 10px;
}

/* JUROS (destaque) */
.emp-card .emp-total {
  flex-direction: column;
  align-items: flex-start;

  margin-top: 18px;
  padding-top: 14px;

  border-top: 1px dashed rgba(255,255,255,.15);
}

.emp-card .emp-total span {
  margin-top: 6px;
  font-size: 13px;
  color: #CBD5F5;
}

.emp-termos {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.emp-termos label {
    margin: 0;
    white-space: nowrap;
}
