/* N&N Home Service – villanyszerelési árkalkulátor */
:root {
  --ep-green: #12623d;
  --ep-green-dark: #0b3f2a;
  --ep-green-soft: #eaf5ee;
  --ep-ink: #17251f;
  --ep-muted: #637169;
  --ep-line: #dce7e0;
  --ep-surface: #ffffff;
  --ep-page: #f4f7f5;
  --ep-shadow: 0 12px 34px rgba(16, 48, 32, .08);
}

.electrical-prices-page,
.electrical-prices-page * { box-sizing: border-box; }
.electrical-prices-page {
  width: min(1200px, calc(100% - 36px));
  margin: 28px auto 64px;
  color: var(--ep-ink);
  font-family: inherit;
  line-height: 1.55;
}
.electrical-prices-page h1,
.electrical-prices-page h2,
.electrical-prices-page h3,
.electrical-prices-page p { margin-top: 0; }
.electrical-prices-page a { text-decoration: none; }

/* Hero */
.ep-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  min-height: 300px;
  padding: clamp(28px, 5vw, 58px);
  color: #fff;
  border-radius: 26px;
  background: radial-gradient(circle at 82% 18%, rgba(95, 190, 128, .3), transparent 32%), linear-gradient(125deg, #092e20 0%, #105b38 58%, #16804a 100%);
  box-shadow: 0 18px 42px rgba(10, 61, 37, .2);
}
.ep-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  right: 12%;
  bottom: -230px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 75px rgba(255,255,255,.025);
}
.ep-hero-copy { max-width: 650px; }
.ep-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #c7f4d7;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
}
.ep-eyebrow::before { content: ""; width: 25px; height: 2px; background: #8ce5ad; }
.ep-hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.ep-hero h1 span { color: #a9efbf; }
.ep-hero-copy > p { max-width: 560px; margin-bottom: 22px; color: #e0eee5; font-size: 1.05rem; }
.ep-hero-points { display: flex; flex-wrap: wrap; gap: 9px; }
.ep-hero-points span {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f5fff8;
  font-size: .83rem;
  font-weight: 650;
}
.ep-hero-stamp {
  display: flex;
  flex: 0 0 245px;
  flex-direction: column;
  gap: 10px;
  padding: 23px 20px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 18px;
  background: rgba(3, 34, 22, .45);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotate(2deg);
}
.ep-hero-stamp strong { color: #c5f1d2; font-size: .72rem; letter-spacing: .06em; line-height: 1.5; }
.ep-hero-stamp b { color: #fff; font-size: 1.15rem; line-height: 1.25; }

/* Category navigation */
.ep-category-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0 26px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid var(--ep-line);
  border-radius: 15px;
  background: var(--ep-surface);
  box-shadow: 0 5px 18px rgba(18, 56, 36, .035);
  scrollbar-width: thin;
}
.ep-category-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 9px;
  color: #42564b;
  font-size: .86rem;
  font-weight: 750;
  transition: background .18s ease, color .18s ease;
}
.ep-category-nav a:hover,
.ep-category-nav a.active { color: #fff; background: var(--ep-green); }

/* Main columns and panels */
.ep-main-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 22px; align-items: start; scroll-margin-top: 24px; }
.ep-panel {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 27px);
  border: 1px solid var(--ep-line);
  border-radius: 19px;
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow);
}
.ep-work-panel { min-height: 320px; }
.ep-right-column { display: grid; gap: 18px; min-width: 0; }
.ep-panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 21px; }
.ep-step {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ep-green-soft);
  color: var(--ep-green);
  font-size: 1.05rem;
  font-weight: 900;
}
.ep-panel-heading h2 { margin: 0 0 5px; color: var(--ep-ink); font-size: clamp(1.08rem, 2vw, 1.3rem); font-weight: 850; line-height: 1.3; }
.ep-panel-heading p { margin: 0; color: var(--ep-muted); font-size: .88rem; line-height: 1.5; }
.ep-work-list { display: grid; gap: 10px; }
.ep-work-list > p { margin: 0; padding: 16px; border-radius: 10px; background: #f6f9f7; color: var(--ep-muted); }
/* Common generated work-item variants */
.ep-work-list label,
.ep-work-item,
.ep-work-row,
.ep-price-item {
  min-width: 0;
}
.ep-work-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}
.ep-work-list label:has(input:checked) { border-color: #72bd8d; background: #f2faf4; }
.ep-work-list input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ep-green); }
.ep-work-list input[type="number"] { width: 78px; max-width: 30%; margin-left: auto; padding: 8px 9px; border: 1px solid #cbd8d0; border-radius: 8px; font: inherit; }
.ep-work-list button { border: 0; border-radius: 8px; background: var(--ep-green); color: white; font: inherit; font-weight: 750; cursor: pointer; }
.ep-footnote { margin: 17px 0 0; color: var(--ep-muted); font-size: .8rem; line-height: 1.6; }

/* Travel map */
.ep-electrical-map-wrap { display: grid; gap: 12px; }
.ep-electrical-map-wrap #ep-electrical-map { height: 360px; min-height: 300px; border-radius: 14px; overflow: hidden; background: #eef2f4; z-index: 1; }
.ep-map-selected-fee { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--ep-line); border-radius: 12px; background: #f7faf8; }
.ep-map-selected-fee span { font-size: .85rem; color: var(--ep-muted); }
.ep-map-selected-fee strong { font-size: 1.35rem; color: var(--ep-green); }
.ep-map-selected-fee small { color: var(--ep-muted); }
.ep-electrical-marker { display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.ep-electrical-marker-pin { width: 25px; height: 25px; border: 3px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px #0004; display: flex; align-items: center; justify-content: center; }
.ep-electrical-marker-pin span { transform: rotate(45deg); font-size: 12px; color: white; font-weight: bold; }
.ep-electrical-marker-label { margin-top: 5px; background: #fff; padding: 3px 6px; border-radius: 5px; font-size: 11px; font-weight: 700; box-shadow: 0 1px 5px #0003; }
.ep-marker-green { background: #16834b; }
.ep-marker-yellow { background: #d4a000; }
.ep-marker-orange { background: #e77b21; }
.ep-marker-red { background: #c83c3c; }
.ep-electrical-popup strong { font-size: 15px; }
.ep-electrical-popup b { color: var(--ep-green); font-size: 16px; }
.ep-electrical-popup button { margin-top: 7px; padding: 7px 10px; border: 0; border-radius: 6px; background: var(--ep-green); color: white; cursor: pointer; }

/* Material choice */
.ep-material-options { display: grid; gap: 10px; position: relative; }
.ep-material-options label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--ep-line); border-radius: 11px; cursor: pointer; }
.ep-material-options label:has(input:checked) { border-color: #72bd8d; background: #f2faf4; }
.ep-material-options input { margin-top: 4px; accent-color: var(--ep-green); }
.ep-material-options label span { display: grid; gap: 3px; }
.ep-material-options strong { color: var(--ep-ink); font-size: .9rem; }
.ep-material-options small { color: var(--ep-muted); font-size: .8rem; line-height: 1.45; }
.ep-cart { position: absolute; right: 3px; top: -48px; font-size: 1.3rem; opacity: .6; }

/* Total summary */
.ep-summary-panel { padding: 23px; border-radius: 19px; color: #fff; background: linear-gradient(145deg, #0b3c28, #12623d 68%, #17754a); box-shadow: 0 14px 30px rgba(12, 69, 40, .18); }
.ep-summary-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ep-summary-title > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: rgba(255,255,255,.13); font-size: 1.15rem; }
.ep-summary-title h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.ep-summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); color: #dcece2; font-size: .88rem; }
.ep-summary-row strong { flex: 0 0 auto; color: #fff; text-align: right; }
.ep-grand-total { display: grid; gap: 4px; padding: 17px 0 8px; }
.ep-grand-total span { color: #d8ecdf; font-size: .85rem; }
.ep-grand-total strong { color: #b9f2cb; font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.2; }
.ep-summary-panel > p { margin: 13px 0 0; color: #d0e4d7; font-size: .78rem; line-height: 1.55; }
.ep-quote-button,
.ep-phone-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 13px 18px; border-radius: 12px; font-weight: 850; text-align: center; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.ep-quote-button { color: #fff; background: #16834b; box-shadow: 0 8px 18px rgba(22, 131, 75, .2); }
.ep-quote-button:hover { color: #fff; background: #0e6a3a; transform: translateY(-1px); box-shadow: 0 12px 23px rgba(22, 131, 75, .25); }
.ep-phone-button { border: 1px solid var(--ep-line); color: var(--ep-green); background: #fff; }
.ep-phone-button:hover { background: var(--ep-green-soft); }

/* Benefit cards */
.ep-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.ep-benefits article { display: flex; gap: 12px; padding: 19px 16px; border: 1px solid var(--ep-line); border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(16,48,32,.045); }
.ep-benefits article > span { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--ep-green-soft); color: var(--ep-green); font-size: 1.1rem; font-weight: 900; }
.ep-benefits strong { display: block; margin: 1px 0 5px; color: var(--ep-ink); font-size: .9rem; line-height: 1.35; }
.ep-benefits p { margin: 0; color: var(--ep-muted); font-size: .8rem; line-height: 1.5; }

/* Route-search controls used by the shared route calculator */
.route-search-control { display: grid; gap: 7px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--ep-line); border-radius: 12px; background: #fff; }
.route-search-control label { font-weight: 700; color: #173f2e; }
.route-search-row { display: flex; gap: 8px; }
.route-search-row input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid #cbd8d1; border-radius: 8px; font: inherit; }
.route-search-row button { padding: 10px 13px; border: 0; border-radius: 8px; background: var(--ep-green); color: #fff; font-weight: 700; cursor: pointer; }
.route-search-row button:disabled { opacity: .6; }
.route-search-control p { margin: 0; color: #52645a; font-size: .88rem; line-height: 1.5; }
.route-map-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; filter: drop-shadow(0 2px 2px #0003); }
.route-map-label strong { display: inline-block; padding: 4px 7px; border: 2px solid #16834b; border-radius: 8px; background: #fff; color: #17251f; font-size: 12px; line-height: 1.15; }
.route-map-pin { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 27px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #16834b; box-shadow: 0 1px 3px #0004; }
.route-map-pin i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.route-yellow .route-map-pin { background: #e5bd00; }
.route-orange .route-map-pin { background: #f07816; }
.route-red .route-map-pin { background: #e52525; }
.route-yellow strong { border-color: #d4a000; }
.route-orange strong { border-color: #e77b21; }
.route-red strong { border-color: #c83c3c; }

/* Responsive */
@media (max-width: 950px) {
  .ep-hero { align-items: flex-start; }
  .ep-hero-stamp { flex-basis: 205px; }
  .ep-main-layout { grid-template-columns: minmax(0, 1fr); }
  .ep-right-column { grid-template-columns: minmax(0, 1fr); }
  .ep-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .electrical-prices-page { width: min(100% - 22px, 1200px); margin: 14px auto 40px; }
  .ep-hero { flex-direction: column; gap: 22px; min-height: 0; padding: 26px 21px; border-radius: 19px; }
  .ep-hero h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .ep-hero-copy > p { font-size: .95rem; }
  .ep-hero-stamp { width: min(100%, 320px); flex-basis: auto; align-self: flex-start; padding: 15px; transform: none; }
  .ep-category-nav { margin: 12px 0 18px; border-radius: 12px; }
  .ep-category-nav a { padding: 9px 11px; font-size: .81rem; }
  .ep-panel { padding: 17px 15px; border-radius: 15px; }
  .ep-panel-heading { gap: 10px; }
  .ep-step { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  .ep-electrical-map-wrap #ep-electrical-map { height: 300px; min-height: 260px; }
  .ep-summary-panel { padding: 19px 16px; border-radius: 15px; }
  .ep-summary-row { font-size: .82rem; }
  .ep-benefits { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ep-benefits article { padding: 15px; }
  .route-search-row { flex-direction: column; }
  .route-search-row button { width: 100%; }
}
