:root {
  --primary-font: "Outfit", sans-serif;
  --primary-color: #00796b;
  --accent-color: #00897b;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

nav {
  padding-top: env(safe-area-inset-top);
  background: var(--primary-color);
}

*,
body,
button,
input,
optgroup,
select,
textarea,
.popup {
  font-family: var(--primary-font);
  font-optical-sizing: auto;
}

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

main {
  flex: 1 0 auto;
  padding: 70px 0 150px 0px;
}

.w-full {
  width: 100%;
}

.brand-logo img {
  height: 40px;
  margin-top: 10px;
  opacity: 0.8;
}

.sidenav {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 165px;
  background-image: url("/assets/images/banners/banner4_o10.jpg");
  background-position: 30%;
  background-size: cover;
  z-index: 1001;
}

.modal.bottom-sheet {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.bottom-brand-icon {
  padding: 20px 32px 0px 32px;
}

.menu-item {
  margin-left: -16px;
}

.menu-item .footer-meta {
  margin-top: -5px;
  line-height: normal;
}

.menu-item .footer-meta small {
  display: block;
}

.mobile-fab-button-container > .fixed-action-btn {
  bottom: 70px;
  left: 0px;
  right: 0px;
  width: 10%;
  margin: 0px auto;
}

.mobile-fab-button-container > .fixed-action-btn.active ul {
  margin-left: 7px;
}

.header-container {
  position: fixed;
  background-image: url("/assets/images/patterns/multicolor-glows.png");
  width: 100%;
  top: 0px;
  z-index: 997;
}

.container-xl {
  padding: 0;
  width: 100%;
}

.mobile-footer {
  background-color: var(--primary-color);
  background-image: url("/assets/images/patterns/multicolor-glows.png");
  border: none;
  margin-top: -1px;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 996;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.mobile-footer-container {
  margin-top: 15px;
  color: #eee;
}

.mobile-footer-container a {
  color: inherit;
}

.mobile-footer-container .active {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 5px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: -5px;
}

.mobile-footer-container .active a {
  color: #fff;
  font-weight: bold;
}

.mobile-footer-container .item {
  padding: 5px;
}

.mobile-footer-container .container {
  margin-bottom: -5px;
  width: 96%;
}

.disease-popup {
  width: 320px;
  min-height: 150px;
}

.leaflet-popup-content {
  margin: 5px 15px 5px 0px !important;
}

.leaflet-popup-content hr {
  height: 2px;
  background-color: #ddd;
  border-width: 0;
}

.popup-title {
  font-size: 17px;
  /* font-weight: bold; */
  color: var(--primary-color);
}

.leaflet-popup-close-button {
  display: none !important;
}

.leaflet-container a.text-white {
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Hero section for diabetes app */
.rdnmp-hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.rdnmp-hero__title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.rdnmp-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.rdnmp-hero__cta-btn {
  background-color: var(--accent-color);
  font-size: 1rem;
  padding: 0 2rem;
}

/* keep button text readable on colored background */
.rdnmp-hero__cta-btn:hover,
.rdnmp-hero__cta-btn:focus {
  background-color: #00766b;
}

/* Card grid wrapper (optional, for spacing tweaks later) */
.rdnmp-card-grid {
  margin-bottom: 2rem;
}

/* Card with image – reusable pattern */
.card-with-img .card-image {
  padding: 0px;
}

.card-with-img__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-with-img__title {
  font-size: 1.2rem;
}

.card-with-img__text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-with-img__link {
  color: var(--accent-color);
}

/* Slightly larger text on bigger screens */
@media (min-width: 600px) {
  .rdnmp-hero__title {
    font-size: 2.4rem;
  }

  .rdnmp-hero__subtitle {
    font-size: 1.1rem;
  }
}

.assessment-body {
  font-size: 18px;
  text-align: justify;
  font-weight: 300;
}

.assessment-yn-row {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.assessment-yn-option {
  display: block;
  width: 100%;
  margin: 10px 0 0px 0;
}

.assessment-yn-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.assessment-yn-option span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #424242;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}

.assessment-yn-option [type="radio"]:not(:checked) + span,
.assessment-yn-option [type="radio"]:checked + span {
  line-height: 7.5px;
}

.assessment-yn-option input[type="radio"]:checked + span {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.assessment-yn-option span:hover {
  border-color: #b0bec5;
}

.self-efficacy-slider {
  margin-top: 0.5rem;
}

.confidence-scale-helper {
  font-size: 0.8rem;
  color: #757575;
  margin-top: 0.25rem;
}

.confidence-insight {
  background: #f1f8e9;
  border-left: 4px solid #7cb342;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  border-radius: 6px;
  color: #33691e;
}

.confidence-insight strong {
  font-weight: 600;
}

@media (max-width: 480px) {
  .confidence-scale-helper {
    display: block;
  }
}

#pre-assessment-result {
  margin-top: 0px;
  margin-bottom: 40px;
}

.result-card {
  border-radius: 16px;
}

.result-header .card-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.result-main-row {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.score-panel {
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, #004d40, #009688);
  color: #ffffff;
}

.score-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.score-value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.score-range {
  font-size: 0.9rem;
  opacity: 0.85;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.risk-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.risk-chip--low {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.risk-chip--moderate {
  background-color: #fff8e1;
  color: #f57c00;
}

.risk-chip--high {
  background-color: #ffebee;
  color: #c62828;
}

.score-note {
  font-size: 0.85rem;
  opacity: 0.9;
}

.section-breakdown .section-item {
  margin-bottom: 1.1rem;
}

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

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.section-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #00695c;
}

.section-caption {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.explanation-card {
  background: #e3f2fd;
}

.explanation-card .explanation-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.explanation-list {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

.explanation-list li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.explanation-footnote {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.care-card {
  background: #eeffe5;
}

.care-card .care-title {
  font-size: 1rem;
  font-weight: 600;
}

.care-list {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.care-list li {
  margin-bottom: 0.3rem;
}

.care-disclaimer {
  font-size: 0.8rem;
}

.course-banner {
  margin-top: 0rem;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: #e3f2fd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.course-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.course-subtitle {
  margin: 0;
  font-size: 0.9rem;
}

.course-actions {
  display: flex;
  align-items: center;
}

.course-btn {
  border-radius: 999px;
}

@media (max-width: 600px) {
  .score-panel {
    margin-bottom: 1.5rem;
  }

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

  .course-actions {
    width: 100%;
  }

  .course-btn {
    width: 100%;
    text-align: center;
  }
}

#self-assess-page {
  margin-top: 0px;
  margin-bottom: 40px;
}

.self-assess-header .card-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.journey-summary {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #e8f5e9;
}

.journey-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
  color: #2e7d32;
}

.journey-day {
  margin: 0;
  font-size: 1.1rem;
}

.journey-progress {
  margin-top: 0.6rem;
}

.journey-progress-text {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.self-check-item {
  margin-bottom: 1.25rem;
}

.self-check-label {
  margin-bottom: 0.4rem;
}

.self-check-title {
  display: block;
  font-weight: 600;
}

.self-check-sub {
  font-size: 0.85rem;
  color: #607d8b;
}

.self-check-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.pill-option {
  position: relative;
  flex: 1 1 auto;
}

.pill-option--compact {
  flex: 0 0 auto;
}

.pill-option input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.pill-option span {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  font-size: 0.85rem;
  text-align: center;
  background-color: #fff;
  color: #424242;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}

.pill-option input[type="radio"]:checked + span {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.trend-card {
  background: #eeffe5;
}

.trend-card .trend-title,
.learning-card .learning-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.trend-placeholder {
  margin-top: 0.6rem;
}

.trend-bar {
  height: 8px;
  border-radius: 999px;
  background-color: #eceff1;
  overflow: hidden;
}

.trend-bar-fill {
  height: 100%;
  background-color: #00796b;
}

.trend-percent {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.learning-card {
  background: #e5efff;
}

.learning-link {
  margin-top: 0.3rem;
  padding-left: 0;
  text-transform: none;
}

@media (max-width: 600px) {
  .journey-summary {
    margin-top: 1rem;
  }
}

.self-check-options [type="radio"]:not(:checked) + span,
.self-check-options [type="radio"]:checked + span {
  line-height: 7.5px;
}
