:root {
    --shadow-default: transparent;
    --text-color: #fff;
    --primary-color: #28a745;
    --opinions-bg: #15272d;
    --opinions-input-bg: #131a1f;
    --opinions-input-show-bg: #131a1f;
    --opinions-input-text: #fff;
    --opinions-placeholder: #6c757d;
    --opinions-h3-h2: #fff;
    --opinions--border: #343a40;
    --slider-thumb-hover-color: #1e7c37;
}

.light-mode {
    --shadow-default: 0px 0px 7px 0px rgba(126, 125, 125, 1);
    --text-color: #000;
    --primary-color: #28a745;
    --opinions-bg: transparent;
    --opinions-input-bg: #ffffff;
    --opinions-input-show-bg: #131a1f;
    --opinions-input-text: #000;
    --opinions-placeholder: #6c757d;
    --opinions-h3-h2: #15272d;
    --opinions--border: #343a40;
    --slider-thumb-hover-color: #1e7c37;
}

/* Globalne ustawienie box-sizing */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

/* Zapobieganie przewijaniu poziomemu na całej stronie */
html, body {
    overflow-x: hidden;
}

/* Ogólne tło sekcji */
.opinions-section {
    position: relative;
    padding: 60px 0;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Nagłówki */
.stats-header,
.clients-head {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 40px;
}

.stats-header {
    text-align: center;
}

.clients-head {
    text-align: left;
}

/* Statystyki */
.stats-container {
    margin-bottom: 40px;
    text-align: center;
}

.stats-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 20px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    /* Usunięto margin: 0 -10px; */
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Układ klientów */
.clients-flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 30px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center; /* Wyśrodkowanie elementów w pionie */
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    padding: 20px;
}

.client-right {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    max-width: 600px;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    text-align: center;
}

.client-left {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    max-width: 400px;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    background-color: var(--opinions-bg);
    padding: 25px;
    border-radius: 24px;
    -webkit-box-shadow: var(--shadow-default);
            box-shadow: var(--shadow-default);
    border: 1px solid rgba(0,0,0,0.1);
    -webkit-transition: -webkit-box-shadow 0.3s ease;
    transition: -webkit-box-shadow 0.3s ease;
    -o-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;
    margin: 10px;
}

/* Dodanie pozycji względnej do kontenera input-gap */
.client-left .opinions-input-gap {
    position: relative;
}

.client-left .opinions-input-gap label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #c4c4c4;
    position: absolute;
    background: #15272d;
    padding: 0 5px;
    left: 15px;
    top: -10px;
    border-radius: 0.5rem;
}

.client-left .opinions-input-container {
    position: relative;
}

.client-left .opinions-input-container .tooltip-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23343a40" viewBox="0 0 14 14" role="img" focusable="false" aria-hidden="true"%3E%3Cpath d="M6.9198484 1.0005452C3.6064257 1.0448929.95652234 3.7671873 1.0006091 7.0807404c.0443477 3.3121186 2.7663813 5.9628046 6.0796735 5.9187176 3.3127704-.044609 5.9631954-2.766903 5.9191084-6.0801953-.044347-3.3123792-2.766511-5.96293475-6.0795426-5.9187175zm-.017739 9.6516168l-.03313-.000522c-.5102594-.01513-.8699972-.391042-.855519-.8937359.0142173-.494085.3826943-.8527791.8761272-.8527791l.029609.0005218c.5244764.015522.8801707.3876503.8654316.9048223-.014609.4955199-.3773464.8416929-.8825185.8416929zm2.1462964-4.2598539c-.1199995.1704777-.3838681.3821726-.7163452.6412151l-.3661291.2527817c-.2009992.1562603-.3223031.3032597-.3678247.4479114-.0358695.1138691-.0534781.1439994-.0566085.3756508l-.0005217.058826H6.1429817l.00404-.1183039c.0170903-.4862593.0290903-.7723017.2306113-1.0086487.3161727-.371216 1.013605-.8203013 1.0432136-.8393447.0999126-.0752606.1841732-.1609559.2469121-.2525208.1467386-.2023036.2116949-.3615639.2116949-.5180851 0-.2171731-.0644346-.4180419-.1918689-.5968674-.1224778-.1725646-.3551726-.2599555-.6916931-.2599555-.3337814 0-.5623023.1059126-.6989975.3232162-.1406081.2234339-.2116948.4580852-.2116948.6978235v.059608H4.6437698l.00261-.062217c.0371724-.8829095.3523017-1.5186463.9362561-1.8896015.3669117-.2362165.8234318-.3559552 1.3561255-.3559552.6973018 0 1.2859518.1694342 1.7493849.5036069.4695635.3386074.7077365.845736.7077365 1.5072988 0 .3700421-.1168691.7176496-.347477 1.0335614z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 50%;
    cursor: pointer;
}

/* Review Carousel – kontener */
.review-carousel {
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
    -webkit-box-shadow: var(--shadow-default);
            box-shadow: var(--shadow-default);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative; /* na potrzeby strzałek Swipera */
    margin: 0 auto; /* Wyśrodkowanie karuzeli */
}

/* Ukrycie ewentualnego scrollbara */
.review-carousel::-webkit-scrollbar {
    display: none;
}

/* Element pojedynczej opinii (zostaje jak było) */
.review-item {
    padding: 37px;
    border-radius: 12px;
    color: var(--opinions-h3-h2);
    min-height: 150px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

/* Teksty opinii */
.opinion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.opinion-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

/* Formularz */
#new-opinion {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    height: 100%;
}

.form-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--opinions-h3-h2);
    margin-bottom: 20px;
    text-align: left;
}

.client-left .opinions-input-gap input,
.client-left .opinions-input-gap textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--opinions--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--opinions-input-text);
    background-color: var(--opinions-input-bg);
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

/* Efekt focus dla input i textarea */
.client-left .opinions-input-gap input:focus,
.client-left .opinions-input-gap textarea:focus {
    outline: none;
    border: 1px solid var(--primary-color);
    -webkit-box-shadow: 0 0 5px var(--primary-color);
            box-shadow: 0 0 5px var(--primary-color);
}

/* Efekt focus dla select */
.client-left .opinions-input-gap select:focus {
    outline: none;
    border: 1px solid var(--primary-color);
    -webkit-box-shadow: 0 0 5px var(--primary-color);
            box-shadow: 0 0 5px var(--primary-color);
}

.client-left .opinions-input-gap input::-webkit-input-placeholder, .client-left .opinions-input-gap textarea::-webkit-input-placeholder {
    color: var(--opinions-placeholder);
    opacity: 0.7;
}

.client-left .opinions-input-gap input::-moz-placeholder, .client-left .opinions-input-gap textarea::-moz-placeholder {
    color: var(--opinions-placeholder);
    opacity: 0.7;
}

.client-left .opinions-input-gap input:-ms-input-placeholder, .client-left .opinions-input-gap textarea:-ms-input-placeholder {
    color: var(--opinions-placeholder);
    opacity: 0.7;
}

.client-left .opinions-input-gap input::-ms-input-placeholder, .client-left .opinions-input-gap textarea::-ms-input-placeholder {
    color: var(--opinions-placeholder);
    opacity: 0.7;
}

.client-left .opinions-input-gap input::placeholder,
.client-left .opinions-input-gap textarea::placeholder {
    color: var(--opinions-placeholder);
    opacity: 0.7;
}

/* Przycisk wysyłania */
.btn-send {
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-send:hover {
    background-color: var(--slider-thumb-hover-color);
}

/* Komunikaty formularza */
.hide {
    display: none;
}

.form-error {
    color: #ff0000;
    margin-top: 10px;
}

.form-ok {
    color: #00cc29;
    margin-top: 10px;
}

/* Usuń gradientowe nakładki i nawigację z domyślnej karuzeli */
.review-carousel::before,
.review-carousel::after {
    content: none;
}

/* ==============================================
   STYLE SWIPER (zamiast .owl-*)
   ============================================== */

/* Strzałki Swiper */
.review-carousel .swiper-button-prev,
.review-carousel .swiper-button-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,.25);
}

.review-carousel .swiper-button-prev:after,
.review-carousel .swiper-button-next:after {
    font-size: 16px;
    color: #fff;
}

/* Rozmiar strzałek jak w demo „Navigation” */
.review-carousel.swiper {
    --swiper-navigation-size: 28px;
    --swiper-navigation-color: var(--text-color);
}

/* Stan "disabled" (gdyby pętla była off) */
.review-carousel .swiper-button-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Paginacja (kropki) – w wariancie Navigation ukryta */
.review-carousel .swiper-pagination { 
    display: none !important; 
}

/* (Jeśli kiedyś włączysz kropki, te style zostaną użyte) */
.review-carousel .swiper-pagination-bullets .swiper-pagination-bullet {
    background: var(--text-color);
    opacity: 0.5;
}
.review-carousel .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* ----------------------------------------------
   Media Query dla wersji mobilnej
---------------------------------------------- */

@media (max-width: 576px) {
    .clients-flex {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    
    .stats-row {
        gap: 10px;
        /* Usunięto margin: 0 -10px; */
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .review-item {
        padding: 15px;
    }

    .clients-head {
        font-size: 1.8rem;
    }

    .form-header {
        font-size: 1.6rem;
    }

    /* Dodatkowe poprawki dla marginesów i paddingów */
    .client-left {
        margin: 0;
        padding: 20px; /* Dodanie wewnętrznego paddingu zamiast marginesu */
    }

    .clients-flex {
        padding: 10px; /* Zmniejszenie paddingu kontenera */
    }

    .review-carousel {
        padding: 0 10px; /* Dodanie paddingu wewnętrznego, jeśli potrzebne */
        width: 100%;
    }
}

/* ---------------------------------------------
   DODANE STYLE WALIDACJI
---------------------------------------------- */

/* Pokazywanie "X" gdy występuje błąd */
.client-left .opinions-input-container input.input-error + .tooltip-icon + .opinions-validation-icon::before,
.client-left .form-check input.input-error + .opinions-validation-icon::before,
.client-left .opinions-input-container select.input-error + .tooltip-icon + .opinions-validation-icon::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7 9V3H9V9H7ZM7 13V11H9V13H7Z' fill='%23ff0000'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Pokazywanie "✔" gdy pole jest poprawne */
.client-left .opinions-input-container input.input-valid + .tooltip-icon + .opinions-validation-icon::before,
.client-left .form-check input.input-valid + .opinions-validation-icon::before,
client-left .opinions-input-container select.input-valid + .tooltip-icon + .opinions-validation-icon::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM12.7071 5.70711L11.2929 4.29289L6.5 9.08579L4.70711 7.29289L3.29289 8.70711L6.5 11.9142L12.7071 5.70711Z' fill='%2300cc29'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Styl dla błędnych inputów / selectów */
.client-left .opinions-input-gap input.input-error,
.client-left .opinions-input-gap textarea.input-error,
.client-left .opinions-input-gap select.input-error {
    border: 1px solid #c62828;
    -webkit-box-shadow: 0 0 5px #c62828;
            box-shadow: 0 0 5px #c62828;
    background-repeat: no-repeat;
}

/* Styl dla poprawnych inputów / selectów */
.client-left .opinions-input-gap input.input-valid,
.client-left .opinions-input-gap textarea.input-valid,
.client-left .opinions-input-gap select.input-valid {
    border: 1px solid #4caf50;
    -webkit-box-shadow: 0 0 5px #4caf50;
            box-shadow: 0 0 5px #4caf50;
    background-repeat: no-repeat;
}

.tooltip {
  --bs-tooltip-bg: #333;
}

/* top */
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--bs-tooltip-bg) !important;
}

/* bottom */
.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--bs-tooltip-bg) !important;
}

/* start (lewa strona) */
.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: var(--bs-tooltip-bg) !important;
}

/* end (prawa strona) */
.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: var(--bs-tooltip-bg) !important;
}