.whc-container * {
  box-sizing: border-box;
}

.whc-container {
  width: 100%;
  font-family: inherit;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  line-height: 1.5;
}

.whc-req { color: #f43f5e; }

.whc-inputs-section, .whc-results-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.whc-main-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.whc-panel {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.whc-subheading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e293b;
}

.whc-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .whc-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.whc-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.whc-form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.whc-form-group input, .whc-form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background-color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.whc-form-group input:focus, .whc-form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.whc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.whc-btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  width: 100%;
}
.whc-btn-secondary:hover { background-color: #e2e8f0; }

.whc-btn-print {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.whc-btn-print:hover { background-color: #dbeafe; }

.whc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.whc-results-header .whc-main-heading { border-bottom: none; padding-bottom: 0; margin: 0; }

.whc-result-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.whc-card-green { background-color: #ecfdf5; border-color: #a7f3d0; }
.whc-card-blue { background-color: #eff6ff; border-color: #bfdbfe; }

.whc-card-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem 0;
}

.whc-card-green .whc-card-label { color: #047857; }
.whc-card-blue .whc-card-label { color: #1d4ed8; }

.whc-card-value { display: flex; align-items: baseline; gap: 0.25rem; }

.whc-big-num {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.whc-card-green .whc-big-num, .whc-card-green .whc-suffix { color: #059669; }
.whc-card-blue .whc-big-num, .whc-card-blue .whc-suffix { color: #2563eb; }

.whc-card-note {
  font-size: 0.75rem;
  margin: 0.5rem 0 0 0;
  color: #2563eb;
}

.whc-box-white {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.whc-box-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.whc-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.whc-comp-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 0.25rem 0;
}

.whc-comp-val {
  font-size: 1.5rem;
  color: #334155;
  margin: 0;
}

.whc-comp-suf { font-size: 0.875rem; font-weight: 400; }
.whc-border-left { border-left: 1px solid #e2e8f0; }

.whc-long-term {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.whc-disclaimer {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Print Styles */
@media print {
  .whc-no-print { display: none !important; }
  .whc-results-section { margin-top: 0; }
  .whc-box-white { border: 1px solid #cbd5e1; box-shadow: none; }
}