:root {
    --wycena-navy: #06364e;
    --wycena-navy-dark: #03283b;
    --wycena-purple: #575a84;
    --wycena-orange: #f13b00;
    --wycena-orange-dark: #cf3200;
    --wycena-blue-light: #eefaff;
    --wycena-line: #dce7ed;
    --wycena-muted: #6d7689;
    --wycena-white: #ffffff;
    --wycena-success: #16865c;
    --wycena-danger: #c52a35;
}

.wycena-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(241, 59, 0, 0.08), transparent 26%),
        radial-gradient(circle at 92% 86%, rgba(87, 90, 132, 0.12), transparent 28%),
        var(--wycena-blue-light);
}

.wycena-heading {
    max-width: 760px;
    margin: 0 auto 42px;
}

.wycena-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--wycena-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wycena-heading h2 {
    margin-bottom: 18px;
    color: var(--wycena-navy);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.04;
}

.wycena-heading p {
    margin: 0;
    color: var(--wycena-purple);
    font-size: 18px;
    line-height: 1.7;
}

.wycena-box {
    overflow: hidden;
    background: var(--wycena-white);
    border: 1px solid rgba(6, 54, 78, 0.09);
    border-radius: 22px;
    box-shadow: 0 24px 65px rgba(6, 54, 78, 0.13);
}

.wycena-progress-wrap {
    padding: 26px 34px 22px;
    background: var(--wycena-navy);
}

.wycena-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wycena-progress-info strong {
    color: var(--wycena-white);
}

.wycena-progress {
    height: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
}

.wycena-progress > span {
    display: block;
    width: 14.2857%;
    height: 100%;
    background: var(--wycena-orange);
    border-radius: inherit;
    transition: width 0.35s ease;
}

.wycena-steps-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.wycena-step-dot {
    appearance: none;
    display: flex;
    min-width: 0;
    padding: 0;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.wycena-step-dot:disabled {
    cursor: default;
    opacity: 0.48;
}

.wycena-step-dot > span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    transition: 0.25s ease;
}

.wycena-step-dot small {
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.wycena-step-dot.is-active,
.wycena-step-dot.is-complete {
    color: var(--wycena-white);
}

.wycena-step-dot.is-active > span {
    background: var(--wycena-orange);
    border-color: var(--wycena-orange);
    box-shadow: 0 0 0 5px rgba(241, 59, 0, 0.2);
}

.wycena-step-dot.is-complete > span {
    color: var(--wycena-navy);
    background: var(--wycena-white);
    border-color: var(--wycena-white);
}

#formularz-wyceny {
    padding: 44px;
}

.wycena-panel {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    animation: wycenaPanelIn 0.32s ease both;
}

@keyframes wycenaPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wycena-panel legend {
    width: 100%;
    margin: 0 0 10px;
    color: var(--wycena-navy);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
}

.wycena-help {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--wycena-muted);
    font-size: 16px;
    line-height: 1.65;
}

.wycena-choice-grid {
    display: grid;
    gap: 18px;
}

.wycena-choice-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wycena-choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wycena-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.wycena-choice > input,
.wycena-consent > input,
.wycena-switch-row > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.wycena-choice-card {
    position: relative;
    display: flex;
    min-height: 205px;
    height: 100%;
    padding: 27px 26px;
    flex-direction: column;
    align-items: flex-start;
    background: #fbfdfe;
    border: 2px solid var(--wycena-line);
    border-radius: 15px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.wycena-choice:hover .wycena-choice-card {
    border-color: rgba(241, 59, 0, 0.48);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(6, 54, 78, 0.09);
}

.wycena-choice > input:focus-visible + .wycena-choice-card {
    outline: 3px solid rgba(241, 59, 0, 0.25);
    outline-offset: 3px;
}

.wycena-choice > input:checked + .wycena-choice-card {
    background: rgba(241, 59, 0, 0.035);
    border-color: var(--wycena-orange);
    box-shadow: 0 12px 28px rgba(241, 59, 0, 0.11);
}

.wycena-choice > input:disabled + .wycena-choice-card {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wycena-choice-icon {
    display: inline-flex;
    width: 49px;
    height: 49px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    color: var(--wycena-orange);
    background: rgba(241, 59, 0, 0.09);
    border-radius: 13px;
    font-size: 21px;
}

.wycena-choice-card strong {
    margin: 0 35px 8px 0;
    color: var(--wycena-navy);
    font-size: 18px;
    line-height: 1.3;
}

.wycena-choice-card small {
    color: var(--wycena-muted);
    font-size: 14px;
    line-height: 1.55;
}

.wycena-choice-check {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: var(--wycena-white);
    border: 2px solid var(--wycena-line);
    border-radius: 50%;
    font-size: 12px;
    transition: 0.2s ease;
}

.wycena-choice input:checked + .wycena-choice-card .wycena-choice-check {
    color: var(--wycena-white);
    background: var(--wycena-orange);
    border-color: var(--wycena-orange);
}

.wycena-notice {
    display: flex;
    margin: 0 0 24px;
    padding: 16px 18px;
    gap: 13px;
    align-items: flex-start;
    color: var(--wycena-navy);
    background: rgba(6, 54, 78, 0.065);
    border-left: 4px solid var(--wycena-orange);
    border-radius: 9px;
    line-height: 1.5;
}

.wycena-notice i {
    margin-top: 3px;
    color: var(--wycena-orange);
}

.wycena-field {
    margin-bottom: 22px;
}

.wycena-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--wycena-navy);
    font-size: 14px;
    font-weight: 800;
}

.wycena-field input,
.wycena-field textarea {
    display: block;
    width: 100%;
    padding: 15px 17px;
    color: var(--wycena-navy);
    background: #fbfdfe;
    border: 2px solid var(--wycena-line);
    border-radius: 10px;
    outline: 0;
    font: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wycena-field textarea {
    min-height: 145px;
    resize: vertical;
}

.wycena-field input::placeholder,
.wycena-field textarea::placeholder {
    color: #a5aaba;
}

.wycena-field input:focus,
.wycena-field textarea:focus {
    background: var(--wycena-white);
    border-color: var(--wycena-orange);
    box-shadow: 0 0 0 4px rgba(241, 59, 0, 0.1);
}

.wycena-field input.is-invalid,
.wycena-field textarea.is-invalid {
    border-color: var(--wycena-danger);
}

.wycena-field-note {
    display: block;
    margin-top: 7px;
    color: var(--wycena-muted);
    font-size: 12px;
}

.wycena-error {
    min-height: 0;
    margin: 7px 0 0;
    color: var(--wycena-danger);
    font-size: 13px;
    font-weight: 700;
}

.wycena-error:empty {
    display: none;
}

.wycena-conditional {
    margin-top: 24px;
    padding: 24px;
    background: var(--wycena-blue-light);
    border: 1px solid var(--wycena-line);
    border-radius: 14px;
}

.wycena-switch-row,
.wycena-consent {
    position: relative;
    display: flex;
    margin: 0;
    gap: 13px;
    align-items: flex-start;
    color: var(--wycena-navy);
    cursor: pointer;
}

.wycena-switch-row > span:last-child {
    display: flex;
    flex-direction: column;
}

.wycena-switch-row small {
    margin-top: 4px;
    color: var(--wycena-muted);
    line-height: 1.5;
}

.wycena-switch {
    position: relative;
    width: 48px;
    height: 27px;
    flex: 0 0 48px;
    background: #b9c3ca;
    border-radius: 99px;
    transition: 0.2s ease;
}

.wycena-switch::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 19px;
    height: 19px;
    content: '';
    background: var(--wycena-white);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease;
}

.wycena-switch-row input:checked + .wycena-switch {
    background: var(--wycena-orange);
}

.wycena-switch-row input:checked + .wycena-switch::after {
    transform: translateX(21px);
}

.wycena-consent {
    margin-top: 4px;
    color: var(--wycena-muted);
    font-size: 13px;
    line-height: 1.55;
}

.wycena-consent-box {
    display: inline-flex;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: var(--wycena-white);
    border: 2px solid var(--wycena-line);
    border-radius: 6px;
    font-size: 11px;
    transition: 0.2s ease;
}

.wycena-consent input:checked + .wycena-consent-box {
    color: var(--wycena-white);
    background: var(--wycena-orange);
    border-color: var(--wycena-orange);
}

.wycena-consent input:focus-visible + .wycena-consent-box,
.wycena-switch-row input:focus-visible + .wycena-switch {
    outline: 3px solid rgba(241, 59, 0, 0.25);
    outline-offset: 3px;
}

.wycena-consent a {
    color: var(--wycena-orange);
    font-weight: 700;
    text-decoration: underline;
}

.wycena-actions {
    display: flex;
    margin-top: 36px;
    padding-top: 25px;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--wycena-line);
}

.wycena-btn {
    display: inline-flex;
    min-height: 54px;
    padding: 14px 23px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wycena-btn:hover {
    transform: translateY(-2px);
}

.wycena-btn:focus-visible {
    outline: 3px solid rgba(241, 59, 0, 0.28);
    outline-offset: 3px;
}

.wycena-btn--back {
    color: var(--wycena-navy);
    background: #edf2f5;
}

.wycena-btn--back:hover {
    background: #e2eaee;
}

.wycena-btn--next,
.wycena-btn--submit {
    margin-left: auto;
    color: var(--wycena-white);
    background: var(--wycena-orange);
    box-shadow: 0 10px 22px rgba(241, 59, 0, 0.2);
}

.wycena-btn--next:hover,
.wycena-btn--submit:hover {
    color: var(--wycena-white);
    background: var(--wycena-orange-dark);
}

.wycena-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.wycena-submit-label,
.wycena-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wycena-alert {
    margin-bottom: 24px;
    padding: 15px 17px;
    color: #8d1721;
    background: #fff1f2;
    border-left: 4px solid var(--wycena-danger);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.wycena-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wycena-summary-item {
    position: relative;
    padding: 18px 54px 18px 19px;
    background: #f7fafc;
    border: 1px solid var(--wycena-line);
    border-radius: 11px;
}

.wycena-summary-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--wycena-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.wycena-summary-item strong {
    display: block;
    color: var(--wycena-navy);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wycena-summary-edit {
    position: absolute;
    top: 13px;
    right: 13px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--wycena-orange);
    background: var(--wycena-white);
    border: 1px solid var(--wycena-line);
    border-radius: 50%;
    cursor: pointer;
}

.wycena-final-info {
    display: flex;
    margin-top: 20px;
    padding: 18px;
    gap: 14px;
    align-items: center;
    color: var(--wycena-navy);
    background: rgba(22, 134, 92, 0.08);
    border: 1px solid rgba(22, 134, 92, 0.2);
    border-radius: 11px;
}

.wycena-final-info > i {
    color: var(--wycena-success);
    font-size: 24px;
}

.wycena-final-info div {
    display: flex;
    flex-direction: column;
}

.wycena-final-info span {
    margin-top: 3px;
    color: var(--wycena-muted);
    font-size: 13px;
}

.wycena-success {
    padding: 70px 35px;
    text-align: center;
}

.wycena-success-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    color: var(--wycena-white);
    background: var(--wycena-success);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(22, 134, 92, 0.1);
    font-size: 29px;
}

.wycena-success h2 {
    margin-bottom: 12px;
    color: var(--wycena-navy);
    font-size: 34px;
    font-weight: 800;
}

.wycena-success p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--wycena-muted);
    font-size: 17px;
    line-height: 1.65;
}

.wycena-under-note {
    margin: 22px 0 0;
    color: var(--wycena-purple);
    font-size: 13px;
}

.wycena-under-note i {
    margin-right: 6px;
    color: var(--wycena-orange);
}

.wycena-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

[hidden] {
    display: none !important;
}

@media (max-width: 991.98px) {
    .wycena-section {
        padding: 75px 0;
    }

    .wycena-step-dot small {
        display: none;
    }

    .wycena-step-dot {
        justify-content: center;
    }

    .wycena-choice-grid--three {
        grid-template-columns: 1fr;
    }

    .wycena-choice-grid--three .wycena-choice-card {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .wycena-section {
        padding: 58px 0;
    }

    .wycena-heading {
        margin-bottom: 28px;
    }

    .wycena-heading h2 {
        letter-spacing: -1.2px;
    }

    .wycena-heading p {
        font-size: 16px;
    }

    .wycena-box {
        border-radius: 15px;
    }

    .wycena-progress-wrap {
        padding: 21px 18px 18px;
    }

    .wycena-steps-nav {
        gap: 3px;
    }

    .wycena-step-dot > span {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 11px;
    }

    #formularz-wyceny {
        padding: 28px 20px;
    }

    .wycena-choice-grid--two,
    .wycena-summary {
        grid-template-columns: 1fr;
    }

    .wycena-choice-card {
        min-height: 0;
        padding: 23px 21px;
    }

    .wycena-choice-icon {
        margin-bottom: 17px;
    }

    .wycena-actions {
        flex-wrap: wrap;
    }

    .wycena-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wycena-panel,
    .wycena-progress > span,
    .wycena-choice-card,
    .wycena-btn,
    .wycena-switch,
    .wycena-switch::after {
        animation: none !important;
        transition: none !important;
    }
}
