/* Share Buttons Component */
.share-buttons {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.share-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.share-buttons-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.share-facebook:hover {
  background: #4267b2;
  color: white;
  border-color: #4267b2;
}

.share-linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-whatsapp:hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.share-email:hover {
  background: #ea4335;
  color: white;
  border-color: #ea4335;
}

.share-copy:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.copy-feedback {
  font-size: 0.8rem;
  color: #059669;
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (max-width: 480px) {
  .share-buttons-row {
    justify-content: center;
  }
  
  .share-btn {
    width: 44px;
    height: 44px;
  }
}

.calculator-3col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.divider-vertical {
  display: none;
}
@media (min-width: 1300px) {
  .calculator-3col {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .calculator {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 520px;
  }
  .results-col {
    flex: 2 1 0;
    min-width: 520px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .tips-col {
    flex: 1 1 0;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .divider-vertical {
    display: block;
    width: 1.5px;
    min-width: 1.5px;
    background: linear-gradient(180deg, #e5e7eb 0%, #bc52ee 100%);
    height: 100%;
    margin: 0 1.25rem;
    border-radius: 1px;
  }
}
@media (max-width: 1299px) and (min-width: 600px) {
  .tips-col {
    margin-top: 2.5rem;
    max-width: 100%;
    width: 100%;
  }
}
.results-col, .tips-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.result {
  margin-top: 0;
  padding: 1.25rem;
  background: #f3f4f6;
  border-radius: 0.75rem;
  font-size: 1.2rem;
  color: #3245ff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(50, 69, 255, 0.06);
}
.growth-graph-wrapper {
  width: 95%;
  display: flex;
  justify-content: center;
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(50, 69, 255, 0.06);
  padding: 1rem;
}
.growth-graph-svg {
  width: 100%;
  max-width: 1000px;
  height: 300px;
  background: transparent;
}
.graph-tooltip {
  position: absolute;
  min-width: 120px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(50, 69, 255, 0.10);
  padding: 0.75rem 1.25rem;
  color: #3245ff;
  font-size: 1rem;
  pointer-events: none;
  z-index: 10;
  border: 1.5px solid #bc52ee;
}
.summary {
  margin-top: 0;
  padding: 1.25rem 0.5rem;
  background: none;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  color: #3245ff;
  text-align: center;
  box-shadow: none;
}
.summary h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #3245ff;
}
.summary-list p {
  font-size: 0.98rem;
  margin: 0.25rem 0 0.25rem 0;
  padding: 0;
}
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.5em 0;
  padding: 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.5em 0;
  padding: 0;
  text-align: left;
}
.faq-list .info-card, .faq-list .faq-q-row, .faq-list .faq-answer {
  text-align: left;
}
.info-card {
  background: #f3f4f6;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #3245ff;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(50, 69, 255, 0.04);
}
.info-card.open {
  background: #e0e7ff;
  box-shadow: 0 2px 8px rgba(50, 69, 255, 0.08);
}
.faq-q-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-toggle-icon {
  font-size: 1.3em;
  color: #bc52ee;
  margin-left: 1em;
}
.faq-answer {
  margin-top: 0.75em;
  color: #4b5563;
}
.details-toggle {
  margin: 1.5rem auto 0 auto;
  display: block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(90deg, #3245ff 0%, #bc52ee 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.details-toggle:hover {
  background: linear-gradient(90deg, #bc52ee 0%, #3245ff 100%);
  transform: translateY(-2px) scale(1.01);
}
.details-table-wrapper {
  margin-top: 0rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.details-table {
  min-width: 480px;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(50, 69, 255, 0.06);
}
.details-table th, .details-table td {
  padding: 0.5rem 0.75rem;
  text-align: right;
}
.details-table th {
  background: #f3f4f6;
  color: #3245ff;
}
.details-table td {
  color: #111827;
}
.details-table tr:nth-child(even) td {
  background: #f9fafb;
}
.section {
  margin-bottom: 1.5rem;
}
.stylish-section {
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: #f9fafb;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  box-shadow: 0 1px 4px rgba(50, 69, 255, 0.03);
}
.section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #3245ff;
}
.label-bold {
  font-weight: 600;
  text-align: left;
  display: block;
  margin-bottom: 0.25rem;
}
.input-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.input-grid label {
  flex: 1 1 48%;
  max-width: 48%;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  color: #111827;
  text-align: left;
}

/* Ensure form input labels are left-aligned, but not result section labels */
.input-grid label, 
.contrib-fields label,
.debt-inputs label {
  text-align: left;
}

.input-grid label span, 
.contrib-fields label span,
.debt-inputs label span {
  text-align: left;
}

/* Target form sections specifically, but exclude summary/result sections */
.section:not(.summary) label {
  text-align: left;
}

.section:not(.summary) label span {
  text-align: left;
}

/* Ensure summary paragraphs and their spans use default alignment */
.summary p,
.summary span {
  text-align: left;
}

.summary .label-bold {
  text-align: left;
  display: inline;
  margin-bottom: 0;
}
input[type='number'] {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: #f9fafb;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
}
input[type='number']:focus {
  border: 1.5px solid #3245ff;
  outline: none;
}
input[type="date"] {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: #f9fafb url('data:image/svg+xml;utf8,<svg fill="%233245ff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z" opacity=".3"/><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm0-13H5V6h14v1z"/></svg>') no-repeat 0.75rem center/1.2rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  color: #111827;
  transition: border 0.2s;
}
input[type="date"]:focus {
  border: 1.5px solid #3245ff;
  outline: none;
}
.frequency-group {
  margin-top: 1rem;
}
.full-width {
  width: 100%;
  flex-basis: 100%;
}
.frequency-options {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.frequency-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.98rem;
  font-weight: 500;
  color: #3245ff;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(50, 69, 255, 0.04);
  user-select: none;
}
.frequency-box.selected {
  border: 2px solid #bc52ee;
  background: linear-gradient(90deg, #f3e8ff 0%, #e0e7ff 100%);
  color: #bc52ee;
  box-shadow: 0 2px 8px rgba(188, 82, 238, 0.10);
}
.frequency-box:focus {
  outline: 2px solid #3245ff;
}
.frequency-box span {
  pointer-events: none;
}
.contrib-section {
  margin-bottom: 0;
}
.contrib-toggle {
  background: linear-gradient(90deg, #f3e8ff 0%, #e0e7ff 100%);
  border: 1.5px solid #bc52ee;
  color: #bc52ee;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  transition: background 0.2s, border 0.2s, color 0.2s;
}
.contrib-toggle:hover {
  background: linear-gradient(90deg, #bc52ee 0%, #e0e7ff 100%);
  border: 1.5px solid #3245ff;
  color: #3245ff;
}
.contrib-fields {
  margin-top: 0.5rem;
}
.contrib-hint {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.25rem;
}
.results-card, .tips-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(50, 69, 255, 0.04);
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}

.tool-page {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(50, 69, 255, 0.08), 0 1.5px 6px rgba(188, 82, 238, 0.06);
  text-align: center;
}
.tool-page h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #3245ff 0%, #bc52ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tool-page p {
  color: #4b5563;
  font-size: 1.25rem;
}
@media (min-width: 1200px) {
  .tool-page {
    max-width: 1400px;
    padding: 3rem 3rem 2.5rem 3rem;
  }
}
select {
  margin-top: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: #f9fafb url('data:image/svg+xml;utf8,<svg fill="%233245ff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z" opacity=".3"/><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm0-13H5V6h14v1z"/></svg>') no-repeat right 1rem center/1.2rem 1.2rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #111827;
  transition: border 0.2s;
}
select:focus {
  border: 1.5px solid #3245ff;
  outline: none;
}