.calculator-container {
  width: 100%;  
  max-width: 900px;
  margin: 50px auto 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  line-height: 1.6;
}


.main-header {
  text-align: center;
  margin-bottom: 25px;
}
.main-header h1 {
  font-size: 34px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

h3 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    h4 {
        font-size: 24px;
        margin-bottom: 8px;
    }

.dynamic-summary {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
  max-width: 900px;
  margin: 0 auto 40px auto; 
  text-align: left;
  padding: 10px;
}
.dynamic-summary strong {
  color: #005a9c;
  font-weight: 600;
}


.calculation-section {
    background-color: #f9fafb;
    border: 1px solid #717273;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px; 
    color: black;
  }


.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.date-time-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.date-time-group label {
  width: 100%;
  display: block;
  font-weight: 700;
  margin-bottom: 0;
  color: #1a202c;
}
.date-time-group input {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}


.results-subtitle {
  margin-top: 10px;  
  text-align: center;
  font-size: 2rem;
  color: #4a5568;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 0.5rem;
}

#main-result-display {
  margin-top: 10px;  
  padding: 10px;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  background-color: #1a202c;
  padding: 12px 20px;
  border-radius: 8px;
}

.breakdown-title {
  text-align: center;
  font-weight: 500;
  color: #414242;
  margin: 25px 0 15px 0;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

#breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}
#breakdown-grid div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7fafc;
  padding: 10px 15px;
  border-radius: 8px;
}
#breakdown-grid span {
  font-weight: 700;
  font-size: 1rem;
  color: #4a5568;
}
#breakdown-grid strong {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a202c;
}


h2 {
  font-size: 32px;
  color: #1a202c;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  margin: 40px 0 20px 0; 
}


.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid black
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #757576;
}
thead th {
  background-color: #696666;
  font-weight: 600;
  color: #fefefe;
}
tbody td strong {
  color: #1a202c;
  font-weight: 700;
}
tbody tr:hover {
  background-color: #d0d2d5;
}


.related-links-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-links-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  color: #005a9c;
  text-decoration: none;
  font-weight: 500;
  background-color: #f7f9fb;
  border: 1px solid #818183;
}
.related-links-list li a::after {
  content: "›";
  font-weight: bold;
  color: #1a202c;
}
.related-links-list li a:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
}

/* Responsive */
@media (max-width: 768px) {
  .input-grid {
    grid-template-columns: 1fr;
  }
}
