/* =============================================
   MAIS REGULADORA – ocorrencia.css
   ============================================= */

/* ── PAGE HERO (breadcrumb + título) ── */
.page-hero {
  background: var(--dark2);
  border-bottom: 1px solid var(--gray);
  padding: 2.5rem 0 2rem;
}

.page-hero__inner { display: flex; flex-direction: column; gap: .75rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.breadcrumb a { color: var(--red); transition: opacity .2s; }
.breadcrumb a:hover { opacity: .75; }
.breadcrumb .fa-chevron-right { font-size: .65rem; color: var(--gray); }

.occ-success[hidden] {
  display: none !important;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
}

/* ── FORM PAGE WRAPPER ── */
.form-page {
  padding: 2rem 0 5rem;
  background: var(--dark);
}

@media (max-width: 680px) {
  .form-page { padding: 1.5rem 0 3rem; }
}

/* ── FORM ── */
.occ-form { display: flex; flex-direction: column; gap: 2.5rem; }

/* ── SEÇÕES ── */
.occ-section {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.occ-section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark2);
  border-bottom: 1px solid var(--gray);
  padding: 1.1rem 1.75rem;
}

.occ-section__num {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.occ-section__header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── GRID ── */
.occ-grid {
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.occ-grid--2 { grid-template-columns: 1fr 1fr; }

.occ-field--full { grid-column: 1 / -1; }

/* ── CAMPOS ── */
.occ-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .45rem;
}

.req { color: var(--red); margin-left: .1rem; }

.occ-hint {
  font-weight: 400;
  text-transform: none;
  color: var(--text2);
  font-size: .75rem;
  letter-spacing: 0;
}

.occ-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}

#boLiConcordo,
#protecaoLiConcordo,
#agreeCheck {
  accent-color: var(--red);
  width: 20px;
  height: 20px;
  cursor: pointer;
  vertical-align: middle;
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.checkboxLabel{
  font-size: 1rem;
  color: var(--text);
  user-select: none;
  margin: 0;
  line-height: 1.3;
}

.date-placeholder-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.date-placeholder-wrapper .date-placeholder-text {
  color: #7a7a7a;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.date-placeholder-wrapper .date-input.has-value + .date-placeholder-text,
.date-placeholder-wrapper .date-input:focus + .date-placeholder-text {
  opacity: .45;
}

.date-placeholder-wrapper .date-input {
  width: 100%;
}


.placa-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.placa-wrap .occ-input {
  flex: 1;
  padding-right: 2.2rem;
}

.placa-status {
  position: absolute;
  right: .7rem;
  color: #888;
  font-size: .95rem;
  pointer-events: none;
}

.occ-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(30,145,65,.12);
}

.occ-input.error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }

/* removido aviso de campos faltando do topo */

.occ-textarea { resize: vertical; min-height: 120px; margin-top: 4px;}

select.occ-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── RADIO BUTTONS ── */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text2);
  user-select: none;
}

.radio-option input[type="radio"] { display: none; }

.radio-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}

.radio-box .fa { font-size: .6rem; color: #fff; opacity: 0; transition: opacity .15s; }

.radio-option input[type="radio"]:checked + .radio-box {
  background: var(--red);
  border-color: var(--red);
}
.radio-option input[type="radio"]:checked + .radio-box .fa { opacity: 1; }
.radio-option:hover .radio-box { border-color: var(--red); }

/* ── FILE DROP ── */
.file-drop {
  position: relative;
  border: 2px dashed var(--gray);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  background: var(--dark);
}

.file-drop:hover, .file-drop.drag-over {
  border-color: var(--red);
  background: rgba(30,145,65,.08);
  box-shadow: 0 0 0 4px rgba(30,145,65,.12);
}

.step-panel[data-step="5"] .occ-field input[type="file"] {
  border: 1px solid var(--gray);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: .7rem 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.step-panel[data-step="5"] .occ-field input[type="file"]:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.step-panel[data-step="5"] .occ-field input[type="file"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(30,145,65,.15);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 600;
}

.file-drop p i {
  font-size: 1.1rem;
  color: var(--red);
  line-height: 1;
}

.file-drop .fa {
  font-size: 1.75rem;
  color: var(--red);
  margin-bottom: .5rem;
}

.occ-alert {
  border: 1px solid #A9D5E8;
  background: rgba(169,213,232,0.2);
  color: #1b6432;
  border-left: 4px solid #1e9141;
  border-radius: 8px;
  padding: 0.95rem 1rem;
  line-height: 1.45;
  margin: 1rem 0;
}

.occ-alert.occ-alert--info {
  background: rgba(30, 145, 65, 0.14);
  border-color: #1e9141;
  color: #1b6432;
}

.occ-alert.occ-alert--warning {
  background: rgba(255, 226, 141, 0.3);
  border-color: #f6c043;
  color: #5a3f00;
}

.conditional-step {
  display: none;
}

.conditional-step.active {
  display: block;
}

.occ-alert.occ-alert--info p {
  margin: 0.4rem 0;
}

.file-drop p {
  font-size: .85rem;
  color: var(--text2);
  margin: 0;
}

.file-drop p span {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

/* ── FILE LIST ── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .6rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark2);
  border: 1px solid var(--gray);
  border-radius: 6px;
  padding: .4rem .75rem;
  font-size: .8rem;
  color: var(--text2);
  gap: .5rem;
}

.file-item .fa-file { color: var(--red); flex-shrink: 0; }

.file-item__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item__remove {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: .9rem;
  padding: 0 .2rem;
  line-height: 1;
  flex-shrink: 0;
}

.file-item__remove:disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Status de upload por arquivo */
.file-status-icon {
  flex-shrink: 0;
  font-size: .85rem;
}

.file-status--uploading { color: #888; }
.file-status--done      { color: #38a169; }
.file-status--error     { color: #e53e3e; }

.file-drop.max-reached {
  opacity: .5;
  pointer-events: none;
}

/* ── AVISO + BOTÃO ── */
.occ-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0 .5rem;
  text-align: center;
}

.occ-submit__agree {
  max-width: 560px;
  width: 100%;
  background: #fff8e1;
  border: 1px solid #f6d860;
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: left;
}

.occ-agree-text {
  font-size: .88rem;
  color: #6b5000;
  line-height: 1.6;
  margin: 0;
}

.occ-submit__btn {
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.occ-submit__btn.loading {
  opacity: .7;
  pointer-events: none;
  cursor: not-allowed;
  min-width: 260px;
  justify-content: center;
}

/* ── Botão fake "Próximo" ── */
@keyframes occ-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.step-next-fake {
  background: #e53e3e !important;
  border-color: #e53e3e !important;
  color: #fff !important;
}

.step-next-fake:active,
.step-next-fake.shaking {
  animation: occ-shake .35s ease;
}

.occ-input.error,
.occ-input.error:focus {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.18) !important;
}

.radio-group.error .radio-box {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.18) !important;
}

/* ── SUCESSO ── */
.occ-success {
  text-align: center;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.occ-success__icon {
  font-size: 4rem;
  color: var(--red);
  animation: popIn .4s ease;
}

.occ-success h2 { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.occ-success p  { color: var(--text2); font-size: 1rem; }
.occ-success strong { color: var(--red); font-size: 1.2rem; }

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── RESPONSIVO ── */
@media (max-width: 680px) {
  .occ-grid--2 { grid-template-columns: 1fr; }
  .occ-grid    { padding: 1.25rem; }
  .occ-section__header { padding: 1rem 1.25rem; }
  .page-hero   { padding: 1.75rem 0 1.25rem; }
}

/* ══════════════════════════════════════════
   STEPPER
══════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  margin: 0 auto 2.25rem;
  max-width: 480px;
  padding: 0;
}

.stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.stepper__circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--text2);
  background: var(--white);
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}

.stepper__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text2);
  transition: color .25s;
  white-space: nowrap;
}

/* Ativo */
.stepper__item.active .stepper__circle {
  border-color: var(--red);
  color: var(--red);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(30,145,65,.12);
}
.stepper__item.active .stepper__label { color: var(--red); }

/* Concluído */
.stepper__item.done .stepper__circle {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1);
  box-shadow: none;
}
.stepper__item.done .stepper__label { color: var(--red); }

/* Linha entre passos */
.stepper__line {
  flex: 1;
  height: 2px;
  background: var(--gray);
  margin: 0 10px;
  align-self: center;
  margin-bottom: 0; /* centro exato com o círculo */
  transition: background .3s;
}
.stepper__line.done { background: var(--red); }

/* ══════════════════════════════════════════
   STEP PANELS
══════════════════════════════════════════ */
.step-panel { display: none; }
.step-panel.active {
  display: block;
  animation: stepFadeIn .3s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   STEP NAV (botões Anterior / Próximo)
══════════════════════════════════════════ */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-bottom: .25rem;
  gap: 1rem;
}

/* Botão secundário – Anterior */
.btn--ghost {
  background: transparent;
  border: 2px solid var(--gray);
  color: var(--text2);
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s, color .2s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.textaremenor {
  min-height: 80px;
}

/* ── Grupos de documentos no passo 5 ── */
.occ-docs-group {
  margin-bottom: 1.5rem;
}

.occ-docs-group__title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: black;
  padding: .6rem 1.5rem;
  background: #f4f4f4;
  border-left: 3px solid var(--red);
  margin: 1.25rem 0 .75rem;
}

.occ-docs-terceiro {
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.occ-terceiro-subtitle {
  font-size: .85rem;
  font-weight: 700;
  color: var(--red);
  padding: .5rem 0 .4rem;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: .75rem;
}

/* Estado desabilitado para qualquer btn */
.btn:disabled,
button:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── RESPONSIVO stepper ── */
@media (max-width: 480px) {
  .stepper__label { display: none; }
  .stepper__line  { margin-bottom: 0; margin: 0 6px; } /* sem label, linha fica centralizada naturalmente */
  .stepper__circle { width: 38px; height: 38px; font-size: .85rem; }
  .step-nav { flex-wrap: wrap; }
  .occ-submit .step-nav { justify-content: center; }
  .occ-submit .step-nav .occ-submit__btn { width: 100%; justify-content: center; }
}

/* ── BLOCO DE ENDEREÇO (CEP auto-fill) ── */
.addr-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.addr-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.addr-field {
  display: flex;
  flex-direction: column;
}
.addr-field label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .3rem;
  white-space: nowrap;
}
.addr-field .req { color: var(--red); }
.addr-cep    { width: 118px; }
.addr-rua    { flex: 1; min-width: 140px; }
.addr-num    { width: 72px; }
.addr-bairro { flex: 1; min-width: 130px; }
.addr-cidade { flex: 1.5; min-width: 140px; }
.addr-uf     { width: 54px; }
.addr-ref    { flex: 1; min-width: 160px; }
.addr-field .occ-input { margin-top: 0; }
