.prosper-calc-container {
  max-width: 800px;
  margin: 20px 0;
  font-family: sans-serif;
}
.prosper-calc-wrapper {
  max-width: 900px;
  margin: 20px auto;
}
.prosper-calc-form fieldset {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}
.prosper-calc-form legend {
  font-weight: bold;
  padding: 0 10px;
}
.prosper-calc-form label {
  display: block;
  margin-bottom: 8px;
}
/* Radio and checkbox labels should be inline */
.prosper-calc-form input[type="radio"] + label,
.prosper-calc-form input[type="checkbox"] + label,
.prosper-calc-form .form-type-radio label,
.prosper-calc-form .form-type-checkbox label {
  display: inline;
  margin-bottom: 0;
  margin-left: 0;
  cursor: pointer;
  vertical-align: middle;
}
.prosper-calc-form .form-type-radio,
.prosper-calc-form .form-type-checkbox {
  margin-bottom: 8px;
}
.prosper-calc-form input[type="number"],
.prosper-calc-form input[type="text"],
.prosper-calc-form select {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin-bottom: 5px;
}
.prosper-calc-form input[type="radio"],
.prosper-calc-form input[type="checkbox"] {
  margin-right: 5px;
  margin-left: 0;
  cursor: pointer;
  vertical-align: middle;
}
.prosper-calc-form table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
.prosper-calc-form th,
.prosper-calc-form td {
  border: 1px solid #eee;
  padding: 8px;
  text-align: left;
}
.prosper-calc-form .remove-row {
  color: red;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: bold;
}
.prosper-results {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 5px solid #0073aa;
}
.prosper-results h3 {
  margin-top: 0;
}
.gs-conditional {
  display: none;
}
.prosper-calc-form button[type="submit"] {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.prosper-calc-form button[type="submit"]:hover {
  background: #005177;
}

/* Print Styles - Show only results section */
@media print {
  /* Hide header, footer, sidebar, navigation */
  header,
  footer,
  nav,
  .site-header,
  .site-footer,
  .sidebar,
  .widget-area,
  .menu,
  .navigation,
  aside {
    display: none !important;
  }

  /* Hide form but keep results visible */
  .prosper-calc-form {
    display: none !important;
  }

  /* Show results wrapper */
  .prosper-calc-wrapper.hydrosep-results,
  .prosper-calc-wrapper.greasesep-results {
    display: block !important;
    visibility: visible !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: white !important;
    border: none !important;
  }

  /* Ensure all result elements are visible */
  .prosper-calc-wrapper.hydrosep-results h2,
  .prosper-calc-wrapper.hydrosep-results h3,
  .prosper-calc-wrapper.hydrosep-results p,
  .prosper-calc-wrapper.hydrosep-results table,
  .prosper-calc-wrapper.hydrosep-results div,
  .prosper-calc-wrapper.greasesep-results h2,
  .prosper-calc-wrapper.greasesep-results h3,
  .prosper-calc-wrapper.greasesep-results p,
  .prosper-calc-wrapper.greasesep-results table,
  .prosper-calc-wrapper.greasesep-results div {
    display: block !important;
    visibility: visible !important;
  }

  /* Force table display */
  .results-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: avoid;
  }

  .results-table thead {
    display: table-header-group !important;
  }

  .results-table tbody {
    display: table-row-group !important;
  }

  .results-table tr {
    display: table-row !important;
    page-break-inside: avoid;
  }

  .results-table th,
  .results-table td {
    display: table-cell !important;
    border: 1px solid #333 !important;
    padding: 8px !important;
  }

  /* Hide buttons */
  button,
  .button,
  input[type="submit"] {
    display: none !important;
  }

  /* Remove background colors for print */
  .prosper-results,
  .results-metadata,
  .result-recommendation {
    background: white !important;
  }

  /* Better print formatting */
  h2,
  h3 {
    page-break-after: avoid;
  }
}
