/* LIC New Tech-Term Plan 954 Calculator */

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: #555;
  margin-bottom: 25px;
  font-size: 16px;
}

.card-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px;
}

/* CARD */
.calc-card {
  background: #fff;
  border: 1px solid #E8E4EC;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.calc-card:hover {
  border-color: #40E0D0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* GRID */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* INPUTS */
.input-group { margin-bottom: 25px; }
.input-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.input-row input[type="text"] {
  width: 120px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E8E4EC;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #fff;
  text-align: right;
  outline: none;
  color: #333;
}
.input-row input[type="text"]:focus,
.input-row input[type="text"]:hover {
  border-color: #40E0D0;
  box-shadow: 0 0 0 3px rgba(64,224,208,0.15);
}
.input-row input.sa-input { width: 130px; font-size: 13px; }
.unit-label { font-size: 13px; color: #888; font-weight: 500; }

select.input-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #E8E4EC;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239200C5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select.input-select:hover {
  border-color: #40E0D0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2340E0D0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
select.input-select:focus {
  border-color: #40E0D0;
  box-shadow: 0 0 0 3px rgba(64,224,208,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2340E0D0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

small.hint { color: #888; font-size: 12px; margin-top: 4px; display: block; }

/* SLIDER */
.input-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #E8E4EC;
  outline: none;
  cursor: pointer;
}
.input-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right,
    #40E0D0 0%,
    #40E0D0 calc((var(--val) - var(--min)) / (var(--max) - var(--min)) * 100%),
    #E8E4EC calc((var(--val) - var(--min)) / (var(--max) - var(--min)) * 100%),
    #E8E4EC 100%
  );
}
.input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #40E0D0 0%, #48D4C4 100%);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(64,224,208,0.3);
  transition: all 0.2s ease;
}
.input-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(64,224,208,0.5);
}
.input-row input[type="range"]::-moz-range-track { height: 6px; border-radius: 4px; background: #E8E4EC; }
.input-row input[type="range"]::-moz-range-progress { height: 6px; border-radius: 4px; background: #40E0D0; }
.input-row input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #40E0D0 0%, #48D4C4 100%);
  border-radius: 50%; border: none; cursor: pointer;
  box-shadow: 0 2px 6px rgba(64,224,208,0.3);
}

/* RESULT CARDS */
.result-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.result-box {
  background: #f9f9f9;
  padding: 16px 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #E8E4EC;
  transition: all 0.2s ease;
}
.result-box:hover { border-color: #40E0D0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.result-box span { font-size: 12px; color: #666; font-weight: 500; display: block; }
.result-box strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-box.highlight {
  background: linear-gradient(135deg, rgba(64,224,208,0.1) 0%, rgba(72,212,196,0.15) 100%);
  border-color: #40E0D0;
  grid-column: span 2;
}
.result-box.highlight strong {
  background: linear-gradient(135deg, #40E0D0 0%, #009988 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
}

/* DONUT */
.donut-wrap { margin-top: 20px; text-align: center; }
.donut-wrap canvas { max-width: 240px; max-height: 150px; margin: auto; }
.legend {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.legend span { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.legend i { width: 12px; height: 12px; display: inline-block; border-radius: 2px; }
.legend i.invested { background: #9200C5; }
.legend i.interest { background: #40E0D0; }

/* STACK HEADER */
.stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-header h2 { margin: 0; font-size: 20px; font-weight: 600; color: #333; }

/* BADGE */
.badge-info {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* SUMMARY BOX */
.summary-box {
  background: linear-gradient(135deg, rgba(64,224,208,0.05) 0%, rgba(72,212,196,0.08) 100%);
  border: 1.5px solid rgba(64,224,208,0.3);
  border-radius: 10px;
  padding: 18px 20px;
}
.summary-box h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #333; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed #E8E4EC;
  font-size: 13px;
  color: #555;
}
.summary-row:last-child { border-bottom: none; }
.summary-row strong {
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
}

/* TABLE */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.comparison-table th {
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 8px 0 0; }
.comparison-table td { padding: 9px 12px; border-bottom: 1px solid #f0edf4; font-size: 13px; }
.comparison-table tr:hover td { background: rgba(146,0,197,0.04); }
.comparison-table tr.row-paying td { background: rgba(64,224,208,0.06); }
.comparison-table tr.row-paying:hover td { background: rgba(64,224,208,0.12) !important; }
.comparison-table tr.row-lapsed td { color: #bbb; }

.tag-paying {
  display: inline-block;
  background: linear-gradient(135deg, #40E0D0, #009988);
  color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px; margin-left: 4px;
  vertical-align: middle;
}
.tag-covered {
  display: inline-block;
  background: rgba(146,0,197,0.12);
  color: #9200C5; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px; margin-left: 4px;
  vertical-align: middle;
}

/* FAQ */
.faq-section {
  margin-top: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #E8E4EC;
}
.faq-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-item {
  border-bottom: 1px solid #f0edf4;
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  margin: 0 0 0;
  padding-right: 24px;
  position: relative;
  user-select: none;
}
.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: #9200C5;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item h3[aria-expanded="true"]::after { content: '-'; }
.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
/* .open class + max-height set by global.js dynamically — no display:none needed */

/* DISCLAIMER */
.disclaimer {
  background: linear-gradient(135deg, rgba(64,224,208,0.08) 0%, rgba(146,0,197,0.05) 100%);
  border: 1.5px solid rgba(64,224,208,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}
.disclaimer strong { color: #007a6e; }

/* OPTION TABS */
.option-tabs {
  display: flex;
  background: #f2eef7;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid #E8E4EC;
  margin-bottom: 6px;
  gap: 4px;
}
.option-tab {
  flex: 1;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
  line-height: 1.3;
}
.option-tab .opt-sub { display: block; font-size: 10px; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.option-tab.active {
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(146,0,197,0.28);
}

/* CALLOUT */
.jutv-callout {
  background: linear-gradient(135deg, rgba(146,0,197,0.05) 0%, rgba(64,224,208,0.07) 100%);
  border: 1.5px solid rgba(146,0,197,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}
.jutv-callout strong { color: #7a00a8; }
.jutv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jutv-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; border: 1.5px solid;
}
.jutv-badge.purple { background: rgba(146,0,197,0.08); color: #9200C5; border-color: rgba(146,0,197,0.25); }
.jutv-badge.teal   { background: rgba(64,224,208,0.1); color: #009988; border-color: rgba(64,224,208,0.35); }

/* REBATE STRIP */
.rebate-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.rebate-chip {
  background: rgba(64,224,208,0.1);
  border: 1px solid rgba(64,224,208,0.3);
  color: #007a6e;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}

/* RELATED CALCULATORS */
.related-section { margin-top: 50px; margin-bottom: 20px; }
.related-section .section-header { text-align: center; margin-bottom: 28px; }
.related-section .section-title {
  font-size: 26px; font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: block;
}
.related-section .section-desc { font-size: 15px; color: #666; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: #fff;
  border: 2px solid #E8E4EC;
  border-radius: 12px;
  padding: 28px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
  justify-content: center;
}
.related-card:hover {
  transform: translateY(-6px);
  border-color: #40E0D0;
  box-shadow: 0 12px 32px rgba(64,224,208,0.2);
}
/* Icon bg/hover from global.css */
.related-section .related-icon { width: 56px; height: 56px; border-radius: 12px; }
.related-section .related-icon svg { width: 28px; height: 28px; }
.related-text h3 { font-size: 15px; font-weight: 700; color: #222; margin: 0 0 4px; line-height: 1.3; }
.related-text p  { font-size: 12px; color: #777; margin: 0; line-height: 1.4; }

/* DESCRIPTION SECTION */
.desc-section { margin-top: 0; }
.desc-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.desc-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 14px;
}
.desc-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 22px 0 10px;
}
.desc-section p:last-child { margin-bottom: 0; }

/* MOBILE */
@media (max-width: 768px) {
  .page-title { font-size: 26px; }
  .calc-grid  { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  .result-box.highlight { grid-column: span 1; }
  .calc-card  { padding: 18px; }
  .faq-section { padding: 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .option-tabs { gap: 2px; }
  .option-tab  { font-size: 12px; padding: 8px 6px; }
  .option-tab .opt-sub { font-size: 9px; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table th, .comparison-table td { padding: 7px 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}