
html, body {
    height: 100%; /* Zapewnia, że cała strona ma pełną wysokość */
    margin: 0;
}

body {
    display: flex;
    overflow-x: hidden; /* Zapobiega przewijaniu w poziomie */
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1; /* Upewniamy się, że treść ma wyższy z-index niż tło */
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #1a73e9 !important;
    color: white;
}

.form-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.device-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Aby równomiernie rozłożyć elementy */
    width: 533px; /* Stała szerokość kontenera */
    gap: 10px; /* Przywrócenie odstępu między elementami */
}

.device-option {
    flex: 0 0 167px; /* Zakładając brak marginesów i paddingów, 533 / 3 â‰ 177.66 minus 5px marginesu z każdej strony */
    margin: 0px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.3s ease, transform 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .device-selection {
        justify-content: flex-start; /* Zapewnia, że elementy równomiernie rozkładają się na szerokości */
        width: 100%; /* Kontener powinien być szerszy na mniejszych ekranach */
    }

    .device-option {
        flex: 0 0 calc(50% - 10px); /* Zmiana szerokości elementów na połowę kontenera minus marginesy */
        margin: 0px; /* Utrzymujemy mały margines dla estetyki */
    }
}

.form-check-input:checked + .device-image-container + span + .check-icon-settings {
    visibility: visible; /* Pokaż ikonę zaznaczenia gdy checkbox jest zaznaczony */
}


body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/form/img/background.png);
    background-position: center;
    background-size: cover; /* Dopasowanie tła do rozmiaru okna */
    opacity: 0.10; /* Ustawienie przezroczystości */
    z-index: -1; /* Ustawienie z-index niższego niż treść */
    pointer-events: none; /* Umożliwia interakcję z elementami na stronie */
}

.content {
    flex: 1; /* Zapewnia, że zawartość rozciąga się, aby zająć całą dostępną przestrzeń */
}
.prev-step {
    background-color: #545454 !important;
    border-color: #545454 !important;
    color: white;
     margin-top: 20px !important;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s
}

.view-map-btn{
    font-size: 11px;
    margin-bottom: 21px;
    padding-left: 8px;
    padding-right: 8px;
}


.footer {
    height: 25px; /* Dostosuj wysokość według potrzeb */
    background: #ffffffc9;
    width: 100%;
}


/* Kontener, który zawiera przyciski */
.footer_button {
    display: flex;
    justify-content: flex-end; /* Wyrównuje dzieci (przyciski) do prawej strony */
    padding-right: 10px; /* Odstęp od prawej krawędzi kontenera, jeśli jest potrzebny */
    gap:10px;
}
/* Kontener, który zawiera przyciski */

@media (max-width: 600px) {
    .footer_button {
        padding: 15px 0; /* Zwiększa padding dla lepszej widoczności na małych ekranach */
        text-align: center; /* Centruje tekst, jeśli potrzebujesz */
        position: fixed;       /* Ustawia przyciski jako stałe na stronie */
        bottom: 0;             /* Przypina przyciski do dolnej części ekranu */
        left: 0;               /* Rozpoczyna od lewej strony ekranu */
        width: 100%;           /* Rozciąga na całą szerokość ekranu */
        background: #ffffff;   /* Ustawia tło, możesz dostosować kolor według preferencji */
        padding: 10px 0;       /* Dodaje padding na górze i dole dla lepszego wyglądu */
        box-shadow: 0 -2px 5px rgba(0,0,0,0.2); /* Opcjonalnie, dodaje cień dla lepszego oddzielenia od treści strony */
        z-index: 1000;         /* Upewnia się, że przyciski będą nad innymi elementami */
        margin: 0px 0 !important;
    }
    .btn {
        margin-top: 0px !important;
    }

    .h4, h4 {
    font-size: 17px;
}

}

/* Styl dla przycisków w stopce */
.footer_button {
    margin-left: 10px; /* Daje odstęp między przyciskami, jeśli jest więcej niż jeden */
    /* Dalsze style dla przycisków, jeśli są potrzebne */
}

@media (max-width: 768px) {
    .footer_button {
        justify-content: center; /* Lub flex-end, jeśli nadal chcesz mieć przyciski po prawej na mobilnych */
    }

    .footer_button {
        flex: 1 0 100%; /* Na małych ekranach przyciski zajmą całą szerokość */
        margin: 10px 0; /* Odstęp do góry i dołu dla przycisków na mobilnych */
    }
}

  .device-option:hover {
    transform: translateY(-5px);
  }
  
  .device-option img {
    display: block;
    margin: 0 auto 10px auto;
    width: 30px; /* Może wymagać dostosowania */
    height: auto;
  }
  
  .device-option span {
    display: block;
    color: #000;
  }
  
  .device-option input[type="radio"] {
    display: none;
  }
  
  .device-option .fa-check-circle {
    position: absolute;
    top: -15px;
    color: transparent; /* Ukryj ikonę gdy nie jest zaznaczona */
    font-size: 30px; /* Może wymagać dostosowania */
    transition: color 0.3s ease;
  }
  
  /* Styl dla zaznaczonej opcji */
  .device-option input[type="radio"]:checked ~ .fa-check-circle {
    color: #4CAF50; /* Kolor ikony gdy jest zaznaczona */
    background: WHITE;
    visibility: visible !important;

  }


  /* Styl dla kontenera Select2 */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: .375rem .75rem; /* Padding, aby pasował do .form-control */
    font-size: 1rem; /* Rozmiar fontu, aby pasował do .form-control */
    line-height: 1.5; /* Wysokość linii, aby pasowała do .form-control */
    border: 1px solid #ced4da !important; /* Styl obramowania, aby pasował do .form-control */
    border-radius: .25rem; /* Zaokrąglenie narożników, aby pasowało do .form-control */
    background-color: #fff; /* Kolor tła, aby pasował do .form-control */
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #495057 !important;
}

/* Styl dla elementu renderowanego Select2 (wybrana opcja) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057 !important; /* Kolor tekstu, aby pasował do .form-control */
    line-height: 1.5; /* Wysokość linii, aby pasowała do .form-control */
}

/* Styl dla strzałki rozwijania Select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: .75rem; /* Odstęp, aby pasował do .form-control */
}

/* Styl dla focusa */
.select2-container--default .select2-selection--single:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}


/* Styl dla kontenera Select2, aby rozciągnąć na pełną szerokość */
.select2-container {
    width: 100% !important; /* !important może być konieczne, aby nadpisać inne style */
}

/* Upewniamy się, że etykieta będzie nad polem Select2 */
.select-container label {
    display: block; /* sprawia, że label zajmuje pełną dostępną szerokość */
    margin-bottom: .5rem; /* dodaje odstęp pomiędzy etykietą a polem select */
}

/* Upewniamy się, że select jest na pełną szerokość wewnątrz Select2 */
.select-container .select2-selection--single {
    height: calc(2.25rem + 2px); /* Wysokość dopasowana do innych form-control */
}

/* Jeżeli Select2 jest aktywne, dopasowujemy jego wysokość */
.select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.25rem; /* Wysokość linii dopasowana do innych form-control */
}

/* Dodatkowe style, jeżeli chcesz usunąć obramowanie Select2 */
.select-container .select2-selection--single {
    border: 1px solid #ced4da; /* To samo obramowanie, co dla pozostałych form-control */
    border-radius: 0.25rem; /* Zaokrąglenie, aby pasować do pozostałych kontrolek */
}

.is-invalid {
    border-color: #dc3545;
  }
  
  .is-invalid + .invalid-feedback {
    display: block;
  }

  .select2-container.is-invalid .select2-selection {
    border-color: #dc3545 !important;
  }
  
/* END 1 krok formularza */

.modal-info{
	margin: 17px;
}

 #data_dostarczenia {
 background: #ffffff;
}

.main_title{  

margin-bottom: 20px;
 }


a{
color: #265078;
}


.btn {
background-color: #000000 !important;
border-color: #000000 !important;
    margin-top: 20px;

}

 @media (max-width: 767px) {
    #data_dostarczenia {
        width: 100%; /* Lub odpowiednia szerokość w procentach */
        background: #ffffff;
    }
}

@media only screen and (max-width: 600px) {
.container {
    max-width: 330px !important; 
}
}

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 615px;
        background: #ffffff;
        border-radius: 15px;
    }
    .mt-5, .my-5 {
    margin-top: 1rem!important;
}

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding: 20px;
        margin-bottom: 40px;
        box-shadow: 5px 5px 5px #ededed;
    }

    .logo-center {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }



form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

form legend {
    width: auto;
    padding: 0 10px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}


   .flex-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* pozwala elementom przenosić się do nowej linii */
    }

    .flex-container > div, 
    .flex-container > button {
        flex: 1 0 calc(50% - 10px); /* pozwala elementom zająć połowę dostępnej szerokości, odejmując 10px marginesu */
        margin: 5px;
    }

    @media (max-width: 768px) {
        .flex-container > div, 
        .flex-container > button {
            flex: 1 0 100%; /* na ekranach mobilnych elementy zajmują 100% szerokości */
        }
    }


.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 0px;
    margin-bottom: 20px;
    border-radius: 20px;
    }

    .btn-back {
        margin-left: 10px; /* Dodaje trochę przestrzeni między logotypem a przyciskiem */
        background-color: white; /* Kolor tła przycisku */
        padding: 5px 10px; /* Wewnętrzne marginesy przycisku */
        border: none; 
        border-radius: 4px; /* Zaokrąglenie rogu przycisku */
        cursor: pointer; 
    }

    .btn-back:hover {
        background-color: #e6e6e6; /* Kolor tła przycisku po najechaniu myszą */
    }

@media (max-width: 767px) {
    #data_dostarczenia {
        width: 100%; /* Lub odpowiednia szerokość w procentach */
        background: #ffffff;
    }
}



body {
    background-color: #f7f7f7;
}

.container {
    min-height: auto;
}

.modal-info{
    margin: 17px;
}

 #data_dostarczenia {
 background: #ffffff;
}

.main_title{  

margin-bottom: 20px;

 }


a{
color: #265078;
}



@media only screen and (max-width: 600px) {
.container {
    max-width: 446px !important; 
}
}

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 615px;
        background: #ffffff;
        border-radius: 15px;
    }
    .mt-5, .my-5 {
    margin-top: 1rem!important;
}

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding: 20px;
        margin-bottom: 215px;
        box-shadow: 5px 5px 5px #ededed;
    }

    .logo-center {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

   

.container-header{
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 0px;
    margin-bottom: 0px;
    margin-top: 20x;
    max-width: 615px; 
    
}
form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

form legend {
    width: auto;
    padding: 0 10px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}


   .flex-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* pozwala elementom przenosić się do nowej linii */
    }

    .flex-container > div, 
    .flex-container > button {
        flex: 1 0 calc(50% - 10px); /* pozwala elementom zająć połowę dostępnej szerokości, odejmując 10px marginesu */
        margin: 5px;
    }

    @media (max-width: 768px) {
        .flex-container > div, 
        .flex-container > button {
            flex: 1 0 100%; /* na ekranach mobilnych elementy zajmują 100% szerokości */
        }

        .prev-step {
    background-color: #545454 !important;
    border-color: #545454 !important;
    color: white;
     margin-top: 0px !important;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s
}
    }


.header-container {
        display: flex;
        align-items: center;  /* Wyrównanie elementów w pionie */
        justify-content: space-between;
    }

    .btn-back {
        margin-left: 10px; /* Dodaje trochę przestrzeni między logotypem a przyciskiem */
        background-color: #f7f7f7; /* Kolor tła przycisku */
        padding: 5px 10px; /* Wewnętrzne marginesy przycisku */
        border: none; 
        border-radius: 4px; /* Zaokrąglenie rogu przycisku */
        cursor: pointer; 
    }

    .btn-back:hover {
        background-color: #e6e6e6; /* Kolor tła przycisku po najechaniu myszą */
    }

.progress {
  height: 10px;
  margin-bottom: 10px;
  background: #ffffff;
}

.delivery-options {
  display: flex;
  justify-content: start;
  align-items: center;
      width: 110%;
}

.delivery-options div {
  margin-right: 20px; /* Odległość pomiędzy opcjami */
}



.progress-bar.segment {
  float: left;
  height: 100%;
  border-radius: 20px;
  width: 24%; /* Szerokość zmniejszona o margines */
  background-color: #e9ecef; /* Jasnoszary kolor dla nieaktywnych segmentów */
  margin-right: 1%; /* Margines po prawej stronie każdego segmentu */
  transition: background-color 0.4s ease-in-out; /* Dodanie efektu animacji */
}

.progress-bar.segment:last-child {
  margin-right: 0; /* Usuń margines na ostatnim segmencie */
}


#segment1 {
  background-color: #e9ecef; /* niebieski dla aktywnego segmentu */
}



.modal-body-regulamin{
position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;

}

.benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Dodajemy przestrzeń między kolumnami */
      margin-top: 10px;
    margin-bottom: 20px;
}

.benefit {
  text-align: center;
  max-width: 120px;
}

.benefit i {
  font-size: 30px;
  color: #265078; /* Dodajemy kolor dla ikon */
  margin-bottom: 10px;
  display: inline-block;
  transition: transform 0.3s ease; /* Animacja dla interakcji */
}

.benefit i:hover {
  transform: scale(1.1); /* Powiększenie ikony przy najechaniu */
}

.benefit p {
  margin: 2px;
  font-size: 14px;
  color: #6c757d; /* Lżejszy kolor tekstu */
}

.modal-body-regulamin h2 {
    font-weight: bold;
    margin-top: 20px;
}

.modal-body-regulamin p {
    margin-bottom: 10px;
    text-align: justify;
}

.modal-body-regulamin {
	font-size: 12px;
}


.error-message {
    color: red; /* Czerwony kolor tekstu */
    background-color: #ffdada; /* Jasnoczerwone tło */
    border: 1px solid red; /* Czerwona ramka */
    padding: 10px; /* Odstępy wewnątrz kontenera */
    margin: 10px 0; /* Marginesy zewnętrzne */
    border-radius: 5px; /* Zaokrąglone rogi */
    text-align: center; /* Wyśrodkowany tekst */
}

  .info-box {
            border: 2px solid #ddd;
            border-radius: 20px;
            padding: 15px;
            margin: 10px 0;
        }
        .info-icon {
            background-color: #eee;
            border-radius: 50%;
            padding: 10px;
            display: inline-block;
            margin-right: 10px;
        }
        .info-content h4 {
            font-size: 1.25rem; /* Smaller heading */
            margin-bottom: 5px;
        }
        .info-content p {
            font-size: 0.9rem; /* Smaller paragraph */
        }
        /* Responsive layout for smaller screens */
        @media (max-width: 768px) {
            .info-icon {
                display: block;
                margin: 10px auto;
            }
            .info-content {
                display: block;
                text-align: center;
            }
            .info-content h4 {
                font-size: 1.1rem;
            }
            .info-content p {
                font-size: 0.85rem;
            }
        }


.public-form-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.delivery-option input { position: absolute; opacity: 0; }
.delivery-option label {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 58px; margin: 0; padding: 10px; border: 1px solid #d9e0ea;
    border-radius: 10px; background: #fff; cursor: pointer; text-align: center;
}
.delivery-option input:checked + label {
    border-color: #111827; box-shadow: 0 0 0 2px #111827; background: #f7f9fc;
}
.shipping-destination {
    margin-bottom: 18px; padding: 14px; border: 1px solid #b8d2ff;
    border-radius: 10px; background: #f2f7ff;
}
.shipping-destination p { margin: 6px 0; font-weight: 600; }
.fx-package-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #c9d8ee;
    color: #29466f;
}
.fx-package-code strong {
    color: #10244a;
    font-size: 25px;
    letter-spacing: 5px;
}

/* Wyłącznie publiczny krok dostawy - nie wpływa na pozostałe formularze. */
.fx-public-form-shell {
    transition: max-width .2s ease;
}
.fx-public-form-shell.fx-delivery-expanded {
    max-width: 780px;
}
.fx-delivery-step {
    padding: 28px !important;
}
.fx-delivery-step .delivery-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}
.fx-delivery-step .delivery-options > .delivery-option {
    min-width: 0;
    margin-right: 0;
}
.fx-delivery-step .delivery-option label {
    position: relative;
    min-height: 72px;
    font-weight: 600;
}
.fx-recommended-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
}
.fx-delivery-step #shipping_delivery_fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}
.fx-delivery-step #shipping_delivery_fields > .shipping-destination,
.fx-delivery-step #shipping_delivery_fields > .fx-shipping-destination-picker,
.fx-delivery-step #shipping_delivery_fields > .form-group:nth-last-child(-n+3) {
    grid-column: 1 / -1;
}
.fx-shipping-destination-picker {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.fx-shipping-destination-picker legend {
    width: auto;
    margin: 0 0 10px;
    color: #0b172c;
    font-size: 15px;
    font-weight: 750;
}
.fx-shipping-destination-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.fx-shipping-destination-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 112px;
    margin: 0;
    padding: 17px 44px 16px 17px;
    border: 1px solid #c9d8ee;
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.fx-shipping-destination-option:hover {
    border-color: #7aa8ee;
}
.fx-shipping-destination-option:has(input:checked) {
    border-color: #0f63e9;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(15, 99, 233, .1);
}
.fx-shipping-destination-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fx-shipping-destination-option strong {
    color: #0b172c;
    font-size: 15px;
}
.fx-shipping-destination-option small {
    color: #5f708b;
    font-size: 13px;
    line-height: 1.45;
}
.fx-shipping-destination-check {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #b9c9de;
    border-radius: 50%;
    color: transparent;
}
.fx-shipping-destination-option:has(input:checked) .fx-shipping-destination-check {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.fx-shipping-destination-picker.is-invalid .fx-shipping-destination-options {
    padding: 3px;
    border: 1px solid #dc2626;
    border-radius: 14px;
}
.fx-selected-shipping-destination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #86efac;
    border-radius: 11px;
    background: #f0fdf4;
}
.fx-selected-shipping-destination[hidden] {
    display: none !important;
}
.fx-selected-shipping-destination span {
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}
.fx-selected-shipping-destination strong {
    color: #052e16;
    font-size: 15px;
    text-align: right;
}

.fx-shipping-recipient {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #d7e3f3;
    border-radius: 12px;
    background: #fff;
}
.fx-shipping-recipient-title {
    display: block;
    margin-bottom: 10px;
    color: #52647d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.fx-shipping-recipient dl { margin: 0; }
.fx-shipping-recipient dl > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid #e5edf7;
}
.fx-shipping-recipient dt { color: #64748b; font-weight: 600; }
.fx-shipping-recipient dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    overflow-wrap: anywhere;
}
@media (max-width: 560px) {
    .fx-shipping-recipient dl > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
.fx-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.fx-field-label label { margin-bottom: 0; }
.fx-help-link {
    border: 0;
    padding: 2px 0;
    background: transparent;
    color: #1456b8;
    font-weight: 700;
    cursor: pointer;
}
.fx-shipping-guide {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #c9d8ee;
    border-radius: 10px;
    background: #f8fbff;
}
.fx-shipping-guide[hidden] {
    display: none !important;
}
.fx-shipping-guide ol { margin: 10px 0; padding-left: 20px; }
.fx-shipping-guide li { margin-bottom: 7px; }
.fx-shipping-guide ul { margin: 8px 0 2px; padding-left: 18px; }
.fx-shipping-guide ul li { margin-bottom: 5px; }
.fx-inpost-carrier {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d9e0ea;
    border-radius: .25rem;
    background: #f8fafc;
    font-weight: 700;
}
.fx-info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    margin-left: 4px;
    border-radius: 50%;
    background: #152238;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    cursor: help;
}
.fx-info-tip:hover::after,
.fx-info-tip:focus::after {
    content: attr(aria-label);
    position: absolute;
    z-index: 20;
    width: min(280px, 80vw);
    margin: 34px 0 0 -245px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #152238;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .fx-public-form-shell.fx-delivery-expanded { max-width: calc(100% - 20px); }
    .fx-delivery-step { padding: 18px !important; }
    .fx-delivery-step .delivery-options,
    .fx-delivery-step #shipping_delivery_fields,
    .fx-shipping-destination-options { grid-template-columns: 1fr; }
    .fx-delivery-step #shipping_delivery_fields > * { grid-column: 1 !important; }
    .fx-selected-shipping-destination {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .fx-selected-shipping-destination strong { text-align: left; }
}

/* Publiczny formularz 1.7.2 */
.fx-public-form-shell {
    display: grid;
    grid-template-columns: minmax(240px, 29%) minmax(0, 1fr);
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    min-height: 620px;
    margin: 24px auto 48px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e6edf7;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .10) !important;
}

.fx-public-form-shell.fx-delivery-expanded {
    max-width: 1120px !important;
}

.fx-form-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-right: 1px solid #edf2f8;
    background:
        radial-gradient(circle at 25% 20%, rgba(37, 99, 235, .08), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.fx-form-visual-logo {
    position: absolute;
    z-index: 2;
    top: 28px;
    left: 30px;
    display: block;
}

.fx-form-visual-logo img {
    display: block;
    width: auto;
    max-width: 145px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.fx-form-category-artwork {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 112%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    pointer-events: none;
    user-select: none;
}

.fx-form-main {
    min-width: 0;
    padding: 30px 42px 32px;
}

.fx-form-main > .header-container {
    min-height: 42px;
    margin: 0 0 4px;
    background: transparent;
}

.fx-form-main > .header-container > a:first-child {
    display: none;
}

.fx-form-main .btn-back {
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 9px;
    background: #f8fafc;
    color: #1554b8;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.fx-form-main .btn-back:hover {
    background: #eff6ff;
    color: #0b49aa;
}

.fx-form-main .main_title {
    margin: 0 0 20px;
}

.fx-form-main .main_title center {
    display: block;
    text-align: left;
}

.fx-form-main .main_title h4 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: clamp(24px, 2.7vw, 34px);
    font-weight: 750;
    line-height: 1.15;
}

.fx-form-main .main_title h4::after {
    content: "Wypełnij formularz krok po kroku, a my zajmiemy się resztą.";
    display: block;
    margin-top: 9px;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.fx-form-main .form-category-badge {
    margin-bottom: 6px;
    background: #eff6ff;
    color: #1d5fc4;
}

.fx-form-stepper.progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    height: auto;
    min-height: 68px;
    margin: 0 0 22px;
    overflow: visible;
    border-top: 1px solid #e7edf5;
    border-bottom: 1px solid #e7edf5;
    border-radius: 0;
    background: transparent;
}

.fx-form-stepper .segment {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: auto !important;
    height: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 14px 0 0;
    overflow: visible;
    border-radius: 0;
    background: transparent !important;
    color: #64748b;
    text-align: left;
    transition: color .2s ease;
}

.fx-form-stepper .segment::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 7px;
    width: 16px;
    height: 1px;
    background: #dbe4ef;
}

.fx-form-stepper .segment:last-child::after {
    display: none;
}

.fx-form-stepper .segment span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.fx-form-stepper .segment strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-form-stepper .segment.is-current {
    color: #0759df;
}

.fx-form-stepper .segment.is-current span {
    background: #0759df;
    color: #fff;
    box-shadow: 0 6px 16px rgba(7, 89, 223, .22);
}

.fx-form-stepper .segment.is-complete {
    color: #0759df;
}

.fx-form-stepper .segment.is-complete span {
    border: 1px solid #0759df;
    background: #fff;
    color: transparent;
}

.fx-form-stepper .segment.is-complete span::before {
    content: "\f00c";
    color: #0759df;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}

.fx-form-main form > fieldset.form-group {
    min-height: 355px;
    margin: 0;
    padding: 0 !important;
    border: 0;
}

.fx-form-main form > fieldset.form-group > legend {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
}

.fx-step-description {
    margin: 7px 0 24px;
    color: #64748b;
    font-size: 13px;
}

.fx-form-main label {
    color: #26354d;
    font-size: 13px;
    font-weight: 650;
}

.fx-form-main .form-control,
.fx-form-main .select2-container .select2-selection {
    min-height: 44px;
    border-color: #d8e1ec;
    border-radius: 8px;
    background: #fff;
    color: #182338;
    box-shadow: none;
}

.fx-form-main textarea.form-control {
    min-height: 96px;
}

.fx-form-main .form-control:focus,
.fx-form-main .select2-container--focus .select2-selection {
    border-color: #2f74e8;
    box-shadow: 0 0 0 3px rgba(47, 116, 232, .12);
}

.fx-form-main .text-muted {
    color: #738096 !important;
    font-size: 11px;
}

.fx-form-main .device-selection {
    display: grid;
    grid-template-columns: repeat(3, minmax(132px, 1fr));
    width: 100%;
    gap: 14px;
}

.fx-form-main .device-selection > .device-selection {
    display: contents;
}

.fx-form-main .device-option {
    width: auto;
    min-width: 0;
    min-height: 150px;
    padding: 18px 14px;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fx-form-main .device-option:hover {
    transform: translateY(-2px);
    border-color: #83aff5;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.fx-form-main .device-option:has(input:checked) {
    border-color: #0759df;
    box-shadow: inset 0 0 0 1px #0759df;
}

.fx-form-main .device-option .device-icon {
    color: #0759df;
    font-size: 34px;
}

.fx-form-main .device-option span {
    margin-top: 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.fx-form-main .delivery-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 14px;
}

.fx-form-main .delivery-option {
    margin: 0;
}

.fx-form-main .delivery-option label {
    min-height: 68px;
    border-color: #d8e1ec;
    border-radius: 9px;
}

.fx-form-main .delivery-option input:checked + label {
    border-color: #0759df;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px #0759df;
    color: #0759df;
}

.fx-form-main .footer_button {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
}

.fx-form-main .footer_button .btn,
.fx-form-main .footer_button .prev-step {
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.fx-form-main .footer_button .btn-primary {
    border-color: #0759df;
    background: #0759df;
    box-shadow: 0 8px 20px rgba(7, 89, 223, .18);
}

.fx-form-main .footer_button .btn-primary::after {
    content: "\f061";
    margin-left: 8px;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

.fx-form-main fieldset[data-step="4"] .footer_button .btn-primary::after {
    content: "\f1d8";
}

.fx-form-main .footer_button .prev-step {
    border: 1px solid #d8e1ec !important;
    background: #fff !important;
    color: #334155;
}

.fx-form-main .footer_button .prev-step::before {
    content: "\f060";
    margin-right: 8px;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

.fx-form-main #error-message {
    margin: 0 0 18px;
    border-radius: 9px;
    white-space: pre-line;
}

@media (max-width: 1040px) {
    .fx-public-form-shell,
    .fx-public-form-shell.fx-delivery-expanded {
        grid-template-columns: minmax(0, 1fr);
        width: min(760px, calc(100% - 24px)) !important;
        max-width: 760px !important;
    }

    .fx-form-visual {
        display: none;
    }

    .fx-form-main > .header-container > a:first-child {
        display: block;
    }

    .fx-form-main > .header-container #logo {
        width: auto;
        max-width: 135px;
        height: 38px;
        object-fit: contain;
    }
}

/* Ostatnie dopasowanie panelu, stopki i podpowiedzi */
.fx-form-visual {
    background: #f8fbff;
}

.footer {
    transform: translateY(-1px);
}

.footer .containerr {
    border: 1px solid #e6edf7;
    border-top: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.fx-info-tip {
    position: relative;
    flex: 0 0 auto;
}

.fx-info-tip:hover::after,
.fx-info-tip:focus::after {
    content: attr(aria-label);
    position: absolute;
    z-index: 50;
    top: calc(100% + 9px);
    left: 50%;
    width: min(280px, 74vw);
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #152238;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .24);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    transform: translateX(-50%);
}

.fx-info-tip:hover::before,
.fx-info-tip:focus::before {
    content: "";
    position: absolute;
    z-index: 51;
    top: calc(100% + 4px);
    left: 50%;
    width: 10px;
    height: 10px;
    background: #152238;
    transform: translateX(-50%) rotate(45deg);
}

/* Modal wyboru godziny */
#godzinaModal .modal-dialog {
    display: flex;
    align-items: center;
    width: calc(100% - 28px);
    max-width: 560px;
    min-height: calc(100% - 32px);
    margin: 16px auto;
}

#godzinaModal .modal-content {
    overflow: hidden;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

#godzinaModal .modal-header {
    align-items: center;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e8eef6;
}

#godzinaModal .modal-title {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
}

#godzinaModal .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: -4px -6px -4px 12px;
    padding: 0;
    border-radius: 9px;
    background: #f3f6fa;
    color: #526176;
    font-size: 25px;
    line-height: 1;
    opacity: 1;
}

#godzinaModal .close:hover {
    background: #e9eff7;
    color: #0f172a;
}

#godzinaModal .modal-info {
    padding: 16px 22px 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

#godzinaModal .modal-info small {
    font-size: inherit;
}

#godzinaModal .modal-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 22px 24px;
}

#godzinaModal .select-hour-button {
    min-height: 44px;
    margin: 0 !important;
    border: 1px solid #cfe0fa;
    border-radius: 9px;
    background: #f6f9fe;
    color: #1554b8;
    box-shadow: none;
    font-size: 14px;
    font-weight: 750;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

#godzinaModal .select-hour-button:hover,
#godzinaModal .select-hour-button:focus {
    transform: translateY(-1px);
    border-color: #0759df;
    background: #0759df;
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 89, 223, .18);
}

#godzinaModal .modal-body > .alert {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 9px;
}

/* Kolor grafiki bez widocznego łączenia oraz prosta stopka */
.fx-form-visual {
    background: rgb(247, 251, 254);
}

.footer .containerr {
    border-radius: 0;
}

@media (max-width: 520px) {
    #godzinaModal .modal-title {
        font-size: 18px;
    }

    #godzinaModal .modal-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-inline: 16px;
    }

    #godzinaModal .modal-header,
    #godzinaModal .modal-info {
        padding-inline: 16px;
    }
}

/* Równe łączniki pomiędzy krokami */
@media (min-width: 701px) {
    .fx-form-stepper .segment {
        grid-template-columns: 30px max-content minmax(18px, 1fr);
        gap: 9px;
        padding-right: 0;
    }

    .fx-form-stepper .segment::after {
        position: static;
        display: block;
        width: auto;
        height: 1px;
        margin: 0 12px;
        background: #dbe4ef;
        transform: none;
    }

    .fx-form-stepper .segment:last-child {
        grid-template-columns: 30px max-content;
    }
}

@media (max-width: 700px) {
    .fx-form-stepper .segment::after {
        position: absolute;
        top: 50%;
        right: -10px;
        width: 20px;
        margin: 0;
        transform: translateY(-50%);
    }
}

/* Pionowy kadr ilustracji zgodny z projektem */
.fx-form-category-artwork {
    object-fit: contain;
    object-position: center center;
}

/* Stopka jako dolna część karty formularza */
.fx-public-form-shell,
.fx-public-form-shell.fx-delivery-expanded {
    border-bottom-color: transparent;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 14px 44px rgba(15, 23, 42, .09) !important;
}

.fx-form-visual {
    border-radius: 18px 0 0 0;
}

.fx-form-main {
    border-radius: 0 18px 0 0;
}

.footer {
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.footer .containerr {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5edf7;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

@media (max-width: 1040px) {
    .fx-form-main {
        border-radius: 18px 18px 0 0;
    }
}

@media (max-width: 700px) {
    .fx-public-form-shell,
    .fx-public-form-shell.fx-delivery-expanded {
        border-radius: 14px 14px 0 0 !important;
    }

    .fx-form-main {
        border-radius: 14px 14px 0 0;
    }

    .footer .containerr {
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 700px) {
    .fx-public-form-shell,
    .fx-public-form-shell.fx-delivery-expanded {
        width: min(100% - 16px, 620px) !important;
        margin: 8px auto 28px !important;
        border-radius: 14px !important;
    }

    .fx-form-main {
        padding: 18px 18px 22px;
    }

    .fx-form-main .main_title {
        text-align: center;
    }

    .fx-form-main .main_title center {
        text-align: center;
    }

    .fx-form-main .main_title h4 {
        font-size: 21px;
    }

    .fx-form-main .main_title h4::after {
        display: none;
    }

    .fx-form-stepper.progress {
        min-height: 58px;
        margin-bottom: 20px;
    }

    .fx-form-stepper .segment {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .fx-form-stepper .segment::after {
        right: -10px;
        width: 20px;
    }

    .fx-form-stepper .segment strong {
        display: none;
    }

    .fx-form-main form > fieldset.form-group {
        min-height: 0;
    }

    .fx-form-main .device-selection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fx-form-main .device-option {
        min-height: 128px;
    }

    .fx-form-main .delivery-options {
        grid-template-columns: 1fr;
    }

    .fx-form-main .footer_button {
        position: static;
        width: auto;
        margin-top: 24px !important;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .fx-form-main .footer_button .btn,
    .fx-form-main .footer_button .prev-step {
        flex: 0 1 auto;
    }
}

@media (max-width: 420px) {
    .fx-form-main {
        padding-inline: 14px;
    }

    .fx-form-main > .header-container #logo {
        max-width: 108px;
        height: 34px;
    }

    .fx-form-main .btn-back {
        padding-inline: 8px;
        font-size: 12px;
    }

    .fx-form-main .device-selection {
        grid-template-columns: 1fr;
    }

    .fx-form-main .device-option {
        min-height: 112px;
    }
}

/* Dopracowanie formularza 1.7.2 */
body {
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .09), transparent 28rem),
        radial-gradient(circle at 88% 92%, rgba(14, 165, 233, .07), transparent 30rem),
        linear-gradient(145deg, #f8fbff 0%, #f3f7fc 52%, #eef4fb 100%);
}

body::before {
    display: none;
}

.fx-public-form-shell,
.fx-public-form-shell.fx-delivery-expanded {
    overflow: visible;
    flex: 0 0 auto;
    height: auto;
}

.fx-form-visual {
    align-self: stretch;
    min-height: 100%;
    overflow: hidden;
    border-radius: 18px 0 0 18px;
}

.fx-form-category-artwork {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.fx-form-visual-logo {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    backdrop-filter: blur(8px);
}

.fx-form-main {
    border-radius: 0 18px 18px 0;
    background: rgba(255, 255, 255, .98);
}

.fx-public-form-shell.fx-delivery-expanded .fx-form-main form > fieldset.form-group {
    min-height: 0;
}

.fx-public-form-shell.fx-delivery-expanded {
    margin-bottom: 32px !important;
}

.footer {
    width: min(1120px, calc(100% - 32px));
    height: auto;
    margin: 0 auto 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

html {
    scrollbar-color: #91a9c8 #edf3fa;
    scrollbar-width: thin;
}

body::-webkit-scrollbar {
    width: 11px;
}

body::-webkit-scrollbar-track {
    background: #edf3fa;
}

body::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 3px solid #edf3fa;
    border-radius: 999px;
    background: linear-gradient(180deg, #9bb2d0, #6f8fb8);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7898c0, #5278aa);
}

/* Stała karta i przewijana treść formularza */
@media (min-width: 1041px) {
    .fx-public-form-shell,
    .fx-public-form-shell.fx-delivery-expanded {
        height: clamp(620px, calc(100vh - 120px), 760px);
        min-height: 620px;
        max-height: 760px;
        align-items: stretch;
    }

    .fx-form-visual {
        height: 100%;
        min-height: 0;
    }

    .fx-form-main {
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-color: #8aa6cb #edf3fa;
        scrollbar-width: thin;
    }

    .fx-form-main::-webkit-scrollbar {
        width: 10px;
    }

    .fx-form-main::-webkit-scrollbar-track {
        margin-block: 12px;
        border-radius: 999px;
        background: #edf3fa;
    }

    .fx-form-main::-webkit-scrollbar-thumb {
        min-height: 52px;
        border: 2px solid #edf3fa;
        border-radius: 999px;
        background: linear-gradient(180deg, #9ab2d1, #6689b7);
    }

    .fx-form-main::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #7899c2, #4f76a8);
    }

    .fx-form-category-artwork {
        object-position: 22% center;
    }
}

.fx-form-stepper .segment.is-complete span {
    position: relative;
    line-height: 1;
}

.fx-form-stepper .segment.is-complete span::before {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 14px;
    height: 14px;
    margin: 0;
    line-height: 14px;
    text-align: center;
    transform: translate(-50%, -50%);
}

@media (max-width: 1040px) {
    .fx-public-form-shell,
    .fx-public-form-shell.fx-delivery-expanded {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .fx-form-main {
        height: auto;
        overflow: visible;
    }
}

/* Walidacja przy akcjach oraz zintegrowana stopka */
.fx-public-form-shell,
.fx-public-form-shell.fx-delivery-expanded {
    margin-bottom: 0 !important;
}

.footer {
    margin: -1px auto 20px;
}

.footer .containerr {
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.fx-validation-summary {
    display: grid;
    gap: 5px;
    margin: 20px 0 10px !important;
    padding: 13px 15px;
    border: 1px solid #f5a3a9;
    border-left: 4px solid #dc3545;
    border-radius: 9px;
    background: #fff4f4;
    color: #8f1d28;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal !important;
}

.fx-validation-summary strong {
    color: #70141d;
    font-size: 13px;
}

.fx-validation-summary span {
    display: block;
}

.fx-form-main .form-control.is-invalid,
.fx-form-main .select2-container.is-invalid .select2-selection {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .10);
}

.fx-form-main .form-group.is-invalid {
    padding: 10px;
    border: 1px solid #ef9aa3;
    border-radius: 9px;
    background: #fff8f8;
}

.fx-form-main .device-selection.is-invalid {
    padding: 8px;
    border: 1px solid #ef9aa3;
    border-radius: 12px;
    background: #fff8f8;
}

.fx-form-main .device-selection.is-invalid .device-option {
    border-color: #ef9aa3;
}

@media (max-width: 700px) {
    .footer {
        margin: -1px auto 12px;
    }

    .fx-validation-summary {
        margin-top: 16px !important;
    }
}

.footer .containerr {
    padding: 10px 16px;
    border: 1px solid rgba(203, 213, 225, .75);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    backdrop-filter: blur(10px);
}

.footer .text-muted,
.footer .text-muted a {
    color: #64748b !important;
    font-size: 12px;
}

.footer .text-muted a {
    color: #1554b8 !important;
    font-weight: 700;
}

@media (max-width: 1040px) {
    .fx-form-main {
        border-radius: 18px;
    }

    .footer {
        width: min(760px, calc(100% - 24px));
    }
}

@media (max-width: 700px) {
    body {
        background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
    }

    .fx-public-form-shell,
    .fx-public-form-shell.fx-delivery-expanded {
        margin-bottom: 20px !important;
    }

    .footer {
        width: calc(100% - 16px);
        margin: 0 auto 12px;
    }
}

/* Końcowe wymuszenie wyglądu stopki w formularzu 1.7.2 */
.footer .containerr {
    border-radius: 0 !important;
}

.fx-form-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 22px;
    text-align: center;
}

.fx-form-footer-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #94a3b8;
    opacity: .75;
}

.fx-form-footer-powered {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
}

.fx-form-footer-powered a {
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease;
}

.fx-form-footer-powered a:hover,
.fx-form-footer-powered a:focus-visible {
    color: #0f5eea;
    text-decoration: none;
}

@media (max-width: 480px) {
    .fx-form-footer-content {
        flex-direction: column;
        gap: 2px;
    }

    .fx-form-footer-separator {
        display: none;
    }
}

/* Mobilny naglowek i adaptacyjna siatka urzadzen */
@media (max-width: 700px) {
    .fx-form-main > .header-container {
        margin-bottom: 16px;
    }

    .fx-form-main .main_title {
        margin-bottom: 20px;
    }

    .fx-form-main .device-selection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fx-form-main .device-option {
        min-height: 112px;
        padding: 14px 8px;
    }

    .fx-form-main .device-option .device-icon {
        font-size: 30px;
    }

    .fx-form-main .device-option span {
        margin-top: 9px;
        font-size: 13px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 340px) {
    .fx-form-main .device-selection {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px), (pointer: coarse) {
    .fx-form-main .footer_button.fx-actions-highlight .btn-primary {
        animation: fx-next-button-hint 1.15s ease;
    }
}

@keyframes fx-next-button-hint {
    0%, 100% {
        box-shadow: 0 10px 22px rgba(7, 89, 223, .18);
        transform: translateY(0);
    }
    45% {
        box-shadow: 0 0 0 7px rgba(37, 99, 235, .14), 0 14px 28px rgba(7, 89, 223, .24);
        transform: translateY(-2px);
    }
}

/* Odświeżony wybór godziny dostarczenia */
#godzinaModal .modal-dialog {
    max-width: 600px;
}

#godzinaModal .modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

#godzinaModal .modal-header {
    min-height: 92px;
    padding: 20px 24px;
    border-bottom: 1px solid #e3ebf5;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

#godzinaModal .fx-hour-modal-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

#godzinaModal .fx-hour-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #0759df;
    color: #fff;
    box-shadow: 0 8px 20px rgba(7, 89, 223, .20);
    font-size: 18px;
}

#godzinaModal .fx-hour-modal-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #2563c8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

#godzinaModal .modal-title {
    font-size: 21px;
}

#godzinaModal .close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #dce6f2;
    background: rgba(255, 255, 255, .85);
}

#godzinaModal .modal-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 24px 2px;
    padding: 13px 14px;
    border: 1px solid #dbe8fa;
    border-radius: 11px;
    background: #f7faff;
    color: #526176;
}

#godzinaModal .modal-info > i {
    margin-top: 3px;
    color: #2670df;
    font-size: 14px;
}

#godzinaModal .modal-body {
    gap: 10px;
    padding: 18px 24px 26px;
}

#godzinaModal .select-hour-button {
    position: relative;
    min-height: 50px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d8e4f3;
    border-radius: 11px;
    background: #fff;
    color: #19304f;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

#godzinaModal .select-hour-button:hover,
#godzinaModal .select-hour-button:focus-visible {
    transform: translateY(-2px);
    border-color: #0759df;
    outline: 0;
    background: #0759df;
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 89, 223, .22);
}

#godzinaModal .select-hour-button:active {
    transform: translateY(0);
}

@media (max-width: 520px) {
    #godzinaModal .modal-dialog {
        width: calc(100% - 20px);
        min-height: calc(100% - 20px);
        margin: 10px auto;
    }

    #godzinaModal .modal-header {
        min-height: 82px;
        padding: 16px;
    }

    #godzinaModal .fx-hour-modal-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    #godzinaModal .modal-title {
        font-size: 17px;
    }

    #godzinaModal .modal-info {
        margin: 14px 16px 0;
    }

    #godzinaModal .modal-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 14px 16px 20px;
    }
}

@media (max-width: 350px) {
    #godzinaModal .modal-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#godzinaModal .fx-hour-date-nav {
    display: grid;
    grid-template-columns: minmax(98px, auto) minmax(0, 1fr) minmax(98px, auto);
    align-items: center;
    gap: 12px;
    margin: 14px 24px 0;
    padding: 8px;
    border: 1px solid #e0e9f4;
    border-radius: 13px;
    background: #f8fafc;
}

#godzinaModal .fx-hour-date-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d7e2ef;
    border-radius: 9px;
    background: #fff;
    color: #24589f;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

#godzinaModal .fx-hour-date-button:hover:not(:disabled),
#godzinaModal .fx-hour-date-button:focus-visible {
    border-color: #8bb4f4;
    outline: 0;
    background: #edf5ff;
    color: #0759df;
}

#godzinaModal .fx-hour-date-button:disabled {
    cursor: not-allowed;
    opacity: .38;
}

#godzinaModal .fx-hour-current-date {
    min-width: 0;
    text-align: center;
}

#godzinaModal .fx-hour-current-date small {
    display: block;
    margin-bottom: 2px;
    color: #8491a5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

#godzinaModal .fx-hour-current-date strong {
    display: block;
    overflow: hidden;
    color: #14233b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#godzinaModal .fx-hour-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 76px;
    color: #64748b;
    font-size: 13px;
}

#godzinaModal .fx-hour-loading span {
    width: 18px;
    height: 18px;
    border: 2px solid #cfe0fa;
    border-top-color: #0759df;
    border-radius: 50%;
    animation: fx-hour-spin .7s linear infinite;
}

@keyframes fx-hour-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
    #godzinaModal .fx-hour-date-nav {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 7px;
        margin: 12px 16px 0;
        padding: 6px;
    }

    #godzinaModal .fx-hour-date-button {
        width: 42px;
        padding: 0;
    }

    #godzinaModal .fx-hour-date-button span {
        display: none;
    }

    #godzinaModal .fx-hour-current-date strong {
        font-size: 13px;
    }
}
