/**
 * High Contrast Mode Styles for KredytOK Theme
 * This file contains all styles related to high contrast accessibility mode
 */

/* CSS Variables for High Contrast Mode */
:root {
  --high-contrast: #fffc32;
  --high-contrast-background: #3b360b;
}

/* High Contrast Toggle Button */
body.high-contrast .high-contrast-toggle {
  display: flex;
  align-items: center;
}

/* High Contrast Mode Styles */
body.high-contrast {
  background: black !important;
  color: var(--high-contrast) !important;
}

body.high-contrast .high-contrast-toggle {
  background: black !important;
  color: var(--high-contrast) !important;
  text-decoration: underline;
  font-weight: 600;
}

body.high-contrast .high-contrast-toggle:hover {
  font-weight: 800;
}

body.high-contrast .high-contrast-toggle--icon {
  /* Dark (Figma 4904-42110): yellow circle + dark icon. */
  background: var(--kok-yellow) !important;
  color: #1e1e1e !important;
}

body.high-contrast a {
  color: var(--high-contrast) !important;
}

body.high-contrast .footer__to-top {
  color: #1e1e1e !important;
}

body.high-contrast .secondary__button,
body.high-contrast .login-button {
  background: black !important;
  color: var(--high-contrast) !important;
  border: 2px solid var(--high-contrast) !important;
  span {
    background: black !important;
  }
}

body.high-contrast .secondary__button:hover,
body.high-contrast .login-button:hover {
  background: var(--high-contrast) !important;
  color: black !important;
  border: 2px solid var(--high-contrast);
  span {
    background: var(--high-contrast) !important;
  }
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background: black !important;
  color: var(--high-contrast) !important;
  border: 2px solid var(--high-contrast);
}

body.high-contrast .header {
  background: black !important;
  color: var(--high-contrast) !important;
}

body.high-contrast .footer {
  background: black !important;
  color: #e6e6d9 !important; /* cream body text on the olive band; contact links stay yellow (a-rule) */
}

body.high-contrast .header__menu-icon--row {
  background: var(--high-contrast) !important;
}

body.high-contrast .header_phone_wrapper {
  color: var(--high-contrast) !important;
}

body.high-contrast .header__phone--icon {
  color: var(--high-contrast) !important;
}

body.high-contrast .header__phone--text {
  color: var(--high-contrast) !important;
  -webkit-text-fill-color: var(--high-contrast) !important;
}

body.high-contrast .header__logo__white {
  display: inline-block !important;
}

body.high-contrast .header__logo__color {
  display: none !important;
}

body.high-contrast .loan-form {
  background: black !important;
}

body.high-contrast .loan-form__content {
  background: black !important;
  border: 1px solid var(--high-contrast) !important;
}

body.high-contrast .loan-form:after {
  background: black !important;
}

body.high-contrast .standard__title {
  color: white;
}

body.high-contrast .standard__title::after {
  background: var(--high-contrast) !important;
}

html body.high-contrast .wpsisac-slick-slider.design-4 .slick-arrow {
  color: black !important;
  background-color: var(--high-contrast) !important;
}

html
  body.high-contrast
  .wpsisac-slick-slider.design-4
  .wpsisac-slider-readmore {
  background: linear-gradient(black, black) padding-box,
    var(--high-contrast) border-box !important;
  color: var(--high-contrast) !important;
}
html
  body.high-contrast
  .wpsisac-slick-slider.design-4
  .wpsisac-slider-readmore:hover {
  background: linear-gradient(var(--high-contrast), var(--high-contrast))
      padding-box,
    black border-box !important;
  color: black !important;
}

body.high-contrast h2.wpsisac-slide-title span {
  color: var(--high-contrast) !important;
  -webkit-text-fill-color: var(--high-contrast) !important;
}

body.high-contrast .main__list--item {
  background: url(assets/check-yellow.svg) no-repeat left top/auto 2rem;
}

body.high-contrast .main__characteristic {
  background: var(--high-contrast-background) !important;
}

body.high-contrast .main__characteristic:before {
  background: var(--high-contrast-background) !important;
}

body.high-contrast .process__bg {
  display: none !important;
}

body.high-contrast .process__item--image-wrapper {
  background: var(--high-contrast) !important;
}

body.high-contrast .main__characteristic--icon {
  background: var(--high-contrast) !important;
}

body.high-contrast .contract-slider-col {
  color: var(--high-contrast) !important;
}

.wpcf7-range {
  border: none !important;
}

body.high-contrast .contract-slider input[type="range"]::-webkit-slider-thumb {
  background-image: url(assets/imgs/switcher-yellow.svg);
}

body.high-contrast .contract-slider input[type="range"]::-moz-range-thumb {
  background-image: url(assets/imgs/switcher-yellow.svg);
}

body.high-contrast
  .loan-form__field:not([type="checkbox"]):not([value=""]):not(.error):not(
    .wpcf7-not-valid
  ):not(
    :focus
  )
  ~ .loan-form__icons {
  background-image: url(assets/valid-yellow.svg);
}

body.high-contrast .wpcf7-acceptance label:before,
.wpcf7-checkbox label:before {
  background-color: black;
  border: 1px solid var(--high-contrast);
}

body.high-contrast .wpcf7-acceptance input:checked ~ label:before,
body.high-contrast .wpcf7-checkbox input:checked ~ label:before,
body.high-contrast .wpcf7-acceptance label:has(input:checked):before,
body.high-contrast .wpcf7-checkbox label:has(input:checked):before {
  background: black;
  border: 1px solid var(--high-contrast);
}

body.high-contrast .wpcf7-acceptance input:focus-visible ~ label:not(.error),
body.high-contrast .wpcf7-checkbox input:focus-visible ~ label:not(.error),
body.high-contrast .wpcf7-acceptance label:not(.error):has(input:focus-visible),
body.high-contrast .wpcf7-checkbox label:not(.error):has(input:focus-visible) {
  background-image: none;
  background-color: transparent;
}

body.high-contrast .wpcf7-acceptance input:focus-visible ~ label:not(.error):before,
body.high-contrast .wpcf7-checkbox input:focus-visible ~ label:not(.error):before,
body.high-contrast .wpcf7-acceptance label:not(.error):has(input:focus-visible):before,
body.high-contrast .wpcf7-checkbox label:not(.error):has(input:focus-visible):before {
  outline: 2px solid var(--high-contrast);
  outline-offset: 2px;
}

body.high-contrast .wniosek-add-income,
body.high-contrast .wniosek-add-income .special-etique {
  color: var(--high-contrast);
}

body.high-contrast .wniosek-add-income svg path {
  fill: var(--high-contrast);
}

body.high-contrast .wniosek-add-income:has(input:focus-visible) {
  outline: 3px solid var(--high-contrast);
  outline-offset: 2px;
}

body.high-contrast .standard__button {
  background: var(--high-contrast) !important;
  color: black !important;
}

body.high-contrast .standard__button:hover {
  background: black !important;
  color: var(--high-contrast) !important;
  border: 1px solid var(--high-contrast) !important;
}

/* Focus buttona w trybie HC: ta sama obwodka co w bazie, ale zolta. */
body.high-contrast .standard__button:focus-visible {
  outline: 3px solid var(--high-contrast) !important;
  outline-offset: 2px !important;
}

html body.high-contrast .reliable-company__companies--arrows .slick-arrow {
  background-color: var(--high-contrast) !important;
  color: black !important;
}

body.high-contrast .experience-company {
  background-color: var(--high-contrast-background);
}

body.high-contrast .imapsMapObject-group,
body.high-contrast .imapsMapPolygon-group {
  fill: black !important;
  stroke: var(--high-contrast) !important;
}

body.high-contrast .faq-item {
  background: #000000 !important; /* black card (Figma 4904-42555), was olive */
  color: var(--high-contrast) !important;
}

body.high-contrast .faq-item__question {
  color: var(--high-contrast) !important;
}

/* Chevron is a mask filled via background-color — `color` had no effect (stayed white) */
body.high-contrast .faq-item__question:after {
  background-color: var(--high-contrast) !important;
}

/* Answer body stays readable light-grey (not yellow) */
body.high-contrast .faq-item__answer {
  color: #d4d5d6 !important;
}

body.high-contrast .faq-item__answer p {
  color: #d4d5d6 !important;
}

body.high-contrast .owu__desc {
  background: var(--high-contrast-background) !important;
  border-color: var(--high-contrast) !important;
}

body.high-contrast .seo-description {
  background: black !important;
}

/* Figma 4953-32674: dark card, white headings, light-grey body, subtle dividers
   (was olive card + all-yellow text). Only the „Sprawdź…" CTA stays yellow (below). */
body.high-contrast .seo-description__item {
  background: transparent !important;
  color: #c4c6c8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.high-contrast .seo-description__text {
  color: #c4c6c8 !important;
}

body.high-contrast .seo-description__item__title {
  color: #ffffff !important;
}

body.high-contrast .heart__section__bg {
  display: none !important;
}

body.high-contrast .reliable-company__bg {
  display: none !important;
}

body.high-contrast .home-ribbon-wrap__decor {
  display: none !important;
}

body.high-contrast .bottom-navs {
  background-color: #141618 !important;
}

body.high-contrast .bottom-navs__title {
  color: #ffffff !important; /* Figma: white column headings, links stay yellow */
}

body.high-contrast .footer {
  background-color: #333300 !important; /* olive band (Figma 4904-42607) */
}

body.high-contrast .footer__scroll-to-top {
  background: var(--high-contrast) !important;
  color: black !important;
}

body.high-contrast .header__nav {
  background: var(--high-contrast-background) !important;
  border: 1px solid var(--high-contrast) !important;
}

body.high-contrast .accent__blue {
  color: var(--high-contrast) !important;
}

body.high-contrast .accent__red {
  color: var(--high-contrast) !important;
}

body.high-contrast .standard__desc ul li:before {
  background: var(--high-contrast) !important;
}

/* Tabele w treści wpisów: kolory ustawiamy na KOMÓRKACH, nie tylko na <table>.
   Edytor dokleja do wierszy i komórek własne tła oraz kolory tekstu (inline),
   które przy regule na samym <table> przebijały się na wierzch — stąd tabele
   w paski, gdzie co drugi wiersz miał inne, gorzej czytelne zestawienie barw.
   Wymuszenie na tr/th/td daje jednolity, przewidywalny kontrast 11,19. */
body.high-contrast table,
body.high-contrast thead,
body.high-contrast tbody,
body.high-contrast tfoot,
body.high-contrast tr,
body.high-contrast th,
body.high-contrast td {
  color: var(--high-contrast) !important;
  background-color: var(--high-contrast-background) !important;
  background-image: none !important;
  border-color: var(--high-contrast) !important;
}

/* Siatka tabeli musi być widoczna — bez niej po ujednoliceniu teł wiersze
   zlewają się w jeden blok. */
body.high-contrast th,
body.high-contrast td {
  border: 1px solid var(--high-contrast) !important;
}

/* Wiersz nagłówkowy odróżniamy pogrubieniem, nie kolorem. */
body.high-contrast thead th {
  font-weight: 700 !important;
}

/* Formularze CF7 używają tabeli do UKŁADU (blok zgód na /wniosek) — tam siatka
   i tło są niepożądane, bo robią z bloku zgody obramowane pudełko. Zostaje sam
   kolor tekstu z reguły wyżej. */
body.high-contrast form table,
body.high-contrast form tr,
body.high-contrast form th,
body.high-contrast form td {
  background-color: transparent !important;
  border: 0 !important;
}

body.high-contrast .post-meta {
  background-color: var(--high-contrast-background) !important;
  color: var(--high-contrast) !important;
}

body.high-contrast .post-meta__label,
body.high-contrast .post-meta__value {
  color: var(--high-contrast) !important;
}

body.high-contrast .breadcrumb-item {
  color: var(--high-contrast) !important;
  background: none !important;
  -webkit-text-fill-color: var(--high-contrast) !important;
}
body.high-contrast .breadcrumb-separator {
  color: var(--high-contrast) !important;
}
body.high-contrast .breadcrumb-current {
  opacity: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.high-contrast #ez-toc-container {
  background-color: var(--high-contrast-background) !important;
  color: var(--high-contrast) !important;
  border-color: var(--high-contrast) !important;
}

body.high-contrast .ez-toc-title {
  color: var(--high-contrast) !important;
}

body.high-contrast .sidebar {
  background-color: var(--high-contrast-background) !important;
  color: white !important;
  border-color: var(--high-contrast) !important;
}

body.high-contrast .sidebar-title {
  color: white !important;
}

body.high-contrast .sidebar-title:after {
  background: var(--high-contrast) !important;
}

body.high-contrast .recent-post-item {
  background: black !important;
  color: var(--high-contrast) !important;
}

body.high-contrast .subpage-category-column2 div {
  color: var(--high-contrast) !important;
}

body.high-contrast .recent-post-title,
body.high-contrast .recent-post-date {
  color: var(--high-contrast) !important;
}

body.high-contrast .subpage-category-column2 .column2-text h2 {
  color: var(--high-contrast) !important;
}

body.high-contrast .contact__info--bubble {
  background: var(--high-contrast-background) !important;
  color: var(--high-contrast) !important;
  border-color: var(--high-contrast) !important;
}

body.high-contrast .contact__way--value {
  -webkit-text-fill-color: var(--high-contrast) !important;
}

body.high-contrast .subpage-category-column2 .column2-text h3 {
  color: var(--high-contrast) !important;
}

body.high-contrast #open-terms-modal {
  color: var(--high-contrast) !important;
}

body.high-contrast .app-card {
  background: black !important;
  border: 1px solid var(--high-contrast) !important;
  color: white !important;
}

body.high-contrast .app-card .app-card-title::after {
  background: var(--high-contrast) !important;
}

body.high-contrast .footer__additional_information {
  color: var(--high-contrast) !important;
}

body.high-contrast .app-autosuggest {
  background: black;
}

body.high-contrast .app-autosuggest-item {
  background: black;
  color: yellow;
}

body.high-contrast .app-autosuggest-item:hover {
  background: black;
  color: yellow;
}

body.high-contrast .notice-border {
  border-color: var(--high-contrast) !important;
}

body.high-contrast .notice-text {
  color: var(--high-contrast) !important;
}

body.high-contrast .loan-form__field:not([type="checkbox"]).error {
  border-color: var(--high-contrast) !important;
}

body.high-contrast .error {
  color: var(--high-contrast) !important;
}

body.high-contrast #pok-terms-error {
  color: var(--high-contrast);
  font-weight: 600;
}

body.high-contrast .about__desc a {
  text-decoration: underline !important;
}

body.high-contrast .terms-desc {
  a {
    text-decoration: underline !important;
  }
}

body.high-contrast .contact__way {
  border: 1px solid var(--high-contrast) !important;
}

body.high-contrast .loan-form__field {
  border-color: var(--high-contrast) !important;
}

body.high-contrast .loan-form-styled .loan-form__field:not([type="checkbox"]):focus-visible {
  border: 1px solid var(--high-contrast) !important;
  background-image: none !important;
}

body.high-contrast .wpcf7-not-valid-tip {
  color: var(--high-contrast) !important;
}

body.high-contrast .wpcf7-response-output {
  color: var(--high-contrast) !important;
}

body.high-contrast .special-label::after, body.high-contrast .recommend-label::after {
  background: var(--high-contrast) !important;
  color: black !important;
}

body.high-contrast .period-boxes__box[data-active] {
  border-color: transparent;
  background: linear-gradient(white, white) padding-box, var(--high-contrast) black border-box;
  border: 1px solid var(--high-contrast);
}

body.high-contrast .period-boxes__box[data-active] span {
  background: var(--high-contrast);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.high-contrast .period-boxes__box {
  color: black;
}

/* Opinions carousel — black cards with a yellow outline and readable yellow text */
body.high-contrast .opinions-section p.opinions-section__description {
  color: var(--kok-subtext-300) !important;
}
body.high-contrast .opinions-section {
  background: #141618 !important;
}
body.high-contrast .opinions-swiper .opinion-card {
  background: #0c0d0e !important;
  box-shadow: none !important;
}
body.high-contrast .opinions-swiper .swiper-slide-active .opinion-card {
  background: #000000 !important;
}
body.high-contrast .opinions-swiper .opinion-card__text,
body.high-contrast .opinions-swiper .opinion-card__text p,
body.high-contrast .opinion-card__author-role {
  color: var(--kok-white) !important;
}
body.high-contrast .opinion-card__author-name {
  background: none !important;
  color: var(--high-contrast) !important;
  -webkit-text-fill-color: var(--high-contrast) !important;
}
body.high-contrast .opinions-swiper .swiper-pagination-bullet {
  background: #555 !important;
}
body.high-contrast .opinions-swiper .swiper-pagination-bullet-active {
  background: var(--high-contrast) !important;
}
body.high-contrast .opinions-swiper__prev,
body.high-contrast .opinions-swiper__next {
  background-color: var(--high-contrast) !important;
}
body.high-contrast .article-card__excerpt {
  color: var(--kok-subtext-300);
}
/* Elementy z żółtym tłem: tekst musi być czarny.
   Reguła "body.high-contrast a" wyżej maluje każdy link na żółto (--high-contrast),
   więc na żółtym przycisku napis znikał (kontrast 1,02). Białe napisy wypadały
   niewiele lepiej (1,07). Poniżej czarny tekst — kontrast rośnie do ~15,9. */
body.high-contrast .btn.error-404__cta,
body.high-contrast .blog-cta__btn,
body.high-contrast .author-byline__btn,
body.high-contrast .secondary_button.login-button,
body.high-contrast .header__phone--value,
body.high-contrast .calc__period--active,
body.high-contrast .seo-types__item--active {
  color: var(--kok-black) !important;
}

body.high-contrast dialog.app-modal::backdrop {
  background: rgba(255, 255, 255, 0.5);
}
body.high-contrast dialog#clock-modal .clock-content svg#hourglass {
  display: none;
}
body.high-contrast dialog#clock-modal .clock-content svg#hourglass-contrast {
  display: block;
}