* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: calc(15px + 0.390625vw);
  font-weight: 400;
  min-height: 100vh;
  color: black;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.body-background-staging         {background: linear-gradient(14deg, #4ae3ef 10%, #764ba2 100%);}
.body-background-development {background: linear-gradient(14deg, #ee7eea 10%, #224ba2 100%);}

h1 {
    color: #333;
    font-size: 26px;
    margin-bottom: 10px;
}
/* Utility classes - ala Tailwind css */
.text-justify{text-align:justify !important;}

.page-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00B4DB 0%, #0083B0 50%, #3B82F6 100%);
}

.logo-small {display: flex; justify-content: left;}
.logo-small img {width: 125px;}
.logo-large {display: flex; justify-content: center;}
.logo-large img {width: 250px;}

.logo-small {transition: transform 0.3s ease, filter 0.3s ease;}
.logo-link:hover .logo-small {
    transform: translateY(-3px) scale(1.05); /* slightly lift and enlarge */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); /* optional shadow for depth */
}

.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.nav-criterion {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    max-width: 200px;
}
.nav-criterion.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.nav-criterion.inactive {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #212529;
}
.nav-criterion.pass {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.nav-criterion.fail {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.welcome-logo {
    margin-bottom: 40px;
}

.logo-large {
    font-size: 64px;
    font-weight: bold;
    background: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #00B4DB;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 180, 219, 0.2);
    letter-spacing: 4px;
}

.logo-subtitle {
    font-size: 20px;
    color: #0083B0;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
}

.system-description {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 20px;
    padding: 35px;
    margin: 40px 0;
    border: 2px solid #90caf9;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
    position: relative;
}

.system-description p {
    color: #1565c0;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

.intro-box {
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 2px solid #e9ecef;
  position: relative;
  width: 100%;
}
.question-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
    position: relative;
    text-align: left;
}
.question-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}
.question-a { background: #00B4DB; }
.question-b { background: #4a90e2; }
.question-c { background: #3B82F6; }
.question {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}
.question-header {
    padding: 0.9rem 0;
    text-align: center;
}
.info-box {
    background: #e8f4f8;
    border-left: 4px solid #00B4DB;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
}
.info-box p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}
.answer-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.result-box {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    margin-top: 20px;
    animation: bounceIn 0.6s ease-out;
}
.result-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.final-result-badge {top: -18px;left: 20px;padding: 8px 16px;}
.result-positive {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}
.result-negative {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}
.result-partial {
    background: #fff3cd;
    border: 2px solid #ffc107;
}
.result-positive .result-title {
    color: #28a745;
}
.result-negative .result-title {
    color: #dc3545;
}
.result-partial .result-title {
    color: #856404;
}
.summary-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}
.summary-note p {
    color: #856404;
    font-size: 14px;
}
.result-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.result-summary h3 {padding-top: 1rem; margin-bottom: 1rem; color: #333;}

/* Footer summary report - hide on screen */
#print-evaluation-confirmation-report {display: none;}

.criteria-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.criterion-status {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
}
.criterion-status.pass {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.criterion-status.fail {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}
.criterion-status.pending {
    background: white;
    border-color: darkgray;
    color: lightgrey;
}
.container-result {
    padding: 5%;
    margin: 0 5% 5% 5%;
}
.success {
    list-style-type: none;
    background-color: #FF63473D;
    border: 2px red solid;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.9rem;
    text-align: center;
}
.result {
    list-style-type: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.9rem;
    text-align: center;
}
.card.card-transparent {
  background-color: transparent;
}
.card.card-transparent > .card-body {
  background-color: transparent;
}
.card.card-transparent .list-group,
.card.card-transparent .list-group-item {
  background-color: transparent;
  border-color: transparent; /* removes list-group borders */
}

.criteria-confirmation-summary {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0;
    margin: 0;
}
.result-answer-a1-affected-organs {
    padding-left: 4%;
    list-style-type: none;
    font-size: 1.1rem
}
/* --- Grid Layout --- */
.question-a1-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 10px;
}

/* --- Each Image Block --- */
.question-a1-image {
  width: 100%;
  max-width: 320px;
}

/* --- Figure + Picture --- */
.question-a1-image figure {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
}

/* Make picture act like the old input[type=image] */
.question-a1-image figure picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

/* Image inside picture */
.question-a1-image figure picture img.a1-image-menu {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover effect (gentle zoom + soft glow) */
.question-a1-image figure picture img.a1-image-menu:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Caption Overlay --- */
.question-a1-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 8px;
  background: rgba(46, 204, 113, 0.9);
  color: #000;
  font-weight: 600;
  text-align: center;
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Caption hover interaction (optional) */
.question-a1-image:hover figcaption {
  background: rgba(46, 204, 113, 1);
  transform: translateY(-2px);
}

.question-a1-image-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 10px;
}

.question-a1-image-row img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.processed-organ {
  width: 25%;
  border-radius: 8px;
  transition: 0.3s ease;
}
.processed-organ:hover {
  opacity: 0.7;
  filter: grayscale(50%);
}

.symptom-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    color: black;
    background: #FAE1D2FF;
    font-weight: bold;
}
.symptom-badge-font {font-size: 14px;}
.symptom-badge-title { font-weight: lighter; }

.symptoms-container { margin: 2.85rem 0; }

.symptom-list {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5625rem;
    margin: 0 auto;
    border: 0.0625rem solid #e9ecef;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.05);
    width: clamp(200px, 90%, 600px); /* min 200px, max 600px */
    position: relative;
    display: inline-block;
}
.info-checkbox-label {font-weight: bold;}
.info-checkbox-description {
  font-size: 0.8em;
  color: #666;
  margin-left: 3em;
  margin-bottom: 0.5em;
}
.info-checkbox-term {
    padding: 0.75rem 1.125rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 0.65rem;
    transition: all 0.3s;
    cursor: pointer;
    border: 0.125rem solid transparent;
}
.info-checkbox-term:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-color: #dee2e6;
}
.info-checkbox-term input[type="checkbox"] {
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.9rem;
    cursor: pointer;
}

.errorlist {
    list-style-type: none;
    color: red;
    background-color: #FF63473D;
    border: 2px red solid;
    border-radius: 5px;
    font-size: 1.4rem;
    padding: 0.9rem;
}

.helptext {
    font-weight: lighter;
    font-size: 0.8em;
}

input {
    border: solid 2px #e2e8f0;
    border-radius: 5px;
    padding: 0.2rem;
    margin: 0 0.5rem 0.5rem 0;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 0.022em;
    line-height: 1.47059;
}


.start-button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.start-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
}

.start-button:hover::before {
    left: 100%;
}

.start-button:active {
    transform: translateY(-1px) scale(1.02);
}

.last-update {color: #757575; font-size: 0.875rem; text-align: left; margin-bottom: 10px;}

footer {
  font-size: 12px;
  font-weight: 100;
  color: lightgrey;
  a:link { color: gray; }
  a:visited { color: black; }
  a:hover { color: darkblue; }
  a:active { color: darkblue; }
}
.copyright {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Layout: two columns side by side */
.content-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}
/* Quick Links sidebar */
.quick-links {
  flex: 0 0 160px;
  background-color: #f9fafc;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
}
.quick-links h2 {font-size: 1rem;margin-bottom: 0.8rem;color: #003366;}
.quick-links ul {list-style: none;padding: 0;margin: 0;}
.quick-links li {margin-bottom: 0.5rem;}
.quick-links a {color: #0056b3;text-decoration: none;transition: color 0.2s ease;font-size: 0.8rem;}
.quick-links a:hover {color: #003d80;text-decoration: underline;}
/* Main content (right side) */
.policies-content {flex: 1;}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    body {padding: 0;}
    .container {padding: 0;margin: 0;}
    .main {padding: 10px 5px;}
    .content-box {flex-direction: column;}
    .quick-links {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-bottom: 0;
        flex: 1 1 auto;
    }
    .question-box {
        border-radius: 15px;
        padding: 40px 7px 10px 7px;
        margin: 0;
        border: 1px solid #e9ecef;
    }
    .question-a1-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .question-a1-image figure figcaption {
        font-size: 0.85rem;
        padding: 5px;
    }
    .question-a1-image-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
      gap: 5px;
    }
    .question-a1-image-row p {display: none;}

    .logo-small {padding-top: 7px;}
    .logo-large {display: flex; justify-content: center;}
    .logo-large img {width: 80%;}
    .logo-subtitle {font-size: 16px;}
    .system-description {padding: 25px;}
    .system-description p {font-size: 14px;text-align: left;}
    .symptom-list {max-width: none;}
    .symptom-badge-font {font-size: 12px;}
    .intro-box {padding: 0; border: 0}
    .result-box {margin: 0; padding: 10px;}
    .summary-note p {font-weight: lighter; font-size: 12px;}
    .result-title {font-size: 18px; margin-bottom: 10px;}
    .result-subtitle {font-size: 14px; margin-bottom: 10px;}
    footer {font-size: 10px;}
    .copyright {margin: 0 0 10px 0;}
    .policies {margin: 0 0 10px 0;}
    .policies li + li:before{content: "|";padding: 0;}

    .start-button {padding: 18px 40px;font-size: 16px;letter-spacing: 1px;}
    .big-button {font-size: 16px;}
}

@media (max-width: 480px) {
  .question-a1-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  .question-a1-image figure {border-radius: 8px;}
}