/* ==========================================================================
   TIMKHOANVAY.COM - LOAN CALCULATOR STYLES
   High-legibility typography & inputs
   ========================================================================== */

.calc-page-hero {
  background: linear-gradient(180deg, #eef6ff 0%, #f8fafc 100%);
  padding: 3.5rem 0 2.25rem;
  text-align: center;
}
.calc-page-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #081938;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.calc-page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.calc-app-grid {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0 4.5rem;
  align-items: start;
}

/* Calculator Input Panel */
.calc-input-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.calc-panel-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: #081938;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--border-color);
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-field-label {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-main);
}
.calc-field-val {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.2rem;
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-input-box {
  width: 100%;
  padding: 0.85rem 1.15rem;
  padding-right: 3.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}
.calc-input-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.14);
}
.calc-unit-badge {
  position: absolute;
  right: 1.15rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-light);
  pointer-events: none;
}

/* Radio Method Selector */
.method-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.method-radio-label {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
}
.method-radio-label input {
  display: none;
}
.method-radio-label.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.method-radio-title {
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.method-radio-desc {
  font-size: 0.82rem;
  color: var(--text-light);
}
.method-radio-label.active .method-radio-desc {
  color: #1e40af;
}

/* Calculator Result Panel */
.calc-result-panel {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.calc-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.summary-stat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.summary-stat-card.highlight {
  background: linear-gradient(135deg, #0056d2 0%, #003b95 100%);
  color: #ffffff;
  border-color: transparent;
}
.summary-stat-card.highlight .stat-label {
  color: rgba(255, 255, 255, 0.88);
}
.summary-stat-card.highlight .stat-val {
  color: #ffffff;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
}
.stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #081938;
  letter-spacing: -0.5px;
}
.stat-note {
  font-size: 0.85rem;
  color: var(--text-light);
}
.summary-stat-card.highlight .stat-note {
  color: rgba(255, 255, 255, 0.8);
}

/* Schedule Table */
.schedule-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.schedule-table-header {
  padding: 1.4rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-color);
  background: #f8fafc;
}
.schedule-table-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #081938;
}
.schedule-actions {
  display: flex;
  gap: 0.75rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.98rem;
}
.schedule-table th {
  background: #f8fafc;
  padding: 1rem 1.15rem;
  font-weight: 800;
  color: #475569;
  font-size: 0.88rem;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border-color);
}
.schedule-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}
.schedule-table td:first-child, .schedule-table th:first-child {
  text-align: center;
}
.schedule-table tr:hover {
  background: #f8fbff;
}

.schedule-table-scroll {
  max-height: 520px;
  overflow-y: auto;
}

/* Print Styles */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .calc-input-panel, .schedule-actions, .breadcrumb-nav {
    display: none !important;
  }
  .calc-app-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .schedule-table-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 992px) {
  .calc-app-grid {
    grid-template-columns: 1fr;
  }
  .calc-summary-cards {
    grid-template-columns: 1fr;
  }
}
