@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

.cfc-header {
  text-align: center;
  padding: 20px 0;
}
.cfc-logo {
  max-width: 180px;
}

/* --- Contenedor principal --- */
.cfc-container {
  display: flex;
  max-width: 950px;
  margin: auto;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  gap: 20px;
  padding: 20px;
}

/* --- Barra lateral (steps) --- */
.cfc-steps {
  background: #235f35;
  color: #fff;
  width: 30%;
  padding: 30px 20px;
  border-radius: 12px;
}

/* --- Barra lateral pasos --- */
.cfc-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cfc-steps li {
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.25s ease;
}

/* === Paso ACTIVO === */
.cfc-steps li.active {
  background: #dce8d4;             /* verde claro */
  color: #1c5c3a !important;       /* texto verde Bosque Urbano */
  font-weight: 700;
  opacity: 1;
}

/* --- Formulario --- */
.cfc-form {
  width: 70%;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
}

.cfc-form h3 {
  margin-bottom: 15px;
  color: #1c5c3a;
  font-size: 20px;
  font-weight: 600;
}

.cfc-form label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.cfc-form input,
.cfc-form select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.cfc-form input:focus,
.cfc-form select:focus {
  border-color: #1c5c3a;
  outline: none;
  background: #fff;
  box-shadow: 0 0 5px rgba(28, 92, 58, 0.3);
}

/* --- Botones --- */
.cfc-form button,
#cfc-pdf,
.donate-btn {
  background: #98c86b !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s;
}

.cfc-form button:hover,
#cfc-pdf:hover,
.donate-btn:hover {
  background: #7fa36d !important;
  transform: scale(1.03);
}

.cfc-form .prev {
  background: #97b58a !important;
}
.cfc-form .prev:hover {
  background: #7fa36d !important;
}

/* Botón Finalizar */
.cfc-form .finish {
  background: #1c5c3a !important;
}
.cfc-form .finish:hover {
  background: #14452a !important;
}

/* Iconos */
.cfc-form button i {
  margin-left: 6px;
  font-size: 14px;
}

/* Animaciones */
.step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}
.step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Mensajes error */
.error-msg {
  font-size: 12px;
  color: #d9534f;
  margin-top: 4px;
}

/* Caja donación */
.donation-box {
  margin-top: 30px;
  padding: 20px;
  background: #f3f7f4;
  border: 1px solid #dfe8dd;
  border-radius: 10px;
  text-align: center;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
  .cfc-container {
    flex-direction: column;
    padding: 15px;
  }
  .cfc-steps {
    width: 100%;
    margin-bottom: 20px;
  }
  .cfc-form {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .cfc-steps li {
    font-size: 0.9rem;
  }
  .cfc-form input,
  .cfc-form select {
    font-size: 0.9rem;
    padding: 10px;
  }
  .cfc-form button {
    width: 100%;
  }
}
