/* STYLING FOR THE PRICE & AMORTIZATION CALCULATOR */

/* Split Layout */
.calc-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .calc-container {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-mobile);
  }
}

/* Form Panel Card */
.calc-card-input {
  background-color: var(--color-white);
  border: 1px solid #ECECEC;
  border-radius: var(--border-radius-card);
  padding: 32px;
  box-shadow: var(--shadow-default);
}

.calc-card-input h3 {
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 24px;
  font-size: 1.25rem;
  text-transform: uppercase;
}

/* Form Checkbox Layout */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* Slider Style */
.slider-container {
  margin: 20px 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.slider-input {
  width: 100%;
  height: 6px;
  background: #EAEAEA;
  border-radius: 5px;
  outline: none;
  accent-color: var(--color-primary);
  cursor: pointer;
  -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-default);
}

/* Result Column Card */
.calc-card-result {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--border-radius-card);
  padding: 32px;
  box-shadow: var(--shadow-dark);
  position: sticky;
  top: 100px;
  z-index: 10;
}

.calc-card-result h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.total-rolling-box {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.total-rolling-box span {
  display: block;
  font-size: 0.875rem;
  color: #B0B0C0;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: bold;
}

.total-rolling-box h2 {
  color: var(--color-white);
  font-size: 2.25rem;
  font-weight: 800;
}

/* Detail Cost Breakdown List */
.cost-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  padding-bottom: 8px;
}

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

.cost-label {
  color: #B0B0C0;
}

.cost-value {
  font-weight: 600;
  color: var(--color-white);
}

/* Installment Output Box */
.installment-summary-box {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
}

.installment-summary-box h4 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Amortization Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid #ECECEC;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-default);
  background-color: var(--color-white);
}

.amortization-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.amortization-table th, 
.amortization-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F0F0F0;
}

.amortization-table th {
  background-color: var(--color-accent-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
}

.amortization-table tr:hover {
  background-color: #FAF9F9;
}
