.page {
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  padding-bottom: 120px;
}

/* steps */
.form-step {
  display: none;
  flex: 1;
  overflow: visible;
  animation: stepIn .18s ease;
}

.btn-live-evidence:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-step.is-active {
  display: block;
}

.step-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  margin-top: 10px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .step-actions {
    bottom: 70px;
  }
}

.btn-ghost {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #111;
  border-radius: 8px;
  padding: 8px;
  font-weight: 500;
}

@keyframes stepIn {
  from {
    transform: translateX(8px);
    opacity: .6;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .step-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* form */
#anonymous-report-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.div-form-title {
  width: 100%;
}

.form-body {
  background: white;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 20px;

  justify-content: flex-start;
  align-items: stretch;
}

.btn-public-module {
  background: #A8D3FF;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 500;
}

/* risk types */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 110px));
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.risk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.45rem;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 110px;
}

.risk-card:active {
  transform: scale(0.97);
}

.risk-card:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.risk-card--selected {
  border-color: #A8D3FF;
}

.risk-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
}

.risk-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}

.risk-input {
  display: none;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


@media (max-width: 768px) {
  .risk-grid {
    grid-template-columns: repeat(3, minmax(82px, 96px));
    justify-content: center;
    gap: 0.55rem;
  }

  .risk-card {
    max-width: 96px;
    padding: 0.55rem;
    gap: 0.35rem;
    border-radius: 10px;
  }

  .risk-icon {
    width: 30px;
    height: 30px;
  }

  .risk-label {
    font-size: 0.68rem;
  }
}

@media (max-width: 400px) {
  .risk-grid {
    grid-template-columns: repeat(3, minmax(76px, 88px));
    gap: 0.45rem;
  }

  .risk-card {
    max-width: 88px;
    padding: 0.45rem;
  }

  .risk-icon {
    width: 30px;
    height: 30px;
  }

  .risk-label {
    font-size: 0.65rem;
  }
}

@media (min-width: 769px) {
  .risk-grid {
    grid-template-columns: repeat(3, minmax(110px, 130px));
    justify-content: center;
    gap: 1rem;
  }

  .risk-card {
    max-width: 130px;
    padding: 0.85rem;
  }

  .risk-icon {
    width: 42px;
    height: 42px;
  }

  .risk-label {
    font-size: 0.8rem;
  }
}

/* live evidence */
.btn-live-evidence {
  background: #A8D3FF;
  border: none;
  border-radius: 8px;
  padding: 12px 20px 12px 20px;
  font-weight: 500;
  color: black;
}

.btn-start-recording {
  background: #dc2626;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  color: white;
}

.btn-stop-recording {
  background: #6eb4fa;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  color: white;
}

.btn-reset-recording {
  background: #6b7280;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  color: white;
}

/* media upload */
.evidence-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 120px);
  gap: 10px;
  overflow-x: auto;
  max-height: 280px;
}

.evidence-scroll:empty {
  display: none;
}

.evidence-container::-webkit-scrollbar {
  height: 6px;
}

.evidence-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.evidence-item {
  min-width: 120px;
  max-width: 120px;
  flex: 0 0 auto;
}

.evidence-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}