body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  padding: 2rem;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}


.container {
  max-width: 460px;
  width: 100%;
  background: white;  
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

p.valor {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

label {
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

select {
  width: 100%;
  padding: 0.75rem;
  background-color: white;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

select:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}


.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.row .form-group {
  flex: 1 1 45%;
  min-width: 45%;
}

.resumo {
  background: #f6f6f6;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  font-size: 15px;
}

.resumo .row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.resumo strong {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 16px;
}

.resumo p {
  margin: 0.5rem 0;
  font-size: 14px;
}

.resumo strong {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 16px;
}

.submit-btn {
  background: #ff4b00;
  color: white;
  border: none;
  width: 100%;
  padding: 1rem;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 1.5rem;
  cursor: pointer;
}

/* Responsivo */
@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  .container {
    max-width: 100%;
    padding: 1.5rem 1rem;
    border-radius: 0;
    box-shadow: none;
  }

  .row {
    flex-direction: column;
  }

  .row input,
  .row .form-group {
    width: 100% !important;
    flex: 1 1 100%;
  }

  .steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 1rem;
  }

  .step {
    flex: 0 0 auto;
    text-align: center;
    min-width: 70px;
    position: relative;
  }

  .step .label {
    font-size: 0.70rem;
  }

  .step .circle {
    font-size: 0.70rem;
    width: 22px;
    height: 22px;
    line-height: 22px;
  }

  .bandeira{
    width: 10%;
    margin-right: 25px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;

}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.form-control {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.steps {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  margin: 20px auto;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ccc;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;
}

.step.active .circle {
  background-color: #ff6600;
  /* ou a cor laranja desejada */
}

.label {
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
}

/* LINHAS entre os passos */
.step::before {
  content: "";
  position: absolute;
  top: 25%;
  left: -50%;
  width: 100%;
  height: 4px;
  background-color: #ccc;
  z-index: 0;
}

/* Remover linha antes do primeiro */
.step:first-child::before {
  content: none;
}


.code-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.code-inputs input.code {
  width: 40px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border 0.2s ease;
}

.code-inputs input.code:focus {
  border-color: #ff6600;
}

.erro,
input[type="text"].erro,
input[type="tel"].erro,
input[type="email"].erro,
input[type="password"].erro {
  border: 1px solid red !important;
}

.mensagem-erro {
  color: red;
  font-size: 0.9em;
}

.forgot-password-link {
  font-size: 14px;
  color: orangered;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.forgot-password-link:hover {
  color: orangered;
}


.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}





.card-brands {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-brand {
  border: 2px solid transparent;
  padding: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: border 0.2s;
}

.card-brand.selected {
  border-color: blue;
}

.card-brand img {
  height: 40px;
}

.card-box {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  margin-bottom: 10px;
}

.flex-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: flex-end;
}


.plan-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.plan-box:hover {
  border-color: #ff6600;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.15);
}

.plan-box input[type="radio"] {
  accent-color: #ff6600;
  width: 18px;
  height: 18px;
}

.tag-recomendado {
  position: absolute;
  top: -26px;
  left: 38%;
  background-color: #ff6600;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(-2deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.plan-box input[type="radio"]:checked~div {
  border-color: #ff6600;
  background-color: #fff3eb;
}

.plan-box:has(input[type="radio"]:checked) {
  border-color: #ff6600;
  background: linear-gradient(135deg, #fff3eb 0%, #ffe8d6 100%);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}

.desativado {
  background-color: #eee;
  cursor: not-allowed;
  opacity: 0.6;
}

.forma-pagamento {
  margin-top: 1rem;
  font-size: 14px;
  color: #333;
}

#fireworks {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Melhorias para o pacote único */
.plan-box strong {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.25rem;
  display: block;
}

.plan-box span {
  color: #666;
  font-size: 0.95rem;
}

.tag-recomendado {
  background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* Melhorias no container principal */

/* Garantir que campos de pagamento fiquem na mesma linha */
#step3 .flex-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  align-items: flex-end !important;
}

#step3 .flex-row > div {
  flex: 1;
}

/* Quando há apenas um plano, limitar a largura */
.flex-row.single-plan {
  max-width: 250px !important;
  margin: 0 auto !important;
  justify-content: center !important;
}

.flex-row.single-plan .plan-box {
  flex: none !important;
  width: 100% !important;
  max-width: 250px !important;
}

/* Campo de CPF centralizado e com tamanho apropriado */
#cpfStep .form-group {
  text-align: center;
}

.input-container {
  position: relative;
  max-width: 200px;
  margin: 0 auto;
}

#cpfStep input[type="text"] {
  width: 100%;
  padding-right: 40px; /* Espaço para o loader */
}

.cpf-loader {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #ff6600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Caixa de informações para CPF */
.info-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #495057;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Animação sutil para as informações */
.info-box {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(255, 102, 0, 0.1);
}

/* Melhorias nos botões */
.submit-btn {
  background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #e55a00 0%, #e6731a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* Estilos para verificação de CPF */
.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.success-message p {
  margin: 0;
  font-weight: 500;
}

#cpfStep, #formularioCompleto, #cpfExiste {
  transition: all 0.3s ease;
}

.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

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

/* Estilos para campo CPF bloqueado */
input[readonly] {
  background-color: #f5f5f5 !important;
  cursor: not-allowed !important;
  color: #666 !important;
}

input[readonly]:focus {
  outline: none !important;
  box-shadow: none !important;
}
