/**
 * Pró-Luz Calculadora de Disjuntor — self-contained styles.
 * Uses the theme's --pl-* custom properties (colors/fonts) but does not
 * depend on the theme's own CSS files being loaded in any particular order,
 * since custom properties resolve at paint time.
 */

.pl-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

.pl-calculator {
  margin-top: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.pl-calculator__box {
  background: var(--pl-brand-soft);
  border: 1px solid var(--pl-brand-soft-2);
  border-radius: 12px;
  padding: 28px;
}

.pl-calculator__intro {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.pl-calculator__intro-text { flex: 1; min-width: 0; }

.pl-calculator__badge {
  background: var(--pl-brand-btn);
  color: #fff;
  font-family: var(--pl-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.pl-calculator__headline {
  font-family: var(--pl-font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pl-brand-title);
  margin: 12px 0 0;
  line-height: 1.25;
}

.pl-calculator__lead {
  font-size: 13px;
  color: var(--pl-muted);
  margin-top: 10px;
  max-width: 420px;
  line-height: 1.5;
}

.pl-calculator__steps { display: flex; gap: 12px; flex-shrink: 0; }

.pl-calculator__step {
  background: #fff;
  border: 1px solid var(--pl-brand-soft-2);
  border-radius: 10px;
  padding: 14px;
  width: 130px;
  box-sizing: border-box;
}

.pl-calculator__step-n {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pl-brand-btn); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.pl-calculator__step-t { font-size: 12px; font-weight: 700; margin-top: 8px; color: var(--pl-text); }
.pl-calculator__step-d { font-size: 11px; color: var(--pl-muted-2); margin-top: 4px; line-height: 1.35; }

.pl-calculator__panel {
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: 10px;
  margin-top: 20px;
  padding: 22px;
  display: flex;
  gap: 28px;
}

.pl-calculator__aside { width: 280px; flex-shrink: 0; }
.pl-calculator__aside-title { font-family: var(--pl-font-display); font-weight: 700; font-size: 16px; margin: 0; color: var(--pl-text); }
.pl-calculator__aside-text { font-size: 12px; color: var(--pl-muted-2); margin-top: 8px; line-height: 1.5; }
.pl-calculator__aside-media {
  aspect-ratio: 16/10; border-radius: 8px; margin-top: 14px;
  background: url("calc-illustration.jpg") center/cover no-repeat;
}

.pl-calculator__fields { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pl-calculator__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-calculator__label { font-size: 12px; font-weight: 700; width: 70px; flex-shrink: 0; color: var(--pl-text); }
.pl-calculator__pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pl-calculator__pill {
  border: 1px solid var(--pl-border-2); color: var(--pl-muted);
  font-size: 12px; border-radius: 16px; padding: 6px 14px;
  cursor: pointer; background: #fff; line-height: 1.2;
}
.pl-calculator__pill.is-active {
  background: var(--pl-brand-btn); color: #fff; border-color: var(--pl-brand-btn);
}

.pl-calculator__inputs { display: flex; gap: 20px; }
.pl-calculator__field { flex: 1; min-width: 0; }
.pl-calculator__field-label { display: block; font-size: 12px; font-weight: 700; color: var(--pl-text); margin-bottom: 8px; }
.pl-calculator__stepper { display: flex; align-items: center; gap: 8px; }
.pl-calculator__input {
  border: 1px solid var(--pl-border-2); border-radius: 6px;
  padding: 8px 14px; font-size: 13px; flex: 1; min-width: 0; background: #fff;
}
.pl-calculator__unit { color: var(--pl-muted-3); font-size: 11px; }
.pl-calculator__spin {
  width: 30px; height: 30px; border: 1px solid var(--pl-border-2); border-radius: 6px;
  background: #fff; color: var(--pl-muted-2); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0;
}
.pl-calculator__submit {
  display: block; width: 100%; background: var(--pl-brand-btn); color: #fff;
  text-align: center; font-family: var(--pl-font-display); font-weight: 700; font-size: 14px;
  border-radius: 8px; padding: 13px; border: 0; cursor: pointer; margin-top: auto;
}

@media (max-width: 991px) {
  .pl-calculator__intro, .pl-calculator__panel { flex-direction: column; }
  .pl-calculator__aside { width: 100%; }
  .pl-calculator__steps { flex-wrap: wrap; }
}
