.petreg-wrap{
  --petreg-label:#222;
  --petreg-input:#222;
  --petreg-ph:#777;
  --petreg-btn:#ff6b57;
  --petreg-sep:#ddd;

  padding: 12px 0;
}
.petreg-wrap.has-b-top{ border-top:1px solid var(--petreg-sep); }
.petreg-wrap.has-b-bottom{ border-bottom:1px solid var(--petreg-sep); }
.petreg-wrap.has-b-left{ border-left:1px solid var(--petreg-sep); padding-left:12px; }
.petreg-wrap.has-b-right{ border-right:1px solid var(--petreg-sep); padding-right:12px; }

.petreg-step{ display:none; }
.petreg-step.is-active{ display:block; }

/* Header título + contador */
.petreg-stephead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 16px;
}
.petreg-stephead h3{
  margin:0;
  color: #fff;
}
.petreg-stepcount{
  font-weight:700;
  color: var(--petreg-label);
  opacity:.75;
  white-space:nowrap;
}

.petreg-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 720px){
  .petreg-grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-weight:600;
  color: var(--petreg-label);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea{
  width:100%;
  box-sizing:border-box;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  color: var(--petreg-input);
  background: transparent;
}
.field input::placeholder, .field textarea::placeholder{
  color: var(--petreg-ph);
}
.field small.help{ display:block; margin-top:6px; color:#666; }

.counter{ margin-top:6px; color:#fff; font-size: 13px; }

.petreg-actions{
  display:flex;
  gap: 10px;
  margin-top: 16px;
}
.btn{
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor:pointer;
}
.btn.next, .btn.submit{
  background: var(--petreg-btn);
  color: #fff;
}
.btn.ghost{
  border: 1px solid #000000;
  color: #000000;
  background: #f3ccc6;
}

.petreg-error{
  display:none;
  margin-top: 12px;
  white-space: pre-line;
  color: #b00020;
}

.is-invalid{ outline: 2px solid #b00020; outline-offset: 2px; }

.share{ display:flex; gap:10px; margin-top: 10px; }
.share-btn{
  display:inline-block;
  padding:10px 14px;
  border:1px solid #fff;
  color: #fff;
  background: #ff6b57;
  border-radius: 10px;
  text-decoration:none;
}

.petreg-step h3, #petregSuccessMsg p{
  color: #fff;
}

/* Checkboxes inline */
.petreg-checkrow{
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
  margin-top: 10px;
}
.petreg-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-weight:500;
  color: var(--petreg-label);
}
.petreg-check input{
  width:auto;
}
@media (max-width: 720px){
  .petreg-checkrow{
    flex-direction:column;
    align-items:flex-start;
  }
}

.petreg-file-row{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  box-sizing: border-box;
}

.petreg-file-row input[type="file"]{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.petreg-file-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #fff;
  color: #000!important;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  color: #000;
}

.petreg-file-btn:hover{
  background: #f3f3f3;
}

.petreg-file-name{
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.petreg-file-remove{
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.petreg-file-remove:hover{
  color: #ff8c8c;
  border-color: #ff8c8c;
}

.petreg-wrap,
.petreg-wrap *,
.petreg-grid,
.petreg-grid > *,
.field,
.field input,
.field select,
.field textarea {
  box-sizing: border-box;
}

.petreg-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.petreg-grid{
  width: 100%;
  max-width: 100%;
}

.field{
  width: 100%;
  min-width: 0;
}

.field input,
.field select,
.field textarea{
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}