/* General */
* {
  margin: 0px;
  margin-top: 5px;
  padding: 0;
  box-sizing: border-box;
}

/* Font + Body */
body {
  font-family: 'PT Sans', sans-serif;
  color: #222B40;
  background: #fff;
}

.container-all {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Header */
.site-header .container-all {
  max-width: 1024px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 100px;
  margin-bottom: 10px;
}
.logo h1 {
  font-size: 24px;
  white-space: nowrap;
}

.logo .ai {
  color: #1A4E87;
}

h4, h5 {
    font-family: 'Source Sans 3', sans-serif;
    color: #1A4E87;
}

/* Menu Styles */
.main-nav ul {
  list-style: none;
  padding: 0px;
  margin: 0;
  display: flex;
  gap: 5px;
}

a.menu {
  text-decoration: none;
}

/* Menu Dashboard*/
.nav-item a img {
  margin-bottom: 8px;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  padding: 10px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 1.0625rem;
  text-transform: uppercase;
  color: #1A4E87;
  border-radius: 1px;
  transition: background 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.nav-item a:hover,
.nav-item.active a {
  background-color: #1A4E87;
  color: #fff;
}

.nav-item a:hover img,
.nav-item.active a img {
  filter: brightness(0) invert(1);
}

/* Menu Search Select Review */
.nav-index-item a img {
  margin-bottom: 15px;
}

.nav-index-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  padding: 10px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: #FFFFFF;
  border-radius: 1px;
  transition: background 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  background-color: #1A4E87;
  margin-bottom: 30px;
}
.nav-index-item a:hover,
.nav-index-item.active a {
  background-color: #222B40;
  color: #fff;
}

.nav-index-item a:hover img,
.nav-index-item.active a img {
  filter: brightness(0) invert(1);
}


/* Responsive: Stack Menu */
@media (max-width: 768px) {
   .site-header .container-all {
    flex-direction: column;
    align-items: stretch;
  }

.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
}

.nav-item {
    width: 100%;
}

.nav-item a {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 3px 5px 10px 14px;
    gap: 12px;
    box-sizing: border-box;
}

.nav-item a img {
    margin-bottom: 0;
    height: 20px;
    width: 20px;
}

.nav-item a span {
    font-size: 16px;
    text-align: left;
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-index-item {
    width: 100%;
    margin-bottom: 1px;
  }

  .nav-index-item a {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 20px 15px;
    gap: 15px;
  }

  .nav-index-item a img {
    height: 24px;
    width: 24px;
    margin-bottom: 0;
  }

  .nav-index-item a span {
    font-size: 1rem;
    text-align: left;
  }
}

/* Header */
}
.blue-header {
  background-color: #1A4E87;
  color: #fff;
  padding: 20px 20px 25px 20px;
}

.blue-header h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.75rem;  /* ≈ 28pt */
  font-weight: 700;
  margin: 0 0 2px;
  text-transform: uppercase;
  text-align: center;
}

.blue-header p {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem; /* ≈ 16pt */
  margin: 0;
  text-align: center;
}

/* === CONTENT SECTIONS === */
.content-block {
  padding: 10px 0px 0px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 40px;
}

.content-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.content-text h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.2081rem; /* ≈ 18pt */
  font-weight: 700;
  color: #1A4E87;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.content-text p {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem; 
  color: #222B40;
  margin: 0;
  line-height: 1.7;
}

.content-text-space {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem; 
  color: #222B40;
  margin: 0;
  line-height: 1.7;
    margin-top: 20px;
}

/* Responsive content */
@media (max-width: 768px) {
  .content-block {
    flex-direction: row;
    align-items: flex-start;
  }

  .content-icon {
    margin-bottom: 10px;
  }
}

/* Section divider */
hr.divider{
    border: 1px solid #BDCCD4;
}

/* Card Styles */
.card-container {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1024px;
  margin-bottom: 30px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-heading img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-bottom: 5px;
}

.card-heading h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.2081rem;
  font-weight: 700;
  color: #1A4E87;
  margin: 0;
  text-transform: uppercase;
}

.card-container p {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  color: #222B40;
  margin: 0 0 16px;
  line-height: 1.5;
}

.card-container-nospace {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1024px;
  margin-bottom: 30px;
}

.card-container-nospace p {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  color: #222B40;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Card for Search Select Review */
.card-index-container {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1800px;
  margin-bottom: 30px;
}

.card-index-container p {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  color: #222B40;
  margin: 0 0 16px;
  line-height: 1.5;
}

.card-container-saved {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 720px;
  margin-bottom: 30px;
}

.card-container-saved p {
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  color: #222B40;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Columns */
.card-row .container-all {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Two equal columns */
.card-column {
  flex: 1 1 48%;
}

/* Responsive stack for columns */
@media (max-width: 768px) {
  .card-column {
    flex: 1 1 100%;
  }
}

/* Ask Question Card */
.ask-question-card {
  background-color: #f2fafa;
  border: 1px solid #cfd8dc;
  padding: 20px;
}

.question-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.question-image img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 0px solid #1A4E87;
}

/* Ask Question Form + Heading */
.question-form {
  flex: 1;
}

.question-form h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.45rem;
  color: #1A4E87;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.question-form form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.question-form label {
  font-family: 'PT Sans', sans-serif;
  font-size: 0.9rem;
  color: #222B40;
  font-weight: 700;
}

.question-form input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #CCCCCC;
  outline: none;
}

.question-form button {
  background-color: #1A4E87;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.question-form button:hover {
  background-color: #1C75BD;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .question-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .question-form form {
    flex-direction: column;
    align-items: stretch;
  }

  .question-form label,
  .question-form input,
  .question-form button {
    width: 100%;
  }
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  color: #222B40;
  margin: 15px 0px 30px 0px;
}

thead {
  background-color: #D3E3EA;
}

thead th {
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #D3E3EA;
}

thead th:first-child {
  border-top-left-radius: 5px;
}

tbody tr:nth-child(even) {
  background-color: #F7FBFC;
}

tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #D3E3EA;
  vertical-align: top;
}

tbody tr:hover {
  background-color: #F4F4F4;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Map + legend layout */
.map-container {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 30px;
}

@media (max-width: 991px) {
    .row .col-md-9, .row .col-md-3 { flex: 100%; max-width: 100%; }
    #map { height: 360px !important; }
}

/* MAP CARD */
.map-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.map-area {
  flex: 3;
  min-width: 0;
}

.legend-area {
  flex: 1;
  min-width: 0;
}

/* Map + Legend Display*/
.map-placeholder {
  background-color: #FFFFFF;
  border-radius: 6px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  box-shadow: 0 1.5px 8px rgba(60,60,90,0.07);
}

.legend-placeholder {
  background-color: #FFFFFF;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .map-legend-row {
    flex-direction: column;
  }

  .map-area,
  .legend-area {
    flex: 1 1 100%;
  }
}

/* Custom cards for risk section */
.risk-card .card-header {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.18em;
    font-weight: 600;
}
    
.risk-card .card-body {
    padding: 1.1rem 0.6rem;
}

/* 4-column layout */
.four-col-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-column-4 {
  flex: 1 1 22%;
  min-width: 200px;
}

.center-text {
  text-align: center;
}

.center-text h5{
  font-family: 'PT Sans', sans-serif;
  font-size: 1.18em;
  font-weight: 600;
}
    
/* Custom gauge labels */
.gauge-label {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.17em;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #23396f;
}

/* INDEX PAGE */

#map { height: 400px; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

/* Input fields */
.form-control {
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 80%;
  font-family: 'PT Sans', sans-serif;
  margin-right: 10px;
}

/* Form row*/
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Checkboxes */
.input-checkbox {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #BDCCD4;
  border-radius: 2px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 5px;
}

.input-checkbox:checked::after {
  content: '\2713';
  position: absolute;
  font-size: 14px;
  top: -2px;
  left: 2px;
  color: #1A4E87;
}

.checkbox-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 0.95rem;
  margin-left: 5px;
  vertical-align: middle;
  color: #222B40;
  margin-bottom: 10px;
}

/* Buttons */
.button-generic {
  padding: 3px 14px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  transition: background 0.3s;
  margin-right: 8px;
  text-decoration: none;
}

.button-generic-blue {
  background-color: #1C75BD;
  color: #fff;
}

.button-generic-blue:hover {
  background-color: #1A4E87;
}

.button-generic-green {
  background-color: #0A9E37;
  color: #fff;
}

.button-generic-green:hover {
  background-color: #10872F;
}

/* Step 2 column layout */
.step2-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.step2-left {
  flex: 3;
  min-width: 300px;
}

.step2-right {
  flex: 2;
  min-width: 300px;
}

@media (max-width: 768px) {
  .step2-row {
    flex-direction: column;
  }

  .step2-left,
  .step2-right {
    flex: 1 1 100%;
  }

  .form-control {
    width: 100%;
    margin-bottom: 10px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Buttons for Raster Overlay */
.button-raster {
  padding: 8px 17px 9px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  transition: background 0.3s;
  border: 2px solid;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  justify-content: center;
}

.button-group.row-1 {
  max-width: 100%;
  margin-top: 10px;
}

.button-group.row-2 {
  flex-wrap: wrap;
  max-width: 100%;
}

.button-raster-dark {
  background-color: #222B40;
  color: #fff;
}

.button-raster-dark:hover {
  color: #222B40;
  border-color: #222B40;
  background-color: #fff;
}

.button-raster-vegetation {
  background-color: #39B54A;
  color: #fff;
}

.button-raster-vegetation:hover {
  color: #39B54A;
  border-color: #39B54A;
  background-color: #fff;
}

.button-raster-water {
  background-color: #29ABE2;
  color: #fff;
}

.button-raster-water:hover {
  color: #29ABE2;
  border-color: #29ABE2;
  background-color: #fff;
}

.button-raster-soil {
  background-color: #662D91;
  color: #fff;
}

.button-raster-soil:hover {
  color: #662D91;
  border-color: #662D91;
  background-color: #fff;
}

.button-raster-chloro {
  background-color: #F7931E;
  color: #fff;
}

.button-raster-chloro:hover {
  color: #F7931E;
  border-color: #F7931E;
  background-color: #fff;
}

.button-raster-rgb {
  background-color: #C1272D;
  color: #fff;
}

.button-raster-rgb:hover {
  color: #C1272D;
  border-color: #C1272D;
  background-color: #fff;
}

.button-raster-land {
  background-color: #D60FC4;
  color: #fff;
}

.button-raster-land:hover {
  color: #D60FC4;
  border-color: #D60FC4;
  background-color: #fff;
}

.button-raster-clear {
  background-color: #808080;
  color: #fff;
}

.button-raster-clear:hover {
  color: #808080;
  border-color: #808080;
  background-color: #fff;
}

.space-raster {
    margin-bottom: 5px;
}

/* RISK COLUMNS */
.container-risk {
  max-width: 1024px;
  margin: 0 auto;
}
.centered-heading {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-heading.centered-heading img {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
}

.risk-badge {
  display: inline-block;
  padding: 6px 20px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 10px;
  width: 90%;
}

/* Risk badge variations */
.risk-badge.veryhigh {
  background-color: #C1272D;
  color: #fff;
}
.risk-badge.high {
  background-color: #F9414F;
  color: #fff;
}
.risk-badge.medium {
  background-color: #EFC203;
  color: #4a4300;
}
.risk-badge.low {
  background-color: #0A9E37;
  color: #fff;
}
.risk-badge.verylow {
  background-color: #7AC943;
  color: #fff;
}

/* GRAPHS */
.chart-wrapper {
  max-width: 1000px;
  margin: 20px auto;
  text-align: center;
}

.chart-wrapper-pie {
  position: relative;
  max-width: 400px;  /* Limit the maximum size */
  max-height: 400px; /* Limit the maximum size */
  aspect-ratio: 1 / 1; /* Force a square shape */
  margin: 0 auto;
}

/* SAVED FARM PAGE */
.card-heading-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-heading-saved h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #10872F;
  margin: 0;
  text-transform: uppercase;
}

.card-heading-saved img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.centered-heading-saved {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.centered-heading-saved h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #10872F;
  margin: 20px;
  text-transform: uppercase;
}

.centered-heading-saved p {
  font-family: 'PT Sans', sans-serif;
  font-size: 0.938rem;
  font-weight: 700;
  margin: 20px;
  color: #666666;
}

.centered-heading-saved img {
  height: 30px;
  flex-shrink: 0;
}

.alert-saved {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #BDCCD4;
  padding: 10px;
  background-color: #F7FBFC;
  font-family: 'PT Sans', sans-serif;
  text-align: center;
  margin: 5px 0px 12px 0px;
}

.alert-buy {
  width: 100%;
  border-radius: 6px;
  border: 5px solid #BBEAC4;
  padding: 15px;
  background-color: #EAF9EB;
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
}

.button-green-buy {
  background-color: #0A9E37;
  color: #fff;
  padding: 10px 40px 10px 40px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 1.25rem;
  text-decoration: none;
}

.button-green-buy:hover {
  background-color: #10872F;
}

.saved-box > div:last-child {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.button-saved-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.button-saved-group.row-3 {
  flex-wrap: wrap;
  max-width: 100%;
}

.button-saved {
  flex: 1 1 calc(25% - 8px); /* Four buttons per row with spacing */
  min-width: 140px;
  padding: 8px 17px 9px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  transition: background 0.3s;
  border: 2px solid;
  text-decoration: none;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  line-height: 1.2;
}

.button-saved .button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding-bottom: 15px;
}

.button-saved-green {
  background-color: #0A9E37;
  color: #FFFFFF;
}

.button-saved-green:hover {
  color: #FFFFFF;
  background-color: #10872F;
}

.button-saved-outline {
  background-color: #FFFFFF;
  color: #10872F;
}

.button-saved-outline:hover {
  color: #10872F;
  border-color: #10872F;
  background-color: #EAF9EB;
}

.button-saved-back {
  background-color: #818181;
  color: #FFFFFF;
}

.button-saved-back:hover {
  color: #FFFFFF;
  background-color: #9e9e9e;
}

@media (max-width: 768px) {
  .button-saved {
    flex: 1 1 100%; /* Stack full-width */
  }
}

/* Drop-down menu */
.custom-drop-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-color: #fff;
  color: #333;
  padding: 5px 30px 5px 15px;
  font-size: 1rem;
  font-family: 'PT Sans', sans-serif;
  font-weight: 600;
  border: 2px solid #BDCCD4;
  border-radius: 5px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D'%23333'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M7%2010l5%205%205-5z'/%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  transition: border 0.3s;
}

.custom-drop-select:hover {
  border-color: #8AADBC;
}

.custom-drop-select:focus {
  outline: none;
  border-color: #8AADBC;
  box-shadow: 0 0 0 2px rgba(10, 158, 55, 0.2);
}

/* Buttons for Saved Farm */
.button-saved-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  justify-content: center;
}

.button-saved-group.row-3 {
  flex-wrap: wrap;
  max-width: 100%;
}

.button-saved {
  padding: 8px 17px 9px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  transition: background 0.3s;
  border: 2px solid;
  text-decoration: none;
  white-space: normal;  
  word-wrap: break-word;
  text-align: center;  
  line-height: 1.2; 
  width: 22%;
}

.button-saved-dark {
  background-color: #222B40;
  color: #fff;
}

.button-saved-dark:hover {
  color: #222B40;
  border-color: #222B40;
  background-color: #fff;
}

/* Buttons for Payment + Waitlist */
.card-container-sm {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  padding: 35px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  margin-top: 20px;
}

.button-sm {
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  transition: background 0.3s;
  margin-right: 8px;
  text-decoration: none;
  width: 100%;
}

.button-sm-blue {
  background-color: #1C75BD;
  color: #fff;
}

.button-sm-blue:hover {
  background-color: #1A4E87;
}

/* Waitlist */
.waitlist-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1A4E87;
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.waitlist-subtext {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'PT Sans', sans-serif;
  color: #444;
  text-align: center;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'PT Sans', sans-serif;
  color: #1A4E87;
}

.form-note {
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
}

.form-input {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'PT Sans', sans-serif;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #1C75BD;
  outline: none;
}

.form-captcha {
  margin: 10px 0;
}

.logo-heading {
  display: flex;
  flex-direction: column;  /* Stack logo above text */
  align-items: center;     /* Center horizontally */
  gap: 10px;
}

.logo-img {
  height: 80px;
  margin-bottom: 10px;
}


/* Responsive layout tweak */
@media (max-width: 600px) {
  .waitlist-form {
    padding: 0 15px;
  }
}

/* Blue Background */
.bg-blue {
  background-color:#E9F0F4;
}

/* Payment Container */
.card-container-pay {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #BDCCD4;
  padding: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

/* Charts */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

canvas {
    max-width: 100%;
    height: 300px !important;
}

.controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 8px 16px;
    background-color: #222B40;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1A4E87;
}

select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #222B40;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #222B40;
}

@media (max-width: 600px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

#opacity-slider {
  position: absolute;
  top: 150px;
  right: 10px;
  z-index: 1000;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
}

/* Login */
.site-header-login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.login-header-icon {
  height: 80px;
  width: auto;
}

.login-header-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1A4E87;
  text-align: center;
  flex-grow: 1;
}

.login-button {
  padding: 6px 24px;
  font-family: 'PT Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #1C75BD;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-button:hover {
  background-color: #1A4E87;
}

.button-group-spinner {
  display: inline-block;  /* force to always show in test */
  width: 22px;
  height: 22px;
  border: 3px solid #ccc;
  border-top: 3px solid #7ad151;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 12px;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 500px;
  margin: 0 auto;
}

.alert-blue {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #BDCCD4;
  padding: 10px;
  background-color: #F7FBFC;
  font-family: 'PT Sans', sans-serif;
  text-align: center;
  margin: 5px 0px 12px 0px;
}

.alert-green {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #BBEAC4;
  padding: 10px;
  background-color: #EAF9EB;
  font-family: 'PT Sans', sans-serif;
  text-align: center;
  margin: 5px 0px 12px 0px;
}

.forgot-password {
  font-family: 'PT Sans', sans-serif;
  font-size: 0.95rem;
  text-align: right;
  text-decoration: underline;
  color: #1A4E87;
  margin-bottom: 7px;
}

.forgot-password:hover {
  color: #1C75BD;
  background-color: #FFFFFF;
}

.small-text{
  font-family: 'PT Sans', sans-serif;
  font-size: 0.85rem;
  color: #7A7A7A;
}

.login-page-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
}

.login-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.progress-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 30px 0 22px 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a3a3a3;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.7;
}
.step.active {
  color: #1A4E87;
  font-weight: 700;
  opacity: 1;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e6effa;
  color: #1A4E87;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  border: 2px solid #e6effa;
}
.step.active .step-circle {
  background: #1A4E87;
  color: #fff;
  border: 2px solid #1A4E87;
}
.step-line {
  width: 44px;
  height: 2px;
  background: #e6effa;
  margin: 0 10px;
}
@media (max-width: 900px) {
  .progress-stepper { flex-direction: column; gap: 0.6rem; }
  .step-line { width: 3px; height: 30px; margin: 3px 0; }
}
.hidden { display: none !important; }