 /* ====== Basic Reset & Fonts ====== */

    /* ====== Overall Container for Each Calculator ====== */
    .calc-container {
      max-width: 800px;
      border: 1px solid #ddd;
      margin: 0 auto;
      background: #fff;

      padding: 20px;
      margin-bottom: 40px;
margin-top: 40px;
    }
h1{
margin-top: 30px;
font-size: 25px;
}
 #house-cal-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
 #house-cal-text h3 {
    text-align: left;
}
    .calc-header h2 {
      font-size: 1.4rem;
      margin-bottom: 5px;
      color: #333;
    }
    .calc-header p {
      font-size: 0.95rem;
      color: #555;
      margin-bottom: 10px;
    }

    /* ====== Flex Layout for Form & Results ====== */
    .calc-content {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }
    .calc-left {
      flex: 1 1 300px;
      min-width: 280px;
      background: #fafafa;
      border: 1px solid #eee;
      padding: 15px;
    }
    .calc-right {
      flex: 1 1 300px;
      min-width: 280px;
      background: #fafafa;
      border: 1px solid #eee;
      padding: 15px;
    }

    /* ====== Buttons & Table Styles ====== */
    .calc-btn {
      display: inline-block;
      padding: 8px 15px;
      font-size: 0.9rem;
      color: #fff;
      background: #428b46;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-right: 10px;
    }
    .calc-btn:hover {
      background: #367539;
    }
    .clear-btn {
      background: #888;
    }
    .calc-results h2 {
      font-size: 1.1rem;
      margin-bottom: 10px;
      color: #333;
background: #eee;
    }
    .calc-results p {
      font-size: 0.95rem;
      margin-bottom: 10px;
      color: #333;
      line-height: 1.4;
    }
    .results-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
    }
    .results-table tr {
      border-bottom: 1px solid #eee;
    }
    .results-table th,
    .results-table td {
      text-align: left;
      padding: 8px;
      font-size: 0.9rem;
      color: #333;
    }
    .results-table th {
      width: 60%;
      background: #f0f0f0;
    }
    .results-highlight {
      color: #428b46;
      font-weight: bold;
    }

    /* ====== Responsive Adjustments ====== */
    @media (max-width: 600px) {
      .calc-left, .calc-right {
        min-width: 90%;
      }
       #house-cal-text {
    text-align: left;
    width: 90%;
   padding: 10px;;
}
    }

    /* ====== SMALL FIELDS LAYOUT (Labels Left, Inputs Right) ====== */
    .small-fields .calc-group {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .small-fields .calc-group label {
      width: 60%;
      font-size: 0.85rem;
      text-align: left;
      color: #333;
    }
    .small-fields .calc-group input,
    .small-fields .calc-group select {
      width: 38%;
      padding: 4px;
      font-size: 0.85rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      text-align: right;
    }
    /* Checkbox group adjustments */
    .small-fields .checkbox-group {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }
    .small-fields .checkbox-group label {
      font-size: 0.85rem;
      text-align: left;
      margin-left: 5px;
    }
    /* For second calculator: container to toggle lower fields */
    .toggle-tax-fees {
      margin-top: 10px;
    }