/* Card container */
.cjm-card {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cjm-step .dados {
    display: flex !important;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}
button.cjm-next {
    width: 46%;
    background: #ff6600;
    padding: 10px !important;
    height: 62px !important;
    border: none;
}
button.cjm-next:hover,
button.cjm-next:active{
    background: #ecb340;
}
button.cjm-prev {
    width: 46%;
    background: #ff660000;
    padding: 10px !important;
    height: 62px !important;
    color: #ff6600 !important;
    border: 2px solid #ff6600 !important;
}
.cjm-step label {
    width: 46%;
    margin-right: 10px;
}
/* Progress bar */
.cjm-progress {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.cjm-progress li {
  flex: 1;
  text-align: center;
  color: #999;
  position: relative;
  font-size: 0.9rem;
}
.cjm-progress li:not(:last-child):after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
  z-index: -1;
}
.cjm-progress li:before {
  content: attr(data-step);
  display: block;
  margin: 0 auto 0.5rem;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #777;
}
.cjm-progress li.active {
  color: #333;
  font-weight: bold;
}
.cjm-progress li.active:before {
  background: #ff6600;
  border-color: #ff6600;
  color: #fff;
}

/* Each step */
.cjm-step { display: none; }
.cjm-step.active { display: block; }

/* Scrollable contract preview */
.cjm-contract-text {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 1rem;
  background: #fafafa;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Simple form styling */
#cjm-contract-flow label {
  display: block;
  margin-bottom: 1rem;
}
#cjm-contract-flow input[type=text],
#cjm-contract-flow input[type=email],
#cjm-contract-flow input[type=tel] {
  width: 100%;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
input[type="file"] {
    padding: 10px;
}
/* Buttons */
.cjm-next, .cjm-prev {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5rem;
}
.cjm-prev { background: #ccc; color: #333; }
.cjm-next:hover, .cjm-prev:hover { opacity: 0.9; }
#cjm-contract-flow .cjm-step { display: none; }
#cjm-contract-flow .cjm-step.active { display: block; }
#cjm-contract-flow .cjm-progress li.active { font-weight: bold; }

p.assinado {
    font-size: 30px;
    text-align: center;
}
div.assinado {
    text-align: center;
}
a.assinado {
    background: #ff6600;
    padding: 20px;
    margin-top: 0px;
    display: inline-flex
;
    border-radius: 10px;
    color: #fff !important;
}
.cjm-contract-text img {
    height: auto !important;
}
/* =========================
   Mobile adjustments
   ========================= */
@media screen and (max-width: 600px) {

  /* Card mais estreito e com menos padding */
  .cjm-card {
    max-width: 100%;
    margin: 1rem;
    padding: 1rem;
  }

  /* Campos em coluna */
  .cjm-step .dados {
    flex-direction: column !important;
  }
  .cjm-step label {
    width: 100% !important;
    margin-right: 0;
  }

  /* Inputs ocupando 100% */
  #cjm-contract-flow input[type="text"],
  #cjm-contract-flow input[type="email"],
  #cjm-contract-flow input[type="tel"],
  input[type="file"] {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Botões full-width e espaçamento inferior */
  button.cjm-next,
  button.cjm-prev {
    width: 100%;
    margin: 0.5rem 0;
    height: auto;
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Barra de progresso menor e possível scroll horizontal */
  .cjm-progress {
    font-size: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .cjm-progress li:before {
    width: 24px;
    height: 24px;
    line-height: 24px;
  }
.cjm-progress li {
    font-size: 12px;
    line-height: 1.4;
}
}

/* Para tablets (opcional) */
@media screen and (max-width: 900px) {
  .cjm-card { margin: 1.5rem auto; }
  button.cjm-next,
  button.cjm-prev {
    width: 48%;
    font-size: 0.95rem;
  }
  .cjm-step label { width: 48%; }
}
