.solar-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
  }
  .desktop-table-button-wrapper {
    text-align: center;
  }
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
  }

  .form-group.full-width {
    flex: 1 1 100%;
  }

  label {
    margin-bottom: 8px;
    font-weight: bold;
  }

  input[type="number"],
  select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }

  .radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
  }

  .radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  button#buttoncal {
    padding: 12px;
    font-size: 16px;
    background-color: #007c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
  }

  button#buttoncal:hover {
    background-color: #005b2c;
  }

  #results {
    margin-top: 25px;
    background: #FFCE5D;
    padding: 20px;
    border-left: 5px solid orange;
    border-radius: 8px;
  }

  #results.hide {
    display: none;
  }
  #results.show {
    display: block;
  }
.result-row {
    line-height: 28px;
}
.result-row .result-value {
    font-weight: 500;
}

.desktop-table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.mobile-cards {
  display: none;
}

.tax-results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tax-results-table th,
.tax-results-table td {
  padding: 10px 15px;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap;
}

.tax-results-table .sticky-col {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 2;
  font-weight: bold;
  min-width: 180px;
  box-shadow: 2px 0 3px rgba(0, 0, 0, 0.05);
}

.tax-results-table thead th {
  position: sticky;
  top: 0;
  background-color: #1f2124;
  z-index: 3;
  color: #eee;
}

@media screen and (max-width: 1024px) {
  .tax-results-table th,
  .tax-results-table td {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media screen and (max-width: 768px) {
  .desktop-table {
    display: none;
  }

  .mobile-cards {
    display: block;
  }

  .investment-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .investment-card h4 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
  }

  .investment-card p {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
  }

  .investment-card strong {
    font-weight: 600;
  }
}

.zoni {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
}
.hide {
  display: none;
}

  @media (max-width: 600px) {
    .form-group {
      flex: 1 1 100%;
    }

    .radio-group {
      flex-direction: column;
      gap: 10px;
    }
  }

  /* progress result  */
  .solar-results-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 20px auto;
}

.savings-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.circular-progress {
    position: relative;
    width: 200px;
    height: 200px;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percentage {
    font-size: 36px;
    font-weight: bold;
    color: orange;
    display: block;
    line-height: 1;
}

.label {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.savings-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    text-align: center;
}

.detail-item .amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: block;
}

.detail-item .description {
    font-size: 14px;
    color: #777;
}

.breakdown-toggle {
    text-align: center;
    margin: 25px 0 15px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.detailed-results {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.desktop-table-button-wrapper {
  text-align: center;
}
/* Modal Styles */
.tax-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.tax-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 1000px;
  overflow-x: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tax-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.tax-modal-close:hover {
  color: #000;
}

/* Hide modal button on small screens */
@media screen and (max-width: 767px) {
  .desktop-table-button-wrapper {
      display: none;
  }
}
