<!DOCTYPE html>
<html lang="en">
.tool-header {
  text-align: center;
  margin-bottom: 30px;
}

.tool-logo {
  display: block;
  margin: 0 auto 15px;
  max-width: 180px;
  height: auto
}

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Prostate Cancer Risk Tool</title>
  <style>
    /* Base page settings */
    body {
      margin: 0;
      padding: 0;
      font-family: Georgia, "Times New Roman", serif;
      background: #f8f8f8;
    }

    /* Container settings for a refined "card" look */
    .container {
      max-width: 1200px;
      margin: 40px auto;
      padding: 40px;
      background: #fff;
      border: 3px solid #d4af37;  /* Gold accent */
      border-radius: 10px;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    /* Headings styling */
    h1 {
      text-align: center;
      margin-bottom: 40px;
      font-size: 3em;      /* Big & bold */
      font-weight: 700;
      margin: 0;
      color: #2e7d32;      /* optional accent color */
}

    h2 {
      text-align: center;
      font-size: 1.5em;    /* Subtitle level */
      font-weight: 400;
      margin: 5px 0 10px;
      color: #333;
    }

    p {
      text-align: center;
      font-size: 0.9em;    /* Small text */
      color: #666;
      margin: 0;
      font-style: italic;  /* subtle emphasis */
    }
    h3 {
      margin: 30px 0 15px;
      padding-bottom: 5px;
      border-bottom: 2px solid #d4af37;
      color: #333;
    }

    /* Factor group styling */
    .factor {
      margin-bottom: 20px;
    }

    /* Label styling for clarity */
    label {
      display: block;
      margin-bottom: 8px;
      font-weight: bold;
      color: #555;
    }

    /* Input and select fields with a modern look */
    select,
    input[type="number"] {
      width: 100%;
      padding: 10px;
      font-size: 1em;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-sizing: border-box;
      transition: border-color 0.2s ease;
    }

    /* Input focus state for enhanced interactivity */
    select:focus,
    input[type="number"]:focus {
      border-color: #d4af37;
      outline: none;
    }

    /* Result area styling */
    #result {
      font-size: 1.2em;
      margin-top: 30px;
      padding: 20px;
      background-color: #e0f7fa;
      border: 2px solid #009688;
      border-radius: 8px;
      display: none;
      transition: opacity 0.5s ease-in-out;
      opacity: 0;
    }

    /* Button styling with smooth transitions and rounded edges */
    button {
      background-color: #4caf50;
      color: #fff;
      padding: 12px 25px;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      font-size: 16px;
      transition: background 0.3s ease;
      margin-top: 20px;
      display: inline-block;
    }

    /* Button hover state */
    button:hover {
      background-color: #367c39;
    }

    /* Mobile optimization */
    @media only screen and (max-width: 600px) {
      body {
        margin: 10px;
        padding: 10px;
      }
      
      .container {
        max-width: 100%;
        padding: 20px;
        margin: 20px auto;
      }
      
      h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
      }
      
      h3 {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 10px;
      }
      
      select,
      input[type="number"] {
        padding: 8px;
        font-size: 0.9em;
      }
      
      button {
        padding: 10px 20px;
        font-size: 14px;
      }
    }

    /* Tooltip icon styling */
    .tooltip {
      display: inline-block;
      margin-left: 5px;
      background-color: #d4af37; /* Gold accent */
      color: #fff;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      text-align: center;
      line-height: 18px;
      font-size: 12px;
      cursor: help;
      position: relative;
    }

    /* Tooltip pop-up styling on hover */
    .tooltip:hover::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 125%;
      top: 50%;
      transform: translateY(-50%);
      background-color: #555;
      color: #fff;
      padding: 5px 8px;
      border-radius: 4px;
      white-space: pre-wrap;
      min-width: 300px;
      text-align: left;
      z-index: 10;
      opacity: 1;
      pointer-events: none;
    }

    /* Fade-in effect for tooltip */
    .tooltip::after {
      opacity: 0;
      transition: opacity 0.3s;
    }
 #nextSteps {
      font-size: 0.8em;        
      line-height: 1.5em;       
      padding: 10px;
  }
  #nextSteps h4 {
      font-size: 1em;        
      margin-bottom: 10px;     
  }
  #nextSteps ul {
      padding-left: 20px;      /* Ensure bullet points are indented */
      margin-top: 5px;
  }
  #nextSteps li {
      margin-bottom: 8px;      /* Spacing between list items */
  }