body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111827;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px 6px;
}

.brand-logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.hospital-logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-left: auto;
}

.app-shell {
  min-height: calc(100vh - 78px);
  padding: 8px 14px 14px;
}

.page-frame,
.main-panel {
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.welcome-page {
  min-height: 100vh;
  padding: 10px;
}

.page-frame {
  padding: 62px 60px;
  min-height: calc(100vh - 20px);
  border-color: #bfc5cf;
}

.welcome-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #1f2937;
}

.welcome-subtitle {
  font-size: 25px;
  margin-bottom: 32px;
}

.welcome-instruction {
  font-size: 20px;
  margin-bottom: 50px;
}

.visit-card {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 36px 24px 58px;
  min-height: 582px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.visit-icon {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 72px;
  margin: 0 auto 34px;
  background: #fff;
  border: 4px solid currentColor;
}

.visit-svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.siren-svg {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 26px;
}

.visit-copy {
  font-size: 20px;
  line-height: 1.45;
  max-width: 300px;
  margin: 0 auto;
}

.visit-button {
  width: 100%;
  min-height: 58px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.welcome-body .row {
  --bs-gutter-x: 36px;
}

.welcome-body .visit-card .bg-green {
  background: #fff !important;
  color: #078b45;
}

.welcome-body .visit-card .bg-blue {
  background: #fff !important;
  color: #005bd3;
}

.welcome-body .visit-card .bg-red {
  background: #fff !important;
  color: #e50914;
}

.btn-welcome-outline.btn-green,
.btn-welcome-outline.btn-green:hover {
  background: #fff;
  border: 2px solid #078b45;
  color: #078b45;
}

.btn-welcome-outline.btn-blue,
.btn-welcome-outline.btn-blue:hover {
  background: #fff;
  border: 2px solid #005bd3;
  color: #005bd3;
}

.btn-welcome-outline.btn-red,
.btn-welcome-outline.btn-red:hover {
  background: #fff;
  border: 2px solid #e50914;
  color: #e50914;
}

.green {
  color: #078b45;
}

.blue {
  color: #005bd3;
}

.red {
  color: #e50914;
}

.bg-green {
  background: #078b45;
}

.bg-blue {
  background: #005bd3;
}

.bg-red {
  background: #e50914;
}

.btn-green,
.btn-green:hover {
  background: #078b45;
  border-color: #078b45;
  color: #fff;
}

.btn-blue,
.btn-blue:hover {
  background: #005bd3;
  border-color: #005bd3;
  color: #fff;
}

.btn-red,
.btn-red:hover {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.sidebar-card {
  border: 1.5px solid #ef0000;
  border-radius: 8px;
  padding: 34px 18px 20px;
  text-align: center;
}

.emergency-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #e50914;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 48px;
  margin: 0 auto 28px;
}

.sidebar-title {
  font-size: 30px;
  font-weight: 800;
  color: #e50914;
  margin-bottom: 20px;
}

.sidebar-copy {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 34px;
}

.active-button {
  min-height: 46px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #e50914;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.main-panel {
  padding: 28px 38px;
  min-height: calc(100vh - 100px);
}

.content-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 700;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #9ca3af;
  color: #111827;
  background: #f3f4f6;
  font-weight: 700;
}

.step-item.active .step-circle {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.progress-track {
  height: 5px;
  background: #d6d6d6;
  border-radius: 999px;
  margin-top: 20px;
  overflow: hidden;
}

.progress-fill-half {
  width: 50%;
  height: 100%;
  background: #e50914;
}

.progress-fill-step-two {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #d6d6d6 0%, #d6d6d6 50%, #e50914 50%, #e50914 100%);
}

.progress-fill-done {
  width: 100%;
  height: 100%;
  background: #e50914;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: #bfc5cf;
}

.form-label {
  font-weight: 700;
  margin-bottom: 9px;
}

.search-input {
  font-size: 21px;
}

.search-addon {
  border-color: #bfc5cf;
  font-size: 28px;
  background: white;
  padding-left: 20px;
  padding-right: 18px;
}

.results-table {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.results-table .table {
  font-size: 20px;
  margin-bottom: 0;
}

.results-table th {
  font-weight: 500;
  padding: 18px 24px;
}

.results-table td {
  padding: 20px 24px;
  vertical-align: middle;
}

.fake-select {
  border: 1px solid #bfc5cf;
  border-radius: 6px;
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #374151;
}

.arrival-menu {
  border: 1px solid #bfc5cf;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.arrival-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.arrival-option:last-child {
  border-bottom: 0;
}

.arrival-option i {
  width: 28px;
  font-size: 26px;
  color: #20242b;
}

.arrival-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.arrival-subtitle {
  font-size: 14px;
}

.details-card,
.form-section,
.summary-card,
.next-step-card {
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.details-card {
  padding: 20px 22px 12px;
}

.details-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 22px;
}

.form-section {
  padding: 26px 30px;
  margin-bottom: 26px;
}

textarea.form-control {
  min-height: 86px;
  resize: vertical;
}

.step-note {
  text-align: right;
  color: #374151;
  font-size: 16px;
  margin: 30px 0 2px;
}

.help-text {
  color: #4b5563;
  font-size: 16px;
  margin-top: 14px;
}

.footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  margin-top: 34px;
}

.back-button {
  min-width: 120px;
  min-height: 50px;
  border-color: #bfc5cf;
  font-size: 17px;
  font-weight: 600;
}

.primary-action {
  min-width: 220px;
  min-height: 50px;
  background: #e50914;
  color: #fff;
  border: 0;
  font-size: 17px;
  font-weight: 700;
}

.primary-action:hover {
  background: #c90812;
  color: #fff;
}

.success-icon {
  width: 104px;
  height: 104px;
  border: 6px solid #2f9e44;
  border-radius: 50%;
  color: #2f9e44;
  display: grid;
  place-items: center;
  font-size: 58px;
  margin: 52px auto 28px;
}

.summary-card {
  max-width: 680px;
  margin: 36px auto 24px;
  padding: 28px;
}

.summary-item {
  display: flex;
  gap: 18px;
}

.summary-item i {
  width: 28px;
  color: #6b7280;
  font-size: 24px;
}

.next-step-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 22px;
  background: #f1fbf4;
  border-color: #b8e4c4;
}

@media (max-width: 991px) {
  .brand-name {
    font-size: 42px;
  }

  .welcome-page {
    padding: 8px 20px 28px;
  }

  .page-frame,
  .main-panel {
    padding: 24px 18px;
  }

  .visit-card {
    min-height: 430px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .back-button,
  .primary-action {
    width: 100%;
  }
}

/* Walk-in / arrival flat form style (gray fill, bottom border only) */
.arrival-form-flat {
  padding: 8px 4px 24px;
}

.arrival-form-title {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 22px;
}

.flat-input,
.flat-input:focus {
  background: #f5f6f8;
  border: 0;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
}

.flat-input::placeholder {
  color: #9ca3af;
}

.arrival-option {
  cursor: pointer;
}

.arrival-option:hover,
.arrival-option.selected {
  background: #f8fafc;
}

.arrival-option.selected {
  border-left: 3px solid #e50914;
}

/* Register New Patient button — no hover animation */
.register-btn,
.register-btn:hover,
.register-btn:focus,
.register-btn:active {
  background-color: transparent;
  color: #212529;
  border-color: #dee2e6;
  box-shadow: none;
  transform: none;
  transition: none;
  text-decoration: none;
}

/* Mode of Arrival dropdown */
.arrival-dropdown { position: relative; }
.arrival-dropdown .fake-select {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.arrival-dropdown .fake-select::after { display: none; }
.arrival-dropdown .dropdown-menu.arrival-menu {
  display: none;
  padding: 8px;
  border-radius: 12px;
  margin-top: 6px;
}
.arrival-dropdown .dropdown-menu.arrival-menu.show { display: block; }
.arrival-dropdown .dropdown-item.arrival-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  white-space: normal;
}
.arrival-dropdown .dropdown-item.arrival-option:hover,
.arrival-dropdown .dropdown-item.arrival-option:focus {
  background: #f3f4f6;
}
.arrival-dropdown .dropdown-item.arrival-option i { font-size: 1.5rem; }
