@font-face {
  font-family: font-primary;
  font-style: normal;
  font-weight: 400;
  src: url("fonts/Visby/VisbyCFRegular/font.woff2") format("woff2");
}

@font-face {
  font-family: font-primary;
  font-style: normal;
  font-weight: 500;
  src: url("fonts/Visby/VisbyCFMedium/font.woff2") format("woff2");
}

@font-face {
  font-family: font-primary;
  font-style: normal;
  font-weight: 700;
  src: url("fonts/Visby/VisbyCFBold/font.woff2") format("woff2");
}

:root {
  --verde: #66cc33;
  --azul: #0099ff;
  --amarelo: #ffa500;
  --cinza: #d4d4d4;
}

* {
  font-family: font-primary;
  font-weight: 500;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background-color: #f5f5f7;
  overflow-x: hidden;
}

.header {
  width: 100%;
}
.header img {
  width: 100%;
}

.page-content {
  width: 100%;
}

.header-desktop {
  display: block;
  width: 100%;
}

.header-mobile {
  display: none;
  width: 100%;
}

#resultadoCard {
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .card {
    margin: 0;
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .header-desktop {
    display: none !important;
  }

  .header-mobile {
    display: block !important;
  }

  .container {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .card {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
  }

  .title {
    font-size: 16px;
    text-align: center;
  }

  input {
    font-size: 14px;
    padding: 12px;
  }

  button {
    padding: 14px;
    font-size: 14px;
  }

  .step img {
    width: 28px;
    height: 28px;
  }

  .line {
    height: 16px;
  }

  .whatsapp {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 16px;
  }

  body,
  html {
    width: 100%;
    overflow-x: hidden;
  }

  .page-content {
    width: 100%;
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 120px);
}

.resultado-mode {
  align-items: center;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

input {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  font-size: 14px;
}

.radio {
  display: flex;
  gap: 30px;
  margin: 10px 0;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-item span {
  font-size: 14px;
}

button {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: var(--azul);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

button:disabled {
  background: #9ecff7;
  cursor: not-allowed;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.step img {
  width: 32px;
  height: 32px;
}

.step.active {
  opacity: 1;
}

.step strong {
  font-size: 14px;
  font-weight: 600;
}

.step p {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bdbdbd;
  min-height: 48px;
}

.step div {
  display: flex;
  flex-direction: column;
}

.step.verde {
  color: var(--verde);
}

.step.azul {
  color: var(--azul);
}

.step.amarelo {
  color: var(--amarelo);
}

.hidden {
  display: none;
}

.whatsapp {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
}

.whatsapp img {
  width: 100%;
  height: 100%;
}

.title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

.label {
  font-size: 13px;
  font-weight: 700;
  color: #0099ff;
  display: block;
  margin-top: 10px;
}

.nf-field {
  margin-bottom: 20px;
}

.active-green strong {
  color: #66cc33;
}

.active-blue strong {
  color: #0099ff;
}

.line.green {
  background: #66cc33;
}

.line.gray {
  background: #d4d4d4;
}

.line.blue {
  background: #0099ff;
}

.disabled img {
  opacity: 1;
}

.nf-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.input-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nf-group input {
  flex: 1;
}

.separator {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #999;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.loading-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.loading-screen:not(.hidden) {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #0099ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.line {
  width: 2px;
  height: 28px;
  margin-left: 16px;
  background: var(--cinza);
}

.line.verde {
  background: var(--verde);
}

.line.azul {
  background: var(--azul);
}

.line.amarelo {
  background: var(--amarelo);
}

.icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background-color: currentColor;

  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.icon.coleta {
  mask-image: url("assets/carga-coletada.svg");
  -webkit-mask-image: url("assets/carga-coletada.svg");
}

.icon.transporte {
  mask-image: url("assets/transporte.svg");
  -webkit-mask-image: url("assets/transporte.svg");
}

.icon.previsao {
  mask-image: url("assets/previsao.svg");
  -webkit-mask-image: url("assets/previsao.svg");
}

.icon.entrega {
  mask-image: url("assets/realizada.svg");
  -webkit-mask-image: url("assets/realizada.svg");
}

.icon.ocorrencia {
  mask-image: url("assets/ocorrencia.svg");
  -webkit-mask-image: url("assets/ocorrencia.svg");
}

.step.verde strong,
.step.verde p {
  color: var(--verde);
}

.step.azul strong,
.step.azul p {
  color: var(--azul);
}

.step.amarelo strong,
.step.amarelo p {
  color: var(--amarelo);
}

.input-error::placeholder {
  color: #ff4d4f;
}

.input-error {
  border: 1px solid #ff4d4f !important;
  background-color: #fff1f0;
}

.erro-texto {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.mensagem-erro {
  color: #ff4d4f;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 500;
}

#stepOcorrencia {
  display: flex;
  border: 1px solid;
  border-radius: 20px;
  padding: 10px 10px;
  margin-bottom: 30px;
}

#dataOcorrencia {
  margin: 0;
}
