:root {
  --la-primary: #003A7A;
  --la-primary-emphasis: #003A7A;
  --la-secondary: #E6A700;
  --la-success: #6A9A3F;
  --la-light: #EDE9FE;

  --la-primary-rgb: 0, 86, 179;
  --la-secondary-rgb: 230, 167, 0;
  --la-success-rgb: 106, 154, 63;
  --la-primary-subtle-rbg: 0, 58, 122;
  --la-body: #4a4a4a;
  --la-bg-warning: rgb(255 250 237) !important;
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI";

  --bs-primary: var(--la-primary) !important;
  --bs-primary-rgb: var(--la-primary-rgb) !important;
  --bs-btn-active-bg: #fff !important;
  --bs-secondary: var(--la-secondary) !important;
  --bs-secondary-rgb: var(--la-secondary-rgb) !important;
  --bs-success-rgb: var(--la-success-rgb) !important;
  --bs-body-color: var(--la-body) !important;
  --bs-primary-text-emphasis: #003a7a;
  --bs-body-font-family: var(--default-font);
  --bs-body-color: var(--la-body);
  --bs-warning-rgb: var(--la-secondary-rgb);
  --bs-success-bg-subtle: #d1fadf;
  --bs-danger-bg-subtle: #FEE4E2;
  --bs-purple: #7C3AED;
  --bs-light-rgb: 246, 246, 246 !important;
  --bs-primary-text-emphasis: var(--la-primary-emphasis) !important;
}

.hero-sectionbg {
  background: #F3F4F6;
}

.ml-15 {
  margin-left: 15px;
}

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

.font-size-12 {
  font-size: 12px;
}

.cursor-pointer {
  cursor: pointer;
}

.padding-top-120 {
  padding-top: 120px;
}

.login-img {
  max-height: 500px;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  --bs-btn-border-color: var(--bs-primary) !important;
}

.btn-info,
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background-color: #3B82F6 !important;
  --bs-btn-border-color: #3B82F6 !important;
  color: #fff;
}

.btn-success {
  background-color: var(--la-success) !important;
  --bs-btn-border-color: var(--la-success) !important;
}

.btn-light {
  background-color: var(--la-light) !important;
  --bs-btn-border-color: var(--la-light) !important;
  color: var(--bs-purple)
}

.btn-outline-primary {
  color: var(--bs-primary) !important;
  border: 2px solid var(--bs-primary) !important;
  border-radius: 4px !important;
}

.btn.btn-outline-primary:active,
.btn-outline-primary.show,
.btn.btn-outline-primary:first-child:active,
.btn.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--bs-primary);
}

.btn-secondary {
  background-color: var(--bs-secondary) !important;
  --bs-btn-border-color: var(--bs-secondary) !important;
  color: var(--bs-primary) !important;
  font-weight: 600;
}

.bg-warning {
  background-color: var(--la-bg-warning) !important;
}

.bg-light-gradient {
  background: linear-gradient(180deg, #F7F6FB 0%, #FFFFFF 100%);
}

.bg-light-subtle-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F6FB 100%);
}

ol,
ul {
  padding-left: 1.5rem;
}

.sticky-header {
  background-color: white;
  box-shadow: 0px 8px 8px -6px rgba(0, 0, 0, .2);
}

.private-main {
  margin-top: 100px;
}

.dropdown-toggle::after {
  display: none;
}

.blog-section {
  background: url("/_images/blog-background.png") no-repeat center/cover;
}

.otp-section-bg {
  background: none;
}

.otp-bg-overlay {
  clip-path: polygon(0 0, 100% 0, 100% 67%, 0% 82%);
}

/* susbcriber register*/
.create .form-check-input:checked {
  background-color: #6A9A3F;
  border-color: #6A9A3F;
  accent-color: #6A9A3F;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.step-indicator .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e0e0e0;
  color: #000;
  font-weight: bold;
  z-index: 2;
}

.step-indicator .step-circle.active {
  background-color: var(--bs-primary-text-emphasis);
  color: #fff;
}

.step-indicator .step-label {
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
  white-space: nowrap;
}

.step-indicator .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-indicator .step-item:first-child {
  align-items: flex-start;
}

.step-indicator .step-item:last-child {
  align-items: flex-end;
}

.step-indicator .line {
  position: absolute;
  top: 20px;
  height: 2px;
  background-color: #e0e0e0;
}

.step-indicator .line.line-1 {
  left: 40px;
  right: 50%;
  margin-right: -20px;
}

.step-indicator .line.line-2 {
  left: 50%;
  right: 40px;
  margin-left: -20px;
}

.step-indicator .line.active {
  background-color: var(--bs-primary-text-emphasis);
}

.county-select {
  height: auto;
  min-height: 200px;
}

.select2-container--default .select2-search--inline .select2-search__field {
  margin-top: 10px !important;
  margin-left: 10px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e4e4e475;
  border: none;
  padding-left: 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  right: 0 !important;
  left: auto !important;
  /* instead of 'none' */
  border-right: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding-right: 18px;
}

.selected-counties {
  font-size: 0.875rem;
  color: #666;
}

.state-county-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

/* Custom styles for county select */
.county-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

.county-option:hover {
  background-color: #f8f9fa;
}

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

.county-option.selected {
  background-color: #e9ecef;
}



.county-dropdown {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  display: none;
  position: absolute;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.county-dropdown.show {
  display: block;
}

.county-select-display {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
}

.selected-tag {
  background-color: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.selected-tag .remove {
  cursor: pointer;
  color: #666;
}

.count-selected {
  background-color: var(--bs-primary-text-emphasis);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.count-selected .remove {
  cursor: pointer;
  color: white;
}

.county-select-container {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.select-all-section {
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  cursor: pointer;
}

.select-all-section:hover {
  background-color: #e9ecef;
}

/* In public/css/subscribe.css */
.state-select-display {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: 400px;
  overflow: hidden;
}

.property-type-item .checkmark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #198754;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #198754;
}

.state-county-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.state-county-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Tab styles */
.alert-tabs {
  display: inline-flex;
  border: 2px solid var(--bs-primary-text-emphasis);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.alert-tab {
  padding: 12px 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--bs-primary-text-emphasis);
  font-weight: 500;
}

.alert-tab.active {
  background: var(--bs-primary-text-emphasis);
  color: white;
}

.tab-content.active {
  display: block;
}

.tab-section {
  text-align: center;
  margin-bottom: 2rem;
}

.tab-helper-text {
  color: #6c757d;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.state-select-container {
  position: relative;
  margin-bottom: 1rem;
}

.state-select-display {
  width: 100%;
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  color: #6c757d;
  font-size: 1rem;
}

.state-select-display::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #6c757d;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  z-index: 1000;
  padding: 8px 0;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-menu.show {
  display: block;
  border: 1px solid #0056B3;
  position: absolute;
}

.state-option {
  padding: 8px 16px;
  cursor: pointer;
  color: #212529;
}

.state-option:hover {
  background-color: #f8f9fa;
}

.state-tag {
  background-color: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #212529;
}

.state-tag .remove {
  cursor: pointer;
  color: #6c757d;
  font-weight: bold;
}



.county-select-display::after {
  content: "";
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #6c757d;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.county-count-badge {
  background-color: #198754;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.5rem;
}

.county-count-badge .remove {
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.select-all-county {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-all-county input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
}

.state-county-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.state-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.state-name {
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
}

.selected-counties {
  color: #6c757d;
  font-size: 0.875rem;
}

.county-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.county-option:hover {
  background-color: #f8f9fa;
}

.county-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

.checkmark {
  color: #198754;
  margin-left: auto;
  visibility: hidden;
}

.county-option.selected .checkmark {
  visibility: visible;
}

/* Success screen styles */
.success-screen {
  text-align: center;
  padding: 2rem;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  overflow-y: auto;
}

.success-screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-screen .content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.success-screen .success-icon {
  width: 150px;
  margin-bottom: 1rem;
}

.success-screen h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.success-screen p {
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-screen .contact-info {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 2rem;
}

.success-screen .contact-info a {
  color: inherit;
  text-decoration: underline;
}

.success-screen .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* login page image boder */
body {
  background-color: #f5f5fb;
  margin: 0;
  font-family: var(--default-font);
}

.main-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: #0d1b3b;
  color: white;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  height: 100vh;
}

.sidebar-logo {
  padding: 15px 0;
  background-color: #0d1b3b;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sidebar-menu {
  overflow-y: auto;
  flex: 1;
  padding: 10px;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: #0d1b3b;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #234;
  border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: #345;
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar a.active {
  background-color: #0156B3;
  border-radius: 5px;
}

.sidebar a:hover {
  background-color: #0156B3;
  border-radius: 5px;
}

.submenu {
  display: none;
  background-color: #162850;
}

.submenu a {
  padding-left: 40px;
}

.submenu.show {
  display: block;
}

.has-submenu::after {
  content: '\F285';
  font-family: 'bootstrap-icons';
  font-size: 12px;
  margin-left: 10px;
  transition: transform 0.3s;
}

.has-submenu.open::after {
  transform: rotate(90deg);
}

.sidebar-collapsed {
  width: 0 !important;
  overflow: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease-in-out;
}

.topbar {
  background-color: white;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e5e5e5;
}

.toggle-btn {
  font-size: 24px;
  cursor: pointer;
}

.page-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.content-page {
  display: none;
}

.content-page.active {
  display: block;
}

.menu-item.active {
  background-color: #0156B3;
}

.table> :not(caption)>*>* {
  padding: 1rem;
}

.form-check.form-switch {
  margin-bottom: 0;
}

/* .table-responsive {
  min-height: 400px;
  max-width:1400px;
} */

.btn-light {
  background-color: white;
  border: 1px solid #dee2e6;
}

.input-group .form-control:focus {
  border-color: #dee2e6;
  box-shadow: none;
}

.input-group .input-group-text {
  color: #6c757d;
}

.table-primary {
  --bs-table-bg: #3B82F6 !important;
  --bs-table-color: #fff !important;
  background-color: var(--bs-table-bg) !important;
  color: var(--bs-table-color) !important;
}

.form-check.form-switch {
  margin-bottom: 0;
}

.flex-3 {
  flex: 3;
}

.flex-1 {
  flex: 1;
}

.single-line {
  white-space: nowrap;
}

.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
}

.max-height-400 {
  max-height: 400px;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #dee2e6 !important;
  border-radius: .375rem;
}

.select2-container .select2-selection--multiple {
  min-height: 38px
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: .3rem;
}

.file {
  visibility: hidden;
  position: absolute;
}

.ck.ck-editor {
  width: 99% !important;
  box-sizing: border-box;
}

.img-md-lg-height {
  height: 121px !important;
  object-fit: cover;
}

/* verification page */
.centered-height-mt {
  height: calc(100vh - 310px);
  margin-top: 120px;
}

/* blog css */
.post-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.post-content {
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 50px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content p,
.post-content span,
.post-content div {
  font-size: 1.05rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5rem !important;
  font-weight: normal !important;
}

.carousel-item img {
  width: 100%;
  height: 250px;
  max-height: 250px;
  object-fit: cover;
  margin: 0 auto;
}

.county-scroll {
  max-height: 100px;
  overflow-y: auto;
  padding: 5px;
}

.blast-color {
  color: #F4511E;
}

.blog-img-height {
  height: 250px;
}

.file-hidden-input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;

}

@media (min-width: 768px) {
  .hero-sectionbg {
    background: url("/_images/hero-background.png") no-repeat center/cover;
  }

  .content-height {
    height: calc(100vh - 72px);
  }

  .ratio-21x9 {
    width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .text-center-sm {
    text-align: center;
  }
}

@media (min-width: 992px) {
  .otp-section-bg {
    background: url('/_images/logbg.jpg') no-repeat center/cover;
  }
}

@media (max-width: 576px) {
  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-backdrop {
    content: '';
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .sidebar-backdrop.show {
    display: block;
  }
}

.hidden { display: none; }

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--la-light);
    animation: spin 1s ease-in-out infinite;
}

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

#payment-message.error {
    background-color: var(--la-bg-warning);
    color:var(--la-bg-warning);
    border: 1px solid var(--la-bg-warning)
}

#payment-message.success {
    background-color: var(--la-light);
    color: var(--la-success);
    border: 1px solid var(--la-success-rgb);
}