.epc-calculator,
.epc-calculator * {
  box-sizing: border-box;
}

.epc-calculator {
  --epc-accent: #b87932;
  --epc-dark: #17221d;
  --epc-ink: #25302b;
  --epc-muted: #65716b;
  --epc-line: #dfe3df;
  --epc-soft: #f6f5f1;
  --epc-white: #fff;
  width: min(1180px, 100%);
  margin: 32px auto;
  color: var(--epc-ink);
  font-family: inherit;
  line-height: 1.5;
}

.epc-calculator button,
.epc-calculator input,
.epc-calculator select {
  font: inherit;
}

.epc-hero {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.epc-eyebrow,
.epc-kicker {
  display: block;
  margin: 0 0 7px;
  color: var(--epc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.epc-hero h2 {
  margin: 0 0 10px;
  color: var(--epc-dark);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.epc-hero p {
  margin: 0;
  color: var(--epc-muted);
  font-size: 17px;
}

.epc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .85fr);
  overflow: hidden;
  border: 1px solid var(--epc-line);
  border-radius: 22px;
  background: var(--epc-white);
  box-shadow: 0 18px 60px rgba(23, 34, 29, .09);
}

.epc-form-column {
  padding: clamp(22px, 4vw, 42px);
}

.epc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.epc-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--epc-line);
  color: #98a09c;
  font-size: 12px;
  font-weight: 800;
}

.epc-steps span.is-active {
  border-color: var(--epc-accent);
  color: var(--epc-accent);
}

.epc-steps small {
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.epc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.epc-section-heading h3,
.epc-options legend {
  margin: 0;
  color: var(--epc-dark);
  font-size: 22px;
  font-weight: 800;
}

.epc-section-heading p {
  margin: 0;
  color: var(--epc-muted);
  font-size: 13px;
}

.epc-room {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--epc-line);
  border-radius: 15px;
  background: #fdfdfc;
}

.epc-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.epc-room-header label {
  flex: 1;
  margin: 0;
}

.epc-room-name {
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--epc-dark) !important;
  box-shadow: none !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.epc-remove-room {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #a24d42;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.epc-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.epc-calculator label > span:first-child,
.epc-openings label > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #3e4944;
  font-size: 13px;
  font-weight: 700;
}

.epc-unit {
  position: relative;
}

.epc-unit input,
.epc-option-grid select,
.epc-stepper {
  width: 100%;
  min-height: 47px;
  border: 1px solid #d4d9d5;
  border-radius: 9px;
  background: var(--epc-white);
  color: var(--epc-dark);
  box-shadow: none;
}

.epc-unit input {
  padding: 10px 43px 10px 12px !important;
}

.epc-unit b {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #7a857f;
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.epc-calculator input:focus,
.epc-calculator select:focus,
.epc-calculator button:focus-visible,
.epc-calculator a:focus-visible {
  border-color: var(--epc-accent);
  outline: 3px solid color-mix(in srgb, var(--epc-accent) 22%, transparent);
  outline-offset: 1px;
}

.epc-openings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.epc-stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  overflow: hidden;
}

.epc-stepper button {
  border: 0;
  background: #f2f3f1;
  color: var(--epc-dark);
  cursor: pointer;
}

.epc-stepper input {
  width: 100%;
  padding: 8px !important;
  border: 0 !important;
  border-right: 1px solid var(--epc-line) !important;
  border-left: 1px solid var(--epc-line) !important;
  border-radius: 0 !important;
  text-align: center;
  appearance: textfield;
}

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

.epc-check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  margin-top: 17px;
  cursor: pointer;
}

.epc-check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.epc-checkbox {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid #b6bdb9;
  border-radius: 6px;
  background: var(--epc-white);
}

.epc-check-row input:checked + .epc-checkbox {
  border-color: var(--epc-accent);
  background: var(--epc-accent);
}

.epc-check-row input:checked + .epc-checkbox::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.epc-check-row input:focus-visible + .epc-checkbox {
  outline: 3px solid color-mix(in srgb, var(--epc-accent) 22%, transparent);
}

.epc-check-row strong,
.epc-check-row small {
  display: block;
}

.epc-check-row strong {
  color: var(--epc-dark);
  font-size: 13px;
}

.epc-check-row small {
  color: var(--epc-muted);
  font-size: 11px;
}

.epc-accent-field {
  display: block;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px dashed var(--epc-line);
}

.epc-accent-field > small {
  display: block;
  margin-top: 5px;
  color: var(--epc-muted);
  font-size: 11px;
}

.epc-add-room {
  width: 100%;
  margin: 0 0 30px;
  padding: 13px;
  border: 1px dashed #aeb6b1;
  border-radius: 10px;
  background: transparent;
  color: var(--epc-dark);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.epc-add-room:hover {
  border-color: var(--epc-accent);
  color: var(--epc-accent);
}

.epc-options {
  margin: 0;
  padding: 0;
  border: 0;
}

.epc-options legend {
  width: 100%;
  margin-bottom: 17px;
}

.epc-options legend .epc-kicker {
  font-size: 12px;
}

.epc-option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.epc-option-grid select {
  padding: 10px 38px 10px 12px;
}

.epc-options > .epc-check-row {
  padding: 15px;
  border: 1px solid var(--epc-line);
  border-radius: 10px;
  background: var(--epc-soft);
}

.epc-error {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid #b44f42;
  border-radius: 7px;
  background: #fff1ef;
  color: #7a2c24;
  font-size: 13px;
  font-weight: 700;
}

.epc-calculate,
.epc-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 13px 20px;
  border: 1px solid var(--epc-dark);
  border-radius: 10px;
  background: var(--epc-dark);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.epc-calculate:hover,
.epc-whatsapp:hover {
  background: #26362e;
  transform: translateY(-1px);
}

.epc-results {
  display: flex;
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  background: var(--epc-dark);
  color: #fff;
}

.epc-empty-state {
  align-self: center;
  margin: auto;
  text-align: center;
}

.epc-paint-icon {
  position: relative;
  width: 72px;
  height: 58px;
  margin: 0 auto 25px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 4px 4px 13px 13px;
}

.epc-paint-icon::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 8px;
  width: 52px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: var(--epc-dark);
}

.epc-paint-icon span {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 17px;
  width: 36px;
  height: 12px;
  border-radius: 50%;
  background: var(--epc-accent);
}

.epc-empty-state h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 21px;
}

.epc-empty-state p {
  max-width: 290px;
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.epc-result-content {
  width: 100%;
}

.epc-result-head {
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.epc-result-head h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 27px;
}

.epc-result-head p {
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 12px;
}

.epc-total-box {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--epc-accent) 58%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--epc-accent) 17%, transparent);
}

.epc-total-box > span,
.epc-total-box > p {
  display: block;
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.epc-total-box strong {
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
}

.epc-total-box strong small {
  font-size: 15px;
}

.epc-products {
  display: grid;
  gap: 10px;
}

.epc-product {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.epc-swatch {
  width: 24px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 5px;
  background: #e4ded3;
}

.epc-accent-paint .epc-swatch {
  background: var(--epc-accent);
}

.epc-ceiling-paint .epc-swatch {
  background: #fff;
}

.epc-primer .epc-swatch {
  background: #aeb8b2;
}

.epc-product h4,
.epc-product p,
.epc-product-copy small {
  margin: 0;
}

.epc-product h4 {
  color: #fff;
  font-size: 13px;
}

.epc-product p,
.epc-product-copy small {
  color: rgba(255,255,255,.58);
  font-size: 10px;
}

.epc-product-copy small strong {
  color: rgba(255,255,255,.8);
}

.epc-liters {
  color: #fff;
  font-size: 20px;
  white-space: nowrap;
}

.epc-liters small {
  font-size: 11px;
}

.epc-result-actions {
  margin-top: 21px;
}

.epc-whatsapp {
  margin: 0 0 8px;
  border-color: #2d9d58;
  background: #2d9d58;
}

.epc-whatsapp:hover {
  background: #238449;
}

.epc-copy,
.epc-recalculate {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.epc-copy:hover,
.epc-recalculate:hover {
  border-color: rgba(255,255,255,.65);
}

.epc-mini-note {
  margin: 16px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  line-height: 1.5;
}

.epc-note {
  max-width: 940px;
  margin: 17px auto 0;
  color: var(--epc-muted);
  font-size: 11px;
  text-align: center;
}

.epc-note strong {
  color: var(--epc-ink);
}

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

  .epc-results {
    min-height: 360px;
  }
}

@media (max-width: 580px) {
  .epc-calculator {
    margin: 20px auto;
  }

  .epc-hero {
    padding: 0 12px;
  }

  .epc-form-column,
  .epc-results {
    padding: 22px 17px;
  }

  .epc-layout {
    border-radius: 15px;
  }

  .epc-section-heading {
    display: block;
  }

  .epc-section-heading p {
    margin-top: 4px;
  }

  .epc-room {
    padding: 17px 14px;
  }

  .epc-dimensions {
    grid-template-columns: repeat(2, 1fr);
  }

  .epc-dimensions label:last-child {
    grid-column: 1 / -1;
  }

  .epc-openings,
  .epc-option-grid {
    grid-template-columns: 1fr;
  }

  .epc-product {
    grid-template-columns: 22px 1fr auto;
  }

  .epc-steps small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epc-calculator *,
  .epc-calculator *::before,
  .epc-calculator *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

