﻿.calc-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.calc-card {
  border-radius: 20px;
  padding: 26px;
  border: 1px solid rgba(15, 26, 55, 0.08);
  box-shadow: 0 14px 30px rgba(11, 19, 38, 0.08);
  background: #ffffff;
}



.calc-title-row h2 {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.back-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: relative;
  top: 10px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.section-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: #0b1326;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.row-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 200px) minmax(120px, 150px);
  gap: 12px 14px;
  align-items: center;
  margin-bottom: 12px;
}

.row-grid .label {
  font-weight: 600;
  color: #0b1326;
}

.value-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #1d4ed8;
  border-radius: 10px;
  padding: 0;
  min-height: 42px;
  overflow: hidden;
  width: 100%;
}

.value-box input,
.value-box select {
  width: 100%;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: #1d4ed8;
  background: transparent;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  padding: 8px 10px;
}

.req {
  color: #d1204d;
  font-weight: 700;
}

.input-error {
  outline: 2px solid rgba(209, 32, 77, 0.45);
  border-radius: 8px;
}

.value-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f1f5f9;
  color: #1d4ed8;
  font-weight: 700;
  border-right: 1px solid rgba(15, 26, 55, 0.12);
  height: 100%;
}

.total-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 200px);
  gap: 12px 14px;
  align-items: center;
  margin-top: 16px;
}

.total-row .label {
  font-weight: 700;
  color: #0b1326;
}

.calc-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.calc-actions-mobile {
  display: none;
}

.calc-btn {
  width: 220px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #d81b60; 
  color: #ffffff; 
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(216, 27, 96, 0.25);
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(216, 27, 96, 0.28);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 24px;
}

.summary-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr);
  gap: 12px 14px;
  align-items: center;
}

.summary-item .label {
  font-weight: 600;
  color: #0b1326;
}

.summary-item .value-box input {
  font-weight: 700;
  color: #0b1326;
}

.summary-subtitle {
  margin-top: 24px;
  font-weight: 700;
  color: #0b1326;
}

.asset-type-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr) minmax(200px, 1fr);
  gap: 12px 14px;
  align-items: center;
}

.asset-type-grid .header {
  font-weight: 700;
  color: #0b1326;
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #2a3561;
}

.chart-card {
  position: relative;
  min-height: 360px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.chart-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
}

.chart-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

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

.chart-center span {
  display: block;
  font-size: 0.9rem;
  color: #5b6577;
  margin-bottom: 6px;
}

.chart-center strong {
  font-size: 1.3rem;
  color: #0b1326;
}

.chart-legend {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-item span {
  display: block;
  font-size: 0.85rem;
  color: #5b6577;
}

.legend-item strong {
  display: block;
  font-size: 1rem;
  color: #0b1326;
  margin-top: 4px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.principal {
  background: #2563eb;
}

.dot.interest {
  background: #f59e0b;
}

.schedule-section {
  margin-top: 32px;
}

.schedule-section h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #0b1326;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(11, 19, 38, 0.08);
  box-shadow: 0 12px 24px rgba(11, 19, 38, 0.08);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.schedule-table thead th {
  background: #8e1447;
  color: #ffffff;
  text-align: center;
  padding: 14px 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-table tbody td {
  text-align: center;
  padding: 12px 10px;
  border-top: 1px solid rgba(11, 19, 38, 0.08);
  color: #1d2946;
  font-size: 0.95rem;
}

.schedule-table tbody tr:nth-child(even) td {
  background: #fafbff;
}

.yearly-chart-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(11, 19, 38, 0.08);
  box-shadow: 0 12px 24px rgba(11, 19, 38, 0.08);
  padding: 18px 18px 14px;
}

.yearly-chart-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #0b1326;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.yearly-chart-canvas {
  position: relative;
  width: 100%;
  height: 320px;
}

.suggested-calculators {
  margin-top: 36px;
}

.suggested-calculators.outside {
  width: 100%;
  max-width: none;
  margin: 0 auto 80px;
  padding: 0 30px;
  box-sizing: border-box;
}

.suggested-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.suggested-header span {
  width: 32px;
  height: 2px;
  background: #1a2a57;
  display: inline-block;
  opacity: 0.7;
}

.suggested-header h2 {
  font-size: 1.2rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 16px;
}

.suggested-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 26, 55, 0.08);
  box-shadow: 0 12px 26px rgba(11, 19, 38, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-height: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.suggested-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 19, 38, 0.16);
  border-color: rgba(15, 26, 55, 0.16);
}

.suggested-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(108, 212, 255, 0.2), rgba(139, 255, 177, 0.25));
  display: grid;
  place-items: center;
}

.suggested-icon img {
  width: 26px;
  height: 26px;
}

.suggested-card h3 {
  font-size: 1.02rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.suggested-card p {
  font-size: 0.9rem;
  color: #2a3561;
  line-height: 1.5;
}

.suggested-card span {
  margin-top: auto;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a2a57;
}

@media (max-width: 1100px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .suggested-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .row-grid {
    grid-template-columns: 1fr;
  }

  .total-row {
    grid-template-columns: 1fr;
  }

  .summary-item {
    grid-template-columns: 1fr;
  }

  .asset-type-grid {
    grid-template-columns: 1fr;
  }

  .yearly-chart-canvas {
    height: 260px;
  }

  .suggested-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suggested-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .calc-notes,
  .calc-faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .suggested-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .calc-notes,
  .calc-faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 768px) {
  .calc-title-row {
    gap: 10px;
    margin-bottom: 4px;
  }

  .back-link {
    width: 24px;
    height: 24px;
  }

  .calc-page {
    margin: 110px 16px 48px;
  }

  .calc-actions {
    display: none;
  }

  .calc-actions-mobile {
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }

}


.note-card {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 16px;
  text-align: left;
}

.test-case-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.test-case {
  flex: 1 1 280px;
  background: #f9f9ff;
  border: 1px solid rgba(11, 19, 38, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
}

.test-case p:last-child {
  margin-bottom: 0;
}

.note-card code {
  background: #f2f5ff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9rem;
}






.faq-list {
  display: block;
}

.faq-item {
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 1.1rem;
  color: #0b1326;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b1326;
  border-bottom: 2px solid #0b1326;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

.faq-body {
  padding: 0 0 14px 0;
}

.faq-body p {
  font-size: 1.02rem;
  color: #1f2a4a;
  line-height: 1.9;
  margin: 0;
  letter-spacing: 0.01em;

}