/* ============================================
   CZĘŚĆ WSPÓLNA - ZMIENNE I STYLE GLOBALNE
   ============================================ */

/* Zmienne CSS */
:root {
    --green: #17851b;
    --green-dark: #0f6515;
    --green-light: #eef9ee;
    --text: #171717;
    --muted: #667085;
    --border: #dfe7df;
    --bg: #f6f8f6;
    --dark: #07191f;
}

/* Reset i podstawowe style */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

/* Ukrycie strzałek w input type=number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ============================================
   HERO - NAGŁÓWEK STRONY
   ============================================ */

.ed-hero {
    min-height: 420px;
    padding: 90px 8%;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.85) 0%,
            rgba(0,0,0,.65) 23%,
            rgba(0,0,0,.15) 0%,
            rgba(0,0,0,0) 100%
        ),
        url("../assets/hero1.jpg") center center / 55% no-repeat,
        #07191f;
    display: flex;
    align-items: center;
}

.ed-hero-content {
    max-width: 780px;
}

.ed-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.ed-hero p {
    max-width: 560px;
    font-size: 21px;
    line-height: 1.55;
    color: rgba(255,255,255,.9);
}

/* Hero - wersja mobilna */
@media (max-width: 700px) {
    .ed-hero {
        min-height: 360px;
        padding: 0;
        background:
            linear-gradient(
                180deg,
                rgba(7,25,31,.15) 0%,
                rgba(7,25,31,.45) 100%
            ),
            url("../assets/hero1.jpg") left center / cover no-repeat,
            #07191f;
    }

    .ed-hero-content {
        display: none;
    }
}

/* ============================================
   PASEK POSTĘPU - STEPS
   ============================================ */

.ed-steps {
    max-width: 1280px;
    margin: 34px auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.ed-step {
    min-height: 70px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: grid;
    grid-template-rows: 34px 32px;
    align-items: start;
    position: relative;
}

/* Połączenia między krokami */
.ed-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #dfe7df;
    z-index: 0;
}

.ed-step span {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ed-step.is-active {
    color: var(--green);
    font-weight: 700;
}

.ed-step.is-active span {
    background: #f2fbf2;
    color: var(--green-dark);
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23,133,27,.10);
    transform: none;
}

.ed-step.is-done span {
    background: transparent;
    border-color: transparent;
    color: var(--green);
    font-size: 0;
}

.ed-step.is-done span::before {
    content: "\2713";
    font-size: 20px;
    font-weight: 800;
}

.ed-step.is-done::after {
    background: rgba(23,133,27,.20);
}

.ed-step.is-locked {
    opacity: .35;
    cursor: not-allowed;
}

/* Steps - wersja mobilna */
@media (max-width: 900px) {
    .ed-steps {
        overflow-x: auto;
    }

    .ed-step {
        min-width: 100px;
    }
}

/* ============================================
   GŁÓWNY KONTENER I KARTY
   ============================================ */

.ed-wizard-layout {
    max-width: 1280px;
    margin: 0 auto 50px;
    padding: 0 24px;
}

.ed-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 46px;
    box-shadow: 0 24px 60px rgba(8, 30, 18, .09);
}

.ed-card__label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--green-light);
    color: var(--green);
    font-weight: 700;
}

.ed-card__desc--hero {
    margin: 0 0 34px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

.ed-card h2 {
    margin: 0 0 8px;
    font-size: 42px;
}

.ed-card__desc {
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 18px;
}

/* Panele kroków bez przeładowania */
.ed-step-panel {
    display: none;
}

.ed-step-panel.is-active {
    display: block;
}

/* Wspólne elementy kroków */
.ed-step-title-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.ed-step-title-row h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.ed-step-title-row p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Przyciski akcji */
.ed-actions {
    margin-top: 34px;
    display: flex;
    justify-content: space-between;
}

.ed-btn {
    border: 0;
    border-radius: 10px;
    padding: 14px 26px;
    font-weight: 700;
    cursor: pointer;
}

.ed-btn--back {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.ed-btn--next {
    background: var(--green);
    color: #fff;
}

.ed-btn:disabled {
    opacity: .6;
    cursor: wait;
}

/* Błędy formularzy */
.ed-field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
}

.ed-contact-form input.is-error,
.ed-contact-form textarea.is-error {
    border-color: #c62828;
    background: #fff7f7;
}

/* Footer */
.ed-footer {
    background: var(--dark);
    color: #d6e1dd;
    padding: 36px;
    text-align: center;
}

/* Wspólne media queries */
@media (max-width: 900px) {
    .ed-card {
        padding: 28px;
    }
}

/* ============================================
   KROK 1 - WYBÓR SYSTEMU
   ============================================ */

.ed-step-one-card {
    padding: 34px 36px 30px;
}

.ed-step-one-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 34px;
    align-items: stretch;
}

.ed-step-number {
    color: var(--green);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.ed-start-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.ed-start-card {
    position: relative;
    min-height: 400px;
    padding: 30px 28px 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: .2s;
    overflow: hidden;
}

.ed-start-card:hover,
.ed-start-card.is-selected {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 16px 36px rgba(23,133,27,.12);
    transform: translateY(-2px);
}

.ed-start-card.is-selected {
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green), 0 16px 36px rgba(23,133,27,.10);
}

.ed-start-card--disabled {
    opacity: .72;
    cursor: not-allowed;
}

.ed-start-card--disabled:hover {
    border-color: var(--border);
    background: #fff;
    box-shadow: none;
    transform: none;
}

.ed-start-card__graphic {
    height: 175px;
    margin-bottom: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #fff;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.ed-start-card--alarm .ed-start-card__graphic {
    background-image: url("../assets/step1-alarm.png");
}

.ed-start-card--cctv .ed-start-card__graphic {
    background-image: url("../assets/step1-cctv.png");
}

.ed-alarm-type-image--cctv-ip {
    background-image: url("../assets/cctv-ip.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
    background-color: #f6f8f6;
}

.ed-alarm-type-image--cctv-analog {
    background-image: url("../assets/cctv-analog.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
    background-color: #f6f8f6;
}

.ed-start-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.ed-start-card p {
    max-width: 300px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.ed-start-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
}

.ed-start-card__badge::before {
    content: "✓";
    margin-right: 8px;
}

.ed-start-card__badge--muted {
    background: #f1f3f5;
    color: var(--muted);
}

.ed-start-card__badge--muted::before {
    content: "◷";
}

.ed-benefits-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 30px;
}

.ed-benefits-panel h3 {
    margin: 0 0 30px;
    font-size: 24px;
}

.ed-benefit-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.ed-benefit-item:last-child {
    margin-bottom: 0;
}

.ed-benefit-item span {
    width: 46px;
    height: 46px;
    border: 2px solid var(--green);
    border-radius: 50%;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ed-benefit-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.ed-benefit-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Krok 1 - media queries */
@media (max-width: 1100px) {
    .ed-step-one-layout {
        grid-template-columns: 1fr;
    }

    .ed-benefits-panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .ed-benefits-panel h3 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
}

@media (max-width: 800px) {
    .ed-start-grid,
    .ed-benefits-panel {
        grid-template-columns: 1fr;
    }

    .ed-start-card {
        min-height: auto;
    }
}

/* ============================================
   KROK 2 - TYP OBIEKTU
   ============================================ */

.ed-step-two-card {
    padding: 34px 36px 30px;
}

.ed-object-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ed-object-card {
    min-height: 245px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: .2s;
}

.ed-object-card:hover,
.ed-object-card.is-selected {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 14px 32px rgba(23,133,27,.10);
    transform: translateY(-2px);
}

.ed-object-card__graphic {
    height: 155px;
    margin-bottom: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ed-object-card strong {
    display: block;
    font-size: 21px;
    color: var(--text);
}

.ed-object-card--flat .ed-object-card__graphic {
    background-image: url("../assets/object-flat.png");
}

.ed-object-card--home .ed-object-card__graphic {
    background-image: url("../assets/object-home.png");
}

.ed-object-card--semi .ed-object-card__graphic {
    background-image: url("../assets/object-semi.png");
}

.ed-object-card--office .ed-object-card__graphic {
    background-image: url("../assets/object-office.png");
}

.ed-object-card--warehouse .ed-object-card__graphic {
    background-image: url("../assets/object-warehouse.png");
}

.ed-object-card--other .ed-object-card__graphic {
    background-image: url("../assets/object-other.png");
}

/* Krok 2 - media queries */
@media (max-width: 1000px) {
    .ed-object-visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .ed-object-visual-grid {
        grid-template-columns: 1fr;
    }

    .ed-object-card {
        min-height: 210px;
    }
}

/* ============================================
   KROK 3 - RODZAJ SYSTEMU
   ============================================ */

.ed-alarm-type-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 22px;
    align-items: stretch;
}

.ed-alarm-type-list {
    display: grid;
    gap: 12px;
}

.ed-alarm-type-option {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: .2s;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ed-alarm-type-option:hover,
.ed-alarm-type-option.is-selected {
    border-color: var(--green);
    background: #f7fff7;
    box-shadow: 0 10px 24px rgba(23,133,27,.10);
    transform: translateY(-2px);
}

.ed-alarm-type-option strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.ed-alarm-type-option span {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    min-height: 38px;
}

.ed-alarm-type-info {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 26px;
}

.ed-alarm-type-info h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.ed-alarm-type-info p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.ed-alarm-type-info li {
    margin: 8px 0;
    color: var(--muted);
}

.ed-alarm-type-image {
    border: 1px solid var(--border);
    border-radius: 18px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ed-alarm-type-image.is-wired {
    background-image: url("../assets/alarm-wired.png");
}

.ed-alarm-type-image.is-wireless {
    background-image: url("../assets/alarm-wireless.png");
}

.ed-alarm-type-image.is-hybrid {
    background-image: url("../assets/alarm-hybrid.png");
}

.ed-alarm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef8f1;
    border: 1px solid #c8e7d0;
    color: #146c2e;
    font-size: 13px;
    font-weight: 700;
}

/* Krok 3 - media queries */
@media (max-width: 1100px) {
    .ed-alarm-type-layout {
        grid-template-columns: 1fr;
    }

    .ed-alarm-type-image {
        min-height: 240px;
    }
}

/* ============================================
   KROK 4 - CZUJNIKI
   ============================================ */

.ed-sensors-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
}

.ed-sensors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ed-sensor-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.ed-sensor-row strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.ed-sensor-row span {
    color: var(--muted);
    font-size: 13px;
}

.ed-sensor-info {
    min-width: 220px;
}

.ed-sensor-type-counts {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    margin-left: 30px !important;
}

.ed-sensor-count {
    width: 135px;
    display: block;
}

.ed-sensor-count span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.ed-mini-counter {
    display: grid;
    grid-template-columns: 30px 46px 30px;
    gap: 6px;
    align-items: center;
}

.ed-mini-counter button {
    width: 30px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--green-light);
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.ed-mini-counter input {
    width: 46px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    text-align: center;
    font-weight: 700;
}

.ed-sensor-help {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fafcf9;
    padding: 24px;
}

.ed-sensor-help h3 {
    margin-top: 0;
}

.ed-sensor-help p,
.ed-sensor-help li {
    color: var(--muted);
    line-height: 1.5;
}

.ed-sensor-help__image {
    margin-bottom: 16px;
}

.ed-sensor-help__image img {
    width: 100%;
    max-width: 260px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.ed-sensor-help h4 {
    margin: 20px 0 8px;
    font-size: 15px;
}

.ed-sensor-help__note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 14px;
}

/* Krok 4 - media queries */
@media (max-width: 900px) {
    .ed-sensors-layout {
        grid-template-columns: 1fr;
    }

    .ed-sensor-row {
        grid-template-columns: 1fr !important;
    }

    .ed-sensor-type-counts {
        margin-left: 0 !important;
        margin-top: 12px;
        justify-content: flex-start !important;
    }
}

@media (max-width: 800px) {
    .ed-sensor-type-counts {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}

/* ============================================
   KROK 5 - SZCZEGÓŁY INSTALACJI
   ============================================ */

.ed-install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ed-install-grid--help {
    grid-template-columns: 1fr 1fr 1.35fr;
}

.ed-install-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 24px;
}

.ed-install-box h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

.ed-install-box button {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
}

.ed-install-box button:hover,
.ed-install-box button.is-selected {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
}

.ed-install-help {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fafcf9;
    padding: 24px;
}

.ed-install-help h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--green-dark);
}

.ed-install-help p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.ed-install-help div {
    padding: 14px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
}

/* Krok 5 - media queries */
@media (max-width: 900px) {
    .ed-install-grid {
        grid-template-columns: 1fr;
    }

    .ed-install-grid--help {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   KROK 6 - OBSŁUGA ALARMU
   ============================================ */

.ed-control-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.ed-control-section {
    width: 100% !important;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 24px;
}

.ed-control-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

.ed-control-options {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    max-width: none !important;
}

.ed-control-options--more {
    margin-top: 12px !important;
    display: grid !important;
    grid-template-columns: 1fr 90px !important;
    gap: 12px !important;
    max-width: none !important;
}

.ed-control-options button,
.ed-control-cards button {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .2s;
}

.ed-control-options button {
    padding: 16px 10px;
    font-weight: 700;
}

.ed-control-options button:hover,
.ed-control-options button.is-selected,
.ed-control-cards button:hover,
.ed-control-cards button.is-selected {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
}

.ed-control-more {
    display: none;
    margin: 0 !important;
}

.ed-control-more input {
    width: 100% !important;
    height: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.ed-control-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
}

.ed-control-section .ed-control-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
}

.ed-control-cards button {
    height: 120px !important;
    min-height: 120px !important;
    padding: 18px 12px;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.ed-control-section .ed-control-cards button {
    min-height: 50px !important;
}

.ed-control-cards span {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.ed-control-cards strong {
    display: block;
    font-size: 14px;
}

.ed-control-warning {
    display: none;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #f2d18b;
    border-radius: 16px;
    background: #fff8e8;
}

.ed-control-warning strong {
    display: block;
    margin-bottom: 8px;
    color: #8a5a00;
    font-size: 16px;
}

.ed-control-warning p {
    margin: 0;
    color: #66512a;
    line-height: 1.5;
    font-size: 14px;
}

.ed-control-warning-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.ed-control-warning-actions button {
    padding: 10px 14px;
    border: 1px solid #e4bd67;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.ed-control-error {
    min-height: 20px;
    margin-top: 14px;
    color: #c62828;
    font-size: 14px;
    font-weight: 700;
}

.ed-control-method {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ed-control-method:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.ed-keypad-item {
    display: grid;
    gap: 10px;
}

.ed-keypad-connection {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ed-keypad-connection button {
    padding: 8px 10px !important;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700;
    min-height: 0 !important;
    height: auto !important;
}

.ed-keypad-connection button:hover,
.ed-keypad-connection button.is-selected {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
}

/* Krok 6 - media queries */
@media (max-width: 900px) {
    .ed-control-layout {
        grid-template-columns: 1fr !important;
    }

    .ed-control-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 700px) {
    .ed-keypad-item {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ed-control-section .ed-control-cards,
    .ed-control-cards {
        grid-template-columns: 1fr !important;
    }

    .ed-keypad-connection {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ============================================
   KROK 7 - SYGNALIZACJA
   ============================================ */

.ed-signal-config {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ed-signal-item {
    display: grid;
    gap: 12px;
}

.ed-signal-choice {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: .2s;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ed-signal-choice:hover,
.ed-signal-choice.is-selected {
    border-color: var(--green);
    background: #f7fff7;
    box-shadow: 0 12px 28px rgba(23,133,27,.10);
    transform: translateY(-2px);
}

.ed-signal-choice span {
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
}

.ed-signal-choice strong {
    display: block;
    font-size: 18px;
}

.ed-signal-type {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ed-signal-type button {
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.ed-signal-type button:hover,
.ed-signal-type button.is-selected {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
}

/* Krok 7 - media queries */
@media (max-width: 900px) {
    .ed-signal-config {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   KROK 8 - POWIADOMIENIA
   ============================================ */

.ed-notify-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.ed-notify-card {
    position: relative;
    min-height: 170px;
    padding: 20px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ed-notify-card:hover {
    border-color: var(--green);
    background: linear-gradient(180deg, #f5fff5, #fff);
    box-shadow: 0 12px 28px rgba(23,133,27,.12);
    transform: translateY(-2px);
}

.ed-notify-card span {
    display: block;
    font-size: 30px;
    margin-bottom: 12px;
}

.ed-notify-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.ed-notify-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.ed-notify-card.is-selected {
    border-color: var(--green);
    background: linear-gradient(180deg, #f5fff5, #fff);
    box-shadow: 0 12px 28px rgba(23,133,27,.12);
}

.ed-connectivity-section .ed-notify-cards {
    grid-template-columns: repeat(3, 1fr);
}

/* Krok 8 - media queries */
@media (max-width: 1100px) {
    .ed-notify-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ed-connectivity-section .ed-notify-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .ed-notify-cards {
        grid-template-columns: 1fr;
    }

    .ed-connectivity-section .ed-notify-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   KROK 9 - DODATKOWE FUNKCJONALNOŚCI
   ============================================ */

.ed-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ed-feature-card {
    min-height: 160px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: .2s;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ed-feature-card:hover,
.ed-feature-card.is-selected {
    border-color: var(--green);
    background: linear-gradient(180deg, #f5fff5, #fff);
    box-shadow: 0 12px 28px rgba(23,133,27,.12);
    transform: translateY(-2px);
}

.ed-feature-card.is-selected {
    outline: 2px solid rgba(23,133,27,.2);
}

.ed-feature-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.ed-feature-card span {
    display: block;
    font-size: 30px;
    margin-bottom: 12px;
}

.ed-feature-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ed-feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

/* Krok 9 - media queries */
@media (max-width: 900px) {
    .ed-feature-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   KROK 10 - DANE KONTAKTOWE
   ============================================ */

.ed-contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.ed-contact-form {
    display: grid;
    gap: 16px;
}

.ed-contact-form label {
    display: block;
    font-weight: 700;
}

.ed-contact-form label span {
    color: var(--muted);
    font-weight: 400;
}

.ed-contact-form input,
.ed-contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
}

.ed-contact-form textarea {
    resize: vertical;
}

.ed-upload-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    background: #fafcf9;
}

.ed-upload-box h3 {
    margin-top: 0;
}

.ed-upload-box p {
    color: var(--muted);
    line-height: 1.5;
}

.ed-upload-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 180px;
    margin-top: 20px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.ed-upload-area:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.ed-upload-area input {
    display: none;
}

.ed-upload-area strong {
    color: var(--green-dark);
}

.ed-upload-area span {
    color: var(--muted);
    font-size: 13px;
}

.ed-upload-area small {
    color: var(--muted);
    font-size: 11px;
    opacity: 0.7;
}

/* Krok 10 - media queries */
@media (max-width: 900px) {
    .ed-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   KROK 11 - PLUG & PLAY
   ============================================ */

.ed-plug-hero {
    display: grid;
    grid-template-columns: 110px 1fr 190px;
    gap: 28px;
    align-items: center;
    margin-bottom: 26px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
}

.ed-plug-hero__icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #f0faf1;
    border: 1px solid #cfe8d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.ed-plug-hero__content > span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef9ee;
    color: #0f6515;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.ed-plug-hero h3 {
    margin: 0 0 12px;
    font-size: 25px;
}

.ed-plug-hero p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.55;
}

.ed-plug-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.ed-plug-benefits div {
    color: #405064;
}

.ed-plug-price {
    min-height: 160px;
    border: 1px solid #cfe8d0;
    border-radius: 18px;
    background: #f7fff7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ed-plug-price span,
.ed-plug-price small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.ed-plug-price strong {
    margin: 6px 0;
    color: var(--green-dark);
    font-size: 38px;
    line-height: 1;
}

.ed-plug-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ed-plug-card {
    min-height: 330px;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ed-plug-card:hover {
    transform: translateY(-3px);
    border-color: #cfe8d0;
    box-shadow: 0 14px 34px rgba(0,0,0,.07);
}

.ed-plug-card--recommended {
    border: 2px solid #15912f;
    background: linear-gradient(180deg, #fbfffb, #fff);
    box-shadow: 0 16px 38px rgba(21,145,47,.10);
}

.ed-plug-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ed-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ed-badge--gold {
    background: #fff5d8;
    color: #9a6500;
    border: 1px solid #f0d58c;
}

.ed-badge--gray {
    background: #f0f2f4;
    color: #42526b;
}

.ed-badge--purple {
    background: #f1eaff;
    color: #6b35c9;
}

.ed-badge--orange {
    background: #fff0df;
    color: #d45b00;
}

.ed-plug-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #f0faf1;
    border: 1px solid #cfe8d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.ed-plug-card h3 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
}

.ed-plug-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.ed-plug-card__price {
    margin-top: 22px;
    padding: 14px;
    border-radius: 14px;
    background: #eef9ee;
    color: #0f6515;
    font-size: 14px;
}

.ed-plug-card__price strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
}

/* Krok 11 - media queries */
@media (max-width: 1150px) {
    .ed-plug-hero {
        grid-template-columns: 1fr;
    }

    .ed-plug-benefits,
    .ed-plug-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ed-plug-price {
        max-width: 220px;
    }
}

@media (max-width: 760px) {
    .ed-plug-benefits,
    .ed-plug-options {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   EKRAN SUKCESU
   ============================================ */

.ed-success-card {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.ed-success-card h2 {
    color: var(--green);
}

.ed-success-card p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.ed-success-box {
    margin: 26px auto;
    padding: 18px;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
}

.ed-success-ticket {
    margin-bottom: 18px;
}

.ed-success-ticket span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ed-success-ticket strong {
    display: block;
    font-size: 28px;
    color: var(--green-dark);
    font-weight: 800;
}

.ed-success-mail {
    color: var(--muted);
}

/* ============================================
   PODSUMOWANIE
   ============================================ */

.ed-final-summary {
    display: grid;
    gap: 20px;
}

.ed-final-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
}

.ed-final-hero span {
    display: block;
    margin-bottom: 8px;
    opacity: .85;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.ed-final-hero h3 {
    margin: 0;
    font-size: 30px;
}

.ed-final-hero p {
    margin: 8px 0 0;
    opacity: .9;
}

.ed-final-badge {
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    font-weight: 700;
    text-align: center;
}

.ed-final-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.ed-final-section {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 22px;
}

.ed-final-section h4 {
    margin: 0 0 16px;
    font-size: 19px;
    color: var(--green-dark);
}

.ed-final-section div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #eef1ee;
}

.ed-final-section div:last-of-type {
    border-bottom: 0;
}

.ed-final-section span {
    color: var(--muted);
}

.ed-final-section strong {
    text-align: right;
}

.ed-final-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

/* Podsumowanie - media queries */
@media (max-width: 900px) {
    .ed-final-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .ed-final-grid {
        grid-template-columns: 1fr;
    }
}