body {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* This is needed to get rid of the line that was appearing. */
span.card {
    border: none;
}

label:not(.form-check-label),
.form-label,
.col-form-label {
  font-size: 8pt;        /* your old size */
  font-weight: 400;      /* normal weight */
  margin-bottom: .25rem;  /* same spacing as before (adjust if needed) */
  line-height: 1.5;      /* optional; inherits from body anyway */
}

/* Optional: if horizontal-form labels look tall due to padding */
.col-form-label {
  padding-top: 0;
  padding-bottom: 0;
}



.crime-card.card {
    cursor: pointer;
    transition: background-color 0.3s;
}

.crime-card.card:hover {
    background-color: #f0f0f0;
}

.page-wrapper {
    padding-top: 20px;
}

.navbar-brand img {
    height: 80px;
}

.nav-link {
    font-size: 1.5rem;
}

/* Test Mode Nav Box */
.test-warning {
  background-color: yellow;
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
}

.info-section {
    padding: 20px;
    background-color: white;
    color: black;
}

.emergency-header h2 {
    color: #ff0000;
}

.info-section ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 1rem;
}



.container {
    margin-bottom: 50px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.bottom-spacing {
    margin-bottom: 100px;
}

.question-border {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.question-label {
    font-size: 1rem;
    font-weight: bold;
}

.form-check-label {
    font-size: .8rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    margin-right: 0.2rem;
}

/* Custom error message styles */
.error-message {
    color: rgb(143, 21, 21);
    font-size: .8rem;
    margin-top: 0.5rem;
}


/* General styles for invalid form controls */
.form-check-input.is-invalid,
.was-validated .form-check-input:invalid,
.question-error .form-check-input,
.question-border.is-invalid .form-check-input {
    border-color: rgb(143, 21, 21);
    accent-color: rgb(143, 21, 21);
    /* For browsers that support accent-color */
}

.form-check-input.is-invalid:checked,
.was-validated .form-check-input:invalid:checked {
    background-color: rgb(143, 21, 21);
}

/* Styles for text in invalid form context */
.form-check-input.is-invalid~.form-check-label,
.was-validated .form-check-input:invalid~.form-check-label,
.question-error .form-check-label,
.question-error .question-label,
.question-border.is-invalid .question-label,
.question-border.is-invalid .form-check-label,
.question-error,
.question-border.is-invalid {
    color: rgb(143, 21, 21) !important;
    background-color: #f8d7da;
}

.row {
    flex-wrap: wrap;
}

.row>.col-auto {
    margin-bottom: .5rem;
    /* This maintains the margin even when new rows are added with smaller windows */
}

/* Ensure form controls maintain their specific widths */
.form-control,
.form-select {
    flex: 0 0 auto;
    /* Prevent form controls from growing or shrinking */
}

/* Border color for question-error sections */
.question-error,
.question-border.is-invalid {
    border-color: rgb(143, 21, 21) !important;
}

.btn-agency {
    width: 350px;
    color: #fff;
    background-color: #ff5722;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.btn-agency:hover {
    box-shadow: 0 5px 5px -2px rgba(0, 0, 0, 0.2), 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 2px 7px 0 rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: #fff;
}

.agency-card {
    width: 425px;
}

.county-logo {
    size: 200px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.alert-danger {
    font-size: .8rem;
    font-weight: bold;
    border-color: rgb(143, 21, 21);
}

.alert-success {
    font-size: .8rem;
    font-weight: bold;
    border-color: rgb(36, 117, 55);
}

.custom-h4 {
    margin-bottom: 5px;
}

.custom-hr {
    margin-top: 5px;
    margin-bottom: 10px;
}

input[type="radio"]:focus {
    outline: none;
}

.form-subtitle {
    color: orange;
    font-weight: bold;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}

.table-striped .clickable-row:hover {
    background-color: #007bff;
    color: #ffffff;
}

.table-striped .clickable-row.selected {
    background-color: #007bff;
    color: #ffffff;
}

.vehicle-card {
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.vehicle-card.selected {
    background-color: #007bff;
    color: white;
    border: 2px solid #0056b3;
}

.vehicle-card.selected .card-text {
    color: white;
}



.address-modal {
    max-height: 800px;
    /* Adjust this based on your desired height */
    overflow-y: auto;
    /* Enables scrolling inside the modal */
    overflow-x: hidden;
    padding-right: 10px;
    /* Ensure padding for the scrollbar */
    border-color: #333;
}

.validation-grid-cell {
    text-align: center;
    vertical-align: middle;
}

.loading {
  display: inline-block;
  width: 40px; /* Set the width to match the final width of the animated ellipsis */
}

.loading:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  -webkit-animation: ellipsis steps(4, end) 900ms infinite;
  animation: ellipsis steps(4, end) 900ms infinite;
  content: "\2026"; /* ASCII code for the ellipsis character */
  width: 0px; /* Start width of the ellipsis */
}

@keyframes ellipsis {
  to {
    width: 40px;
  }
}

@-webkit-keyframes ellipsis {
  to {
    width: 40px;
  }
}

#test_warning {
  align-self: center;    /* stops it stretching */
  width: auto;           /* ensures it wraps content */
}


/* Fullscreen modal with greyed-out background */
#pnl_modal_verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1050; /* Higher than everything else */
  display: none; /* Hidden by default */
}

#pnl_modal_verification.show {
  display: flex !important; /* Flexbox for center alignment */
}

#pnl_modal_verification .card {
  width: 100%;
  max-width: 400px;
}


button.btn:disabled {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #fff;
  opacity: 0.65; /* optional: Bootstrap-like look */
  pointer-events: none;
}
