#decision-tree {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#decision-tree h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

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

.step-age button {
    padding: 16px 28px;
    margin: 10px;
    font-size: 1.1rem;
    border-radius: 999px;
    border: 2px solid #2881e2;
    background: #fff;
    color: #2881e2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-age button:hover {
    background: #2881e2;
    color: #fff;
    border: 2px solid #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.category-card p {
    font-weight: 500;
  font-size: 0.95rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 19px;
}


#decision-options {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

#decision-options li {
    margin-bottom: 12px;
}

.option-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.option-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
}


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

#decision-result {
    margin-top: 20px;
    padding: 24px;
    border-radius: 16px;
  
    font-size: 1.1rem;
}

#decision-result p {
  margin-bottom: 0 !important;
}

.step.step-age p {
  color: #2d2b2b;
  font-size: 14px;
}

.decision-disclaimer {
    padding-top: 20px;
  border: 1px solid #94b778;
  font-size: 0.87rem !important;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  background: #ebffe9;
  padding-bottom: 20px;
  margin-top: 40px;
  display: inline-block;
  border-radius: 3px;
}

.decision-disclaimer p {
  font-size: 0.85rem;
  color: #6c6c6c;
  max-width: 650px;
  margin: 0 auto;
}

.decision-disclaimer strong {
    color: #334155;
}





.final-result {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.result-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 24px;
}

.result-text {
    font-size: 1.1rem;
    color: #1e3a8a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.result-text strong {
    color: #1e3a8a;;
}

.result-disclaimer {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}




@media (max-width: 600px) {

    #decision-tree {
        padding: 10px;
    }

    .category-card img {
        width: 64px;
        height: 64px;
    }

    .step-age button {
        width: 100%;
        max-width: 260px;
    }
}

