 header{
width: 100%;
} 
footer {
width: 100%;
}
    /* Container for the entire calculator */
    .calculator-container {
      max-width: 1200px;
      margin: 0 auto;
      background: #fff;
      padding: 1rem;
      border-radius: 4px;
     
    }
    h1 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
      font-weight: bold;
    }
    
    /* Layout: Two sections side-by-side on desktop, stacked on mobile */
    .content-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
    }
    .calc-form, .results-section {
      flex: 1 1 45%;

    }


    .results-heading {
  background-color: #f0f0f0; /* Replace with your desired color */
  padding: 0.5rem;         /* Optional: adds some padding */
}

    /* --- SECTION BLOCKS (Form Fields) --- */
    .section-block {
      border: 1px solid #ccc;
      margin-bottom: 1rem;
    }
    .section-header {
      background: #3C7DA6;
      color: #fff;
      padding: 0.5rem;
      font-size: 1rem;
      font-weight: bold;
    }
    .section-content {
      background: #eee;
      padding: 0.5rem;
    }
    .section-content table {
      width: 90%;
      border-collapse: collapse;
    }
    .section-content table tr {
      margin-bottom: 0.5rem;
    }
    .section-content table td {
      padding: 0.3rem 0;
      vertical-align: middle;
    }
    .section-content label {
      font-size: 0.8rem;
    }
    .section-content input[type="text"] {
      width: 80px;
      font-size: 0.8rem;
      padding: 2px;
      margin-right: 0.5rem;
    }
    .section-content select {
      font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn-container {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
    }
    .calculate-btn {
      background: #4caf50;
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
      cursor: pointer;
    }
    .calculate-btn:hover {
      opacity: 0.9;
    }
    .clear-btn {
      background: #ccc;
      color: #000;
      border: none;
      border-radius: 4px;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
      cursor: pointer;
    }
    .clear-btn:hover {
      opacity: 0.9;
    }
    
    /* --- RESULTS SECTION STYLING --- */
    .results-heading {
      font-size: 1rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }
    /* Main DTI ratio text with extra bottom margin */
    .dti-ratio-text {
      font-size: 1.2rem;
      font-weight: bold;
      color: #0275d8;
      margin-bottom: 2rem;
    }
    
    /* Gauge container */
    .gauge-container {
      margin-bottom: 1rem;
    }
    .gauge-bar-wrapper {
      position: relative;
      width: 250px;
      height: 20px;
      border: 1px solid #999;
      margin-bottom: 1rem;
    }
    .segment-green {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 35%;
      background: #4caf50;
    }
    .segment-yellow {
      position: absolute;
      left: 35%;
      top: 0;
      height: 100%;
      width: 15%;
      background: #ffeb3b;
    }
    .segment-red {
      position: absolute;
      left: 50%;
      top: 0;
      height: 100%;
      width: 50%;
      background: #f44336;
    }
    .boundary-35, .boundary-50 {
      position: absolute;
      top: 22px;
      font-size: 0.7rem;
      transform: translateX(-50%);
      color: #000;
    }
    .boundary-35 {
      left: 35%;
    }
    .boundary-50 {
      left: 50%;
    }
    .gauge-arrow {
      position: absolute;
      top: -15px;
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 10px solid #000;
    }
    .gauge-arrow-value {
      position: absolute;
      top: -28px;
      font-size: 0.75rem;
      font-weight: bold;
      color: #000;
      transform: translateX(-50%);
    }
    .ratio-comment {
      font-size: 0.85rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }
    
    /* Results Table */
    .results-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
      margin-bottom: 1rem;
    }
    .results-table td {
      padding: 4px 6px;
      border: 1px solid #ccc;
      vertical-align: middle;
    }
    .results-table td:first-child {
      font-weight: bold;
      width: 40%;
    }
    
    /* Income Breakdown Donut + Legend */
    .income-breakdown-wrapper {
      display: flex;
      align-items: flex-start;
      margin-bottom: 1rem;
    }
    .donut-chart-container {
      width: 200px;
      height: 200px;
      position: relative;
      margin-right: 1rem;
    }
    .legend-container {
      font-size: 0.8rem;
      line-height: 1.4;
    }
    .legend-color-box {
      display: inline-block;
      width: 12px;
      height: 12px;
      margin-right: 4px;
      vertical-align: middle;
    }
    .income-breakdown-title {
      font-size: 0.9rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }
    
    /* Disclaimer */
    .disclaimer {
      font-size: 0.75rem;
      line-height: 1.3;
      margin-top: 1rem;
      color: #555;
    }
    
    /* Responsive: Stack columns on mobile */
    @media (max-width: 768px) {
      .content-wrap {
            display: grid;
grid-template-columns: 1fr;
      }
         .calculator-container {
      width: 90%;
     
    }
      .calc-form, .results-section {
        max-width: 100%;
        border: none;
        padding: 0;
margin: 0 auto;
      }
      .gauge-bar-wrapper {
        width: 90%;
      }
    .section-block {
      width: 100%;
    }
   .results-heading {
      width: 90% !important;
    }
  .results-table {
      width: 90% !important;
    }
.income-breakdown-wrapper {
    width: 90%;
}
.disclaimer {
    width: 90%;
}
    }