/* ========== BASE ========== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #001f14, #00FF8E);
  color: #fff;
}

/* ========== FORMULÁRIO ========== */
.formulario-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  background: #002b1d;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 153, 0.2);
}

.formulario-titulo {
  margin-bottom: 2rem;
  text-align: center;
  color: #00ff99;
  font-size: 1.8rem;
  font-weight: 600;
}

.formulario {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background-color: #003d2a;
  padding: 1.5rem;
  border-radius: 10px;
}

.form-section-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #00ffcc;
  border-left: 5px solid #00ff99;
  padding-left: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group.full-width {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="date"],
input[type="password"],
input[type="tel"],
textarea,
select {
font-family: 'Poppins', sans-serif !important;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
  text-transform: uppercase;
}

input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.5rem;
}

input[type="file"] {
  max-width: 100%;
  box-sizing: border-box;
}

input.valido, select.valido {
  border: 2px solid #00ff99;
  box-shadow: 0 0 4px #00ff99;
}

input.invalido, select.invalido {
  border: 2px solid #ff4d4d;
  box-shadow: 0 0 4px #ff4d4d;
}

input[name="cpf"].valido {
  border: 2px solid #00ff99;
  box-shadow: 0 0 5px #00ff99;
}

input[name="cpf"].invalido {
  border: 2px solid #ff4d4d;
  box-shadow: 0 0 5px #ff4d4d;
}
input[type="date"] {
  font-family: 'Poppins', sans-serif !important;
}

input::placeholder,
textarea::placeholder {
  font-family: 'Poppins', sans-serif;
  color: #999; /* ou qualquer cor desejada */
  font-size: 1rem;
  text-transform: uppercase; /* se quiser manter o estilo dos inputs */
}

select {
  font-family: 'Poppins', sans-serif !important;
  text-transform: uppercase;
}


.descricao-foto {
  font-size: 13px;
  color: #ccc;
  margin-top: 5px;
}

/* ========== NAVEGAÇÃO DE ETAPAS ========== */
.step { display: none; }
.step.ativo { display: block; }

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.step-bullet {
  width: 30px;
  height: 30px;
  background-color: #004d36;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  border: 2px solid #00ff99;
}

.step-bullet.ativo {
  background-color: #00ff99;
  color: #000;
}

.step-bullet span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.step-bullet svg {
  width: 20px;
  height: 20px;
}


/* ========== BOTÕES ========== */
button[type="submit"],
.btn-proximo-step1,
.btn-proximo-step2,
.btn-proximo-step3{
  background-color: #00ff99;
  color: #000;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 140px;
  width: 100%;
}

button[type="submit"]:hover,
.btn-proximo:hover {
  background-color: #00cc7a;
}

.btn-voltar {
  background-color: transparent;
  color: #00ff99;
  border: 2px solid #00ff99;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.btn-voltar:hover {
  background-color: #00ff99;
  color: #000;
}

.botoes-navegacao {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ========== LOADING ========== */
#cep-loading {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.loading-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  color: #002812;
  font-weight: bold;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.loading-box p {
  font-size: 1.2rem;
  animation: piscar 1s infinite alternate;
}

@keyframes piscar {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

/* ========== POPUP ERRO E AGUARDANDO ========== */
.popup-erro,
.popup-aguardando {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-box {
  background: #fff;
  color: #333;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 90%;
  width: 400px;
  animation: aparecer 0.3s ease-out;
  box-sizing: border-box;
}

.popup-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.popup-box p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.popup-box button {
  background-color: #00cc7a;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-box button:hover {
  background-color: #00a465;
}

/* Ícone dentro da popup */
.popup-box .popup-icone {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -45px auto 15px auto;
  box-shadow: 0 0 0 5px rgba(255, 77, 77, 0.1);
}

.popup-box.erro .popup-icone {
  background-color: #ff4d4d;
}

.popup-box.aguardando .popup-icone {
  background-color: #00cc7a;
}

.popup-icone svg {
  width: 28px;
  height: 28px;
  color: white;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0e0e0;
  border-top-color: #00cc7a;
  border-radius: 50%;
  animation: girar 1s linear infinite;
  margin: 0 auto;
}

@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 480px) {
  .popup-box {
    padding: 20px 15px;
    width: 90%;
    font-size: 0.95rem;
  }

  .popup-box .popup-icone {
    width: 60px;
    height: 60px;
    margin-top: -35px;
  }

  .popup-box .popup-icone svg {
    width: 24px;
    height: 24px;
  }

  .popup-box button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}


.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-weight: 500;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #004d36;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s;
  border: 2px solid transparent;
  color: #fff;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group input[type="radio"]:checked + span {
  font-weight: 600;
  color: #000;
}

.radio-group input[type="radio"]:checked + span::before {
  content: '✔';
  margin-right: 6px;
  color: #00ff99;
}

.radio-group input[type="radio"]:checked ~ label {
  background-color: #00ff99;
  color: #000;
  border-color: #00ff99;
}

.radio-group label:hover {
  border-color: #00ff99;
}

.frete-destaque {
  background-color: #00ff99;
  color: #003322;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  font-size: 1.1rem;
  box-shadow: 0 0 5px rgba(0, 255, 153, 0.4);
  transition: all 0.3s ease;
}

.btn-entrega {
  padding: 10px 16px;
  margin: 4px;
  border: 2px solid #00ff99;
  background-color: transparent;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-entrega.active {
  background-color: #00ff99;
  color: #003322;
}

.frete-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-left: 4px;
}

.frete-container label {
  font-weight: 600;
  margin: 0;
}

#resumo-cobranca {
  background-color: #0d3f2a;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 1.5rem;
}

#resumo-cobranca p {
  margin: 0.2rem 0;
}

#resumo-cobranca strong {
  font-size: 1.1rem;
  display: block;
  margin-top: 0.5rem;
}


.senha-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.senha-wrapper input {
  flex: 1;
}

.toggle-senha {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  display: flex;
  align-items: center;
}
