/* calculator.css - Homepage treatment price calculator */

.calc-section {
  background: var(--white);
  border-bottom: 1px solid var(--primary-200);
}

.calc-header {
  text-align: center;
}

.calc-header .section-subtitle {
  margin-bottom: 40px;
}

.calc-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--primary-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--white);
}

.calc-inputs {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--primary-200);
  border-radius: var(--border-radius-md);
  background: var(--primary-50);
}

.calc-row-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.calc-row-label label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-900);
}

.calc-unit-price {
  font-size: 0.875rem;
  color: var(--primary-600);
}

.calc-stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-200);
  border-radius: var(--border-radius-full);
  background: var(--white);
  overflow: hidden;
}

.calc-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent-teal-dark);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.calc-stepper button:hover:not(:disabled) {
  background: var(--accent-teal-light);
}

.calc-stepper button:disabled {
  color: var(--primary-200);
  cursor: default;
}

.calc-stepper input {
  width: 52px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--primary-200);
  border-right: 1px solid var(--primary-200);
  text-align: center;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  background: var(--white);
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-stepper input:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: -2px;
}

.calc-note {
  font-size: 0.85rem;
  color: var(--primary-600);
  line-height: 1.5;
}

.calc-summary {
  padding: 36px;
  background: var(--primary-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-summary-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal-light);
}

.calc-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  min-height: 48px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.calc-line span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--white);
  font-weight: 600;
}

.calc-total {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.calc-total-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.calc-total-value {
  font-family: var(--font-primary);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.calc-total-value.is-muted {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.calc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.calc-actions .btn-whatsapp {
  width: 100%;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.calc-discount-link {
  font-size: 0.875rem;
  color: var(--accent-teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calc-discount-link:hover {
  color: var(--white);
}

.calc-error {
  font-size: 0.85rem;
  color: #fecaca;
  text-align: center;
}

@media (max-width: 860px) {
  .calc-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .calc-inputs,
  .calc-summary {
    padding: 24px 18px;
  }
  .calc-row {
    padding: 14px;
  }
  .calc-row-label label {
    font-size: 1rem;
  }
  .calc-stepper button {
    width: 38px;
  }
  .calc-stepper input {
    width: 44px;
  }
  .calc-total-value {
    font-size: 2rem;
  }
}
