.tpc-calculator {
  --tpc-bg: linear-gradient(180deg, #f7fbf8 0%, #eef7f1 100%);
  --tpc-card: #ffffff;
  --tpc-border: #d9e8dc;
  --tpc-text: #183024;
  --tpc-muted: #5f7568;
  --tpc-accent: #2f7d4a;
  --tpc-accent-soft: #e8f5ec;
  --tpc-shadow: 0 20px 45px rgba(19, 54, 33, 0.08);
  margin: 2rem 0;
  color: var(--tpc-text);
}

.tpc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.tpc-main,
.tpc-summary-card {
  background: var(--tpc-bg);
  border: 1px solid var(--tpc-border);
  border-radius: 24px;
  box-shadow: var(--tpc-shadow);
}

.tpc-main {
  padding: 28px;
}

.tpc-summary-card {
  position: sticky;
  top: 24px;
  padding: 24px;
  background: var(--tpc-card);
}

.tpc-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tpc-accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.tpc-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.tpc-header p {
  margin: 0 0 20px;
  color: var(--tpc-muted);
}

.tpc-form-row,
.tpc-checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.tpc-form-row label,
.tpc-checkbox-row span {
  font-weight: 600;
}

.tpc-form-row input,
.tpc-form-row select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--tpc-border);
  background: #fff;
  padding: 0 14px;
  font-size: 16px;
  color: var(--tpc-text);
}

.tpc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tpc-section {
  margin-top: 20px;
}

.tpc-item-card {
  background: #fff;
  border: 1px solid var(--tpc-border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}

.tpc-item-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.tpc-checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--tpc-accent-soft);
  border: 1px solid #d6ebdd;
  border-radius: 14px;
  padding: 12px 14px;
}

.tpc-checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.tpc-summary-label {
  margin: 0 0 8px;
  color: var(--tpc-muted);
  font-weight: 600;
}

.tpc-price-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.tpc-price-min,
.tpc-price-max {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--tpc-accent);
}

.tpc-price-sep {
  color: var(--tpc-muted);
  font-weight: 600;
}

.tpc-confidence {
  margin: 0 0 18px;
  color: var(--tpc-text);
  font-weight: 600;
}

.tpc-breakdown {
  display: grid;
  gap: 10px;
}

.tpc-breakdown-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e6efe9;
  font-size: 0.95rem;
}

.tpc-breakdown-line strong {
  white-space: nowrap;
}

.tpc-footer-note {
  margin-top: 22px;
  border-top: 1px solid #dceadf;
  padding-top: 16px;
}

.tpc-lead-box {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--tpc-border);
  border-radius: 18px;
  padding: 18px;
}

.tpc-lead-box h3 {
  margin: 0 0 8px;
}

.tpc-lead-message {
  width: 100%;
  min-height: 160px;
  border-radius: 14px;
  border: 1px solid var(--tpc-border);
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--tpc-text);
}

.tpc-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--tpc-accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.tpc-copy-status {
  margin: 10px 0 0;
  color: var(--tpc-muted);
  font-size: 0.95rem;
}

.tpc-footer-note p {
  margin: 0 0 10px;
  color: var(--tpc-muted);
}

.tpc-cta {
  color: var(--tpc-text) !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .tpc-shell {
    grid-template-columns: 1fr;
  }

  .tpc-summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .tpc-main,
  .tpc-summary-card {
    border-radius: 18px;
    padding: 18px;
  }

  .tpc-form-grid {
    grid-template-columns: 1fr;
  }
}
