/* =========================================================
   Kalkulator wynagrodzeń - obanku.pl
   Nowoczesny adaptywny styl
   ========================================================= */

.salary-section {
    padding: 16px 0 32px;
}

.salary-intro {
    background: #f7f8fc;
    border-left: 4px solid #ffd000;
    padding: 18px 20px;
    border-radius: 6px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.55;
    color: #2c2c3a;
}
.salary-intro p { margin: 0 0 10px; }
.salary-intro p:last-child { margin: 0; }

/* ---------- KALKULATOR ---------- */
.salary-calc {
    background: #ffffff;
    border: 1px solid #e6e6f0;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(40, 40, 90, 0.07);
    padding: 0;
    margin: 0 0 28px;
    overflow: hidden;
}

.salary-calc__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.salary-calc__form {
    flex: 1 1 360px;
    min-width: 280px;
    padding: 24px 26px;
    background: #ffffff;
}

.salary-calc__output {
    flex: 1 1 320px;
    min-width: 280px;
    background: linear-gradient(155deg, #232347 0%, #3b3b6e 60%, #4d4d8c 100%);
    color: #ffffff;
    padding: 28px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ---------- POLA FORMULARZA ---------- */
.salary-calc__field {
    margin: 0 0 18px;
}

.salary-calc__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6c6c84;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.salary-calc__input-wrap {
    position: relative;
}
.salary-calc__input,
.salary-calc__select {
    width: 100%;
    height: 50px;
    padding: 0 70px 0 16px;
    background: #f7f8fc;
    border: 1px solid #e0e0ee;
    border-radius: 10px;
    font-size: 19px;
    font-weight: 600;
    color: #1f1f33;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
.salary-calc__select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c6c84' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    font-size: 15px;
}
.salary-calc__input:focus,
.salary-calc__select:focus {
    border-color: #ffd000;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.18);
}
.salary-calc__input::-webkit-outer-spin-button,
.salary-calc__input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.salary-calc__input { -moz-appearance: textfield; }

.salary-calc__unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #90909f;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}

/* ---------- TABS UMOWY ---------- */
.salary-calc__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: #f0f0f7;
    padding: 5px;
    border-radius: 12px;
}
.salary-calc__tab {
    background: transparent;
    border: none;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6c6c84;
    cursor: pointer;
    border-radius: 8px;
    transition: all .18s ease;
    text-align: center;
}
.salary-calc__tab:hover {
    color: #1f1f33;
    background: rgba(255,255,255,0.5);
}
.salary-calc__tab.is-active {
    background: #1f1f33;
    color: #ffd000;
    box-shadow: 0 2px 6px rgba(31, 31, 51, 0.18);
}

/* ---------- QUICKSET CHIPS ---------- */
.salary-calc__quickset {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.salary-calc__chip {
    background: #f7f8fc;
    border: 1px solid #e0e0ee;
    color: #6c6c84;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.salary-calc__chip:hover {
    border-color: #ffd000;
    color: #1f1f33;
    background: #fffbe6;
}

/* ---------- CHECKBOXY ---------- */
.salary-calc__group { margin-top: 6px; }

.salary-calc__check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f8fc;
    border: 1px solid #e6e6f0;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .15s;
    font-size: 14px;
    color: #2c2c3a;
}
.salary-calc__check:hover {
    border-color: #c7c7e0;
    background: #fbfbff;
}
.salary-calc__check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffd000;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.salary-calc__check span { line-height: 1.3; }

/* ---------- PRZYCISK ---------- */
.salary-calc__submit {
    width: 100%;
    height: 52px;
    background: #ffd000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1f1f33;
    cursor: pointer;
    transition: all .18s;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.25);
}
.salary-calc__submit:hover {
    background: #ffdf3d;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 208, 0, 0.32);
}
.salary-calc__submit:active { transform: translateY(0); }

/* ---------- BLOK WYNIKU ---------- */
.salary__result-head {
    text-align: center;
    padding: 8px 0 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 20px;
}
.salary__result-tag {
    display: inline-block;
    background: rgba(255,208,0,0.18);
    color: #ffd000;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.salary__result-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
}
.salary__result-amount {
    font-size: 40px;
    font-weight: 700;
    color: #ffd000;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.salary__result-amount span {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-left: 4px;
}
.salary__result-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}

.salary__breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.salary__breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    font-size: 14px;
}
.salary__breakdown-item:last-child { border-bottom: none; }
.salary__breakdown-label { color: rgba(255,255,255,0.78); }
.salary__breakdown-value {
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}
.salary__breakdown-item.is-positive .salary__breakdown-value {
    color: #ffd000;
}
.salary__breakdown-item.is-negative .salary__breakdown-value {
    color: #ff8888;
}

.salary__result-foot {
    margin-top: 16px;
    padding-top: 18px;
    border-top: 2px solid rgba(255,255,255,0.18);
}
.salary__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.salary__result-row b { color: #fff; font-weight: 600; }
.salary__result-row_accent {
    background: rgba(255,208,0,0.1);
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 16px;
    color: #fff;
}
.salary__result-row_accent b {
    color: #ffd000;
    font-size: 19px;
    font-weight: 700;
}

/* ---------- CTA / CPA ---------- */
.salary-cta {
    margin: 32px 0;
}
.salary-cta__inner {
    background: linear-gradient(135deg, #fffbe6 0%, #fff5cc 100%);
    border: 1px solid #ffe680;
    border-radius: 14px;
    padding: 26px 28px;
    text-align: center;
}
.salary-cta__title {
    margin: 0 0 12px;
    font-size: 22px;
    color: #1f1f33;
}
.salary-cta__text {
    margin: 0 auto 18px;
    color: #4a4a60;
    line-height: 1.55;
    max-width: 720px;
}
.salary-cta__link {
    color: #1f1f33;
    text-decoration: underline;
    font-weight: 600;
}
.salary-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}
.salary-cta__btn {
    display: inline-block;
    background: #1f1f33;
    color: #ffd000;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
    font-size: 14px;
}
.salary-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(31, 31, 51, 0.2);
}
.salary-cta__btn_outline {
    background: transparent;
    color: #1f1f33;
    border: 2px solid #1f1f33;
    padding: 10px 20px;
}

/* ---------- TEKST SEO ---------- */
.salary-text {
    margin: 28px 0;
    line-height: 1.65;
    color: #2c2c3a;
}
.salary-text h2 {
    font-size: 22px;
    margin: 28px 0 14px;
    color: #1f1f33;
}
.salary-text p { margin: 0 0 12px; }
.salary-list { padding: 0 0 0 20px; margin: 0 0 14px; }
.salary-list li { margin-bottom: 8px; }

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 720px) {
    .salary-calc__form { padding: 20px 16px; }
    .salary-calc__output { padding: 22px 18px; }
    .salary__result-amount { font-size: 34px; }
    .salary-calc__tabs { grid-template-columns: repeat(2, 1fr); }
    .salary-calc__tab { padding: 12px 6px; font-size: 13px; }
    .salary-cta__inner { padding: 22px 18px; }
    .salary-cta__title { font-size: 19px; }
    .salary-text h2 { font-size: 19px; }
}

@media screen and (max-width: 480px) {
    .salary-intro { padding: 14px 16px; font-size: 15px; }
    .salary-calc__chip { font-size: 11px; padding: 4px 10px; }
    .salary__breakdown-item { font-size: 13px; }
    .salary__result-amount { font-size: 30px; }
    .salary__result-row_accent b { font-size: 17px; }
}
