body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f7f7f7;
  line-height: 1.6;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 40px 0;
}

form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.form-group {
  margin-bottom: 20px;
}

/* Added CSS to highlight the selected column */
td.highlighted {
  background-color: #eaf8ea;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M0 0h12L6 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

select::-ms-expand {
  display: none;
}

select:hover,
select:focus {
  border-color: #999;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: 700;
}

td {
  border-top: 1px solid #ddd;
}

input[type="submit"] {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

input[type="radio"] {
  margin-right: 5px;
}

/* Added CSS to highlight the selected row */
tr.highlighted {
  background-color: #eaf8ea;
}

td.checkmark {
  color: green;
  text-align: center;
}

/* Radio Button Styling */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  transition: border-color 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

input[type="radio"]:checked {
  border-color: #4CAF50;
  background-color: #4CAF50;
}

input[type="radio"]::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  transition: background-color 0.3s ease-in-out;
  opacity: 0;
  transform: scale(0);
}

input[type="radio"]:checked::before {
  opacity: 1;
  transform: scale(1);
}

 #cost {
    background-color: #f2f2f2;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

   #compareLow {
    background-color: #f2f2f2;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

   #compareHigh {
    background-color: #f2f2f2;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

</style>

  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <script>

$(document).ready(function() {
  // Add click event listener to the radio buttons
  $('input[name="service[]"]').on('click', function() {
    // Get the index of the selected radio button column
    var columnIndex = $(this).closest('th').index() + 1; // Add 2 to skip the first two columns

    // Remove highlighting from all cells in the table
    $('td').removeClass('highlighted');

    // Add highlighting to the cells in the selected column
    $('tr').find('td:nth-child(' + columnIndex + ')').addClass('highlighted');
  });

  $('option').mousedown(function(e) {
    e.preventDefault();
    $(this).prop('selected', !$(this).prop('selected'));
    return false;
  });
});

