@import url("../calculators-common.css");

/* Comparison Form Grid */
.comparison-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .comparison-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Specific Card Styles */
.card-fixed {
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.card-floating {
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

/* Card Headers */
.card-header-fixed,
.card-header-floating {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.card-header-fixed {
  color: #4f46e5; /* indigo-600 */
}

.card-header-floating {
  color: #2563eb; /* blue-600 */
}

/* Comparisons */
.comparison-col-fixed {
  color: #4f46e5; /* indigo-600 */
  font-weight: 700;
}

.comparison-col-floating {
  color: #2563eb; /* blue-600 */
  font-weight: 700;
}

.comparison-text-interest {
  color: #dc2626; /* red-600 */
  font-weight: 600;
}

.comparison-row-highlight {
  background-color: rgba(79, 70, 229, 0.05); /* faint indigo */
  font-weight: 700;
}
.comparison-text-total {
  color: #10b981; /* green-600 for total payment */
}

/* Submit Button Container */
.calc-submit-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.calc-btn-wide {
  width: 100%;
}
@media (min-width: 768px) {
  .calc-btn-wide {
    width: 50%;
  }
}

/* Tenure Text (Hidden by default) */
.calc-tenure-preview {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.875rem; /* text-sm */
  font-weight: 600;
  color: var(--text-muted);
}
