body {
  font-family: "Roboto", sans-serif;
  background-color: #f0f2f5;
  color: #333;
}
.page {
  display: none;
}
.page.active {
  display: block;
}

.header-bg {
  background-color: #ffffff;
}
.footer-bg {
  background-color: #2c3e50;
  color: #ecf0f1;
}
.primary-btn {
  background-color: #0d47a1; /* Deep Blue */
  color: white;
  transition: background-color 0.3s;
}
.primary-btn:hover {
  background-color: #0b3c85;
}
.secondary-btn {
  background-color: #6c757d;
  color: white;
  transition: background-color 0.3s;
}
.secondary-btn:hover {
  background-color: #5a6268;
}

.ticker {
  width: 100%;
  overflow: hidden;
  background-color: #fff;
  padding: 10px 10px 35px 10px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.dashboard-sidebar {
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
}
.sidebar-item {
  color: #343a40;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-item:hover {
  background-color: #e9ecef;
  color: #0d47a1;
}
.sidebar-item-active {
  background-color: #e0e7ff;
  border-left-color: #0d47a1;
  color: #0d47a1;
  font-weight: 700;
}

.table-header {
  background-color: #e9ecef;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dashboard-sidebar {
  background-color: #083148; /* Darker sidebar from file 1 */
  color: #d1d5db;
}
.sidebar-item {
  color: #d1d5db;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-item:hover {
  background-color: #374151;
  border-left-color: #38bdf8;
  color: #fff;
}
.sidebar-item-active {
  background-color: #0c4a6e;
  border-left-color: #fff;
  color: #fff;
  font-weight: 700;
}

.table-header {
  background-color: #e9ecef;
}

.primary-btn {
  background-color: #0d47a1; /* Deep Blue */
  color: white;
  transition: background-color 0.3s;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  height: fit-content;
  align-self: end; /* Aligns button with the input field bottom */
}

.primary-btn:hover {
  background-color: #0b3c85;
}

/* Form Container Styles */
.form-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  color: #0d47a1;
  font-weight: 500;
  margin-bottom: 25px;
  font-size: 20px;
}

.title-note {
  font-size: 14px;
  color: #555;
  font-weight: 400;
}

/* Section Styles */
.form-section {
  margin-bottom: 20px;
}



/* Grid Layout for Fields */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1; /* Makes the address field span all columns */
}

/* Form Elements Styles */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.mandatory {
  color: red;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box; /* Important for padding and width calculation */
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0d47a1;
  box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.2);
}

.pin-search {
  font-size: 12px;
  color: #007bff;
  text-decoration: none;
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

/* OTP Section Specific Styles */
.otp-section {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.otp-section .form-group {
  flex-grow: 1; /* Allows the input to take available space */
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }
}

.ticker-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 15s linear infinite;
}
@keyframes tickerScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.page-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- Main Content Container --- */
.form-container {
  /* max-width: 900px; */
  margin: 2rem auto;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border-radius: 12px;
}

/* --- Section Styling --- */
.instruction-block {
  border: 1px solid #0d47a1; /* Blue border */
  border-radius: 12px;
}
.section-header {
  background-color: #0c4a6e;
  border-radius: 11px;
  color: white;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 1.1rem;
}
.section-body {
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Custom List Styling --- */
.custom-list {
  list-style: none;
  padding-left: 0;
}
.custom-list > li {
  position: relative;
  padding-left: 35px; /* Space for the icon */
  margin-bottom: 1.25rem;
}
.custom-list > li:last-child {
  margin-bottom: 0;
}
.custom-list > li::before {
  position: absolute;
  left: 0;
  top: 4px;
  font-family: "bootstrap-icons";
  color: #0c4a6e;
  font-size: 1.2rem;
}

/* Specific icons for each list */
.procedure-list > li::before {
  content: "\f435"; /* Keyboard icon */
}
.instructions-list > li::before {
  content: "\f283"; /* Hand-index icon */
}

/* Styling for the nested red-box list */
.nested-list {
  list-style: none;
  padding-left: 15px;
  margin-top: 10px;
  counter-reset: sublist-counter;
}
.nested-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.75rem;
}
.nested-list li::before {
  counter-increment: sublist-counter;
  content: counter(sublist-counter);
  position: absolute;
  left: 0;
  top: 2px;
  background-color: #dc3545; /* Red background */
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}
.mandatory {
  color: red;
  margin-left: 2px;
}

/* Header Styles */
.page-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Form Container & Section Styles */
.form-container {
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-weight: 500;
  color: #0d47a1;
}

.form-title .title-note {
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
}



/* Align labels to the right on medium screens and up */
.col-form-label {
  text-align: left;
}

@media screen and (min-width: 768px) {
  .col-form-label {
    text-align: left;
    padding-right: 0;
  }
}

/* Form Element Focus */
.form-control:focus,
.form-select:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25);
}

/* Custom Button */
.primary-btn {
  background-color: #0d47a1;
  color: white;
  transition: background-color 0.3s;
}

.primary-btn:hover {
  background-color: #0d47a1;
}

.mandatory {
  color: #dc3545;
  /* Bootstrap's standard red */
  font-weight: bold;
  margin-left: 2px;
}


/* === Key Layout & Styling Fixes === */

/* 1. Vertically center-align labels with their inputs */
.section-body .row > [class^="col-"] > .row {
  align-items: center;
  min-height: 38px;
  /* Ensures empty rows also have height */
}

/* 2. Better styling for form labels */
.col-form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #343a40;
  padding-top: 0;
  padding-bottom: 0;
}

/* 3. Cleaner look for inputs and select boxes */
.form-control,
.form-select {
  font-size: 0.9rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.2);
}

/* 4. Adjust label alignment on desktop for a cleaner look */
@media screen and (min-width: 768px) {
  .col-form-label {
    text-align: left;
    padding-right: 0.75rem;
    /* Creates a clean gap between label and input */
  }
}

/* 5. Improve spacing on mobile screens */
@media screen and (max-width: 767px) {
  .section-body {
    padding: 1.5rem 1rem;
    /* Reduce padding on mobile */
  }

  /* When labels stack on top of inputs on mobile, add a little space */
  .col-form-label {
    text-align: left;
    margin-bottom: 0.35rem;
  }
}
.text-blue-900,
.text-blue-800, .text-blue-600 {
  color: #106ea5 !important;
}
.bg-blue-600 {
  background-color: #106ea5 !important;
}
.primary-btn {
  background-color: #0c4a6e;
}
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* This makes main content stretch and push footer down */
}
@media print {
  .no-print {
    display: none !important;
  }
}
.h-16 {
  height: 8rem !important;
  position: relative;
  margin: -26px -35px -55px -44px;
}
