/* Resetowanie domyślnych styli przeglądarki */
body, h1, h2, h3, p, label, input, select, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* *************************************** */
/* Style dla formularza nowy klient */
/* *************************************** */
/* Style dla formularza nowy klient */
/* ================= GLOBAL ================= */
.form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    padding-bottom: 30px;
}

/* ================= HEADER ================= */

.form-header {
    background-color: #53b69a;
    color: #ffffff;
    text-align: center;
    padding: 28px 20px;
    margin-bottom: 30px;
}

.form-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.form-header p {
    margin: 6px 0 0;
    font-size: 16px;
}

/* ================= SEKCJE ================= */

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 0 30px;
}

/* ================= DANE PODSTAWOWE ================= */

.basic-row {
    display: grid;
    padding: 0 50px;
    margin-bottom: 24px;
    column-gap: 40px;
}

.row-2 {
    grid-template-columns: 1fr 1fr;
}

.row-3 {
    grid-template-columns: 1fr 2fr;
}

.field {
    position: relative;
}

.field input, .field select {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #bfbfbf;
    border-radius: 6px;
    box-sizing: border-box;
}

.field input:focus {
    outline: none;
    border-color: #53b69a;
}

.field select {
    display: block;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #bfbfbf;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.field select:focus {
    outline: none;
    border-color: #53b69a;
}


.field-note {
    position: absolute;
    left: 0;
    bottom: -18px;
    font-size: 12px;
    color: #777;
    line-height: 1.2;
    white-space: nowrap;
}

/* ================= ASORTYMENT ================= */

.assortment-desc {
    font-size: 14px;
    color: #555;
    padding: 0 30px;
    margin-bottom: 18px;
}

.assortment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0 30px;
}

.assortment-tile {
    position: relative;
    background: #ededed;
    border-radius: 6px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.2s ease;
}

.assortment-tile.active {
    background: #53b69a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.assortment-tile.active .tile-title {
    color: #ffffff;
}

.assortment-tile.active .tile-help {
    border-color: #ffffff;
    color: #53b69a;
}

/* Zawartość kafelka */
.tile-content {
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tile-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.tile-help {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* TOOLTIP */
.tile-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);

    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;

    padding: 8px 10px;
    border-radius: 4px;
    width: 240px;

    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 10;
}

.assortment-tile:hover .tile-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================= OPCJE PRODUKTU ================= */

.product-options {
    padding: 0 30px;
}

.product-options h2 {
    margin-bottom: 20px;
}

.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 22px;
}

.options-block {
    margin-bottom: 22px;
}

.options-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.options-note {
    font-weight: 400;
    font-size: 12px;
    color: #777;
}

/* przycisk rozwijania opcji produktu */
.product-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-product-options {
    background: none;
    border: none;
    color: #53b69a;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.toggle-product-options:hover {
    text-decoration: underline;
}

/* TECHNOLOGIE */
/* ================= TECHNOLOGIE ================= */

/* Kontener technologii */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 8px;
}

/* Pojedyncza opcja (ramka jak input) */
.tech-option {
    border: 1px solid #bfbfbf;
    border-radius: 6px;
    height: 34px;
    padding: 0 12px;
    box-sizing: border-box;
    cursor: pointer;
    background: #fff;
}

/* Label wypełnia całą ramkę */
.tech-option label {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* radio + tekst po lewej */
    gap: 8px;

    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Systemowy radio */
.tech-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

/* Tekst technologii */
.tech-label-text {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

/* Stan zaznaczony – jak w projekcie */
.tech-option:has(input:checked) {
    border-color: #53b69a;
}

/* Hover – delikatny jak input */
.tech-option:hover {
    border-color: #999;
}

/* RWD */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}




/* ================= PODSUMOWANIE ================= */
.summary {
    padding: 0 30px;
}

.summary h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Kontener listy */
.summary-box {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 10px 30px;
}

/* Pojedynczy wiersz podsumowania */
.summary-row {
    border-bottom: 1px solid #000;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Numeracja (jeśli dodasz w JS) */
.summary-row strong {
    font-weight: 700;
}

/* ================= PRZYCISK DODAJ ================= */
.btn-add {
    display: inline-block;
    margin-top: 20px;

    padding: 12px 26px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

    background-color: #53b69a;
    color: #ffffff;

    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-add:hover {
    background-color: #46a88e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-add:active {
    background-color: #3f9c84;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-add:focus {
    outline: none;
}


/* ================= PRZYCISK WYŚLIJ ================= */
.btn-submit {
    width: calc(100% - 60px);
    margin: 0 30px;
    padding: 14px;
    font-size: 16px;
    background: #53b69a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= RWD ================= */
@media (max-width: 1024px) {
    .assortment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .basic-row {
        grid-template-columns: 1fr !important;
        padding: 0 25px;
        margin-bottom: 25px;
        gap: 20px;
    }

    .field-note {
        white-space: normal;
    }

    .option-row {
        grid-template-columns: 1fr;
    }

    .form-section h2 {
        padding: 0 20px;
    }

    .assortment-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0 20px;
    }

    .product-options {
        padding: 0 20px;
    }

    .summary {
        padding: 0 20px;
    }

    .btn-submit {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}

/* ================= PODSUMOWANIE – AKCJE ================= */
.summary-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.summary-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.summary-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
}

.icon-btn.edit:hover {
    color: #53b69a;
}

.icon-btn.delete:hover {
    color: #c0392b;
}

/* ================= UWAGI DO FORMULARZA ================= */
.form-section.notes {
    padding: 0 30px;
}

.form-section.notes h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-section.notes .optional {
    font-weight: 400;
    font-size: 14px;
    color: #777;
}

.form-section.notes textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;

    border: 1px solid #bfbfbf;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}

.form-section.notes textarea:focus {
    outline: none;
    border-color: #53b69a;
}

/* ================= ZGODY ================= */
.consents {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 70px 70px 70px;
    display: flex;
    flex-direction: column;
}

.consent-toggle {
    align-self: flex-end;
}

.consent-item {
    margin-bottom: 12px;
}

.consent-label {
    display: flex;
    gap: 10px;
    cursor: pointer;
}

.consent-label input {
    margin-top: 4px;
}

.consent-toggle {
    background: none;
    border: none;
    color: #1a73e8;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
}

.consent-details {
    display: none;
    margin-top: 12px;
}

.consent-details.open {
    display: block;
}

.consent-details ol {
    padding-left: 18px;
}

.consent-details li {
    margin-bottom: 6px;
}

/* walidiacja formularza - wskazanie braków */
.field.error input,
.field.error textarea {
    border: 2px solid #e63946;
    background: #fff5f5;
}

.field .field-note.error {
    color: #e63946;
    font-size: 13px;
    margin-top: 4px;
}
.assortment-error {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: block; /* gdy jest widoczne */
  position: static !important; /* albo usuń absolute/fixed */
  text-align: left;
  padding: 0 50px;
}

/* *************************************** */
/* style dla wyświetlania danych z bazy */
/* *************************************** */
.newCli_data-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.newCli_data-container h1 {
    text-align: center;
    color: #29a080;
    margin-bottom: 20px;
}

.newCli_data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.newCli_data-table thead {
    background-color: #29a080;
    color: white;
}

.newCli_data-table th, .newCli_data-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.newCli_data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.newCli_data-table tbody tr:hover {
    background-color: #f1f1f1;
}

.newCli_details-container {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.newCli_kontakt-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

.newCli_data-container .newCli_delete-button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.newCli_data-container .newCli_delete-button:hover {
    background-color: darkred;
}

.newCli_expand-button {
    background-color: #29a080;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.newCli_expand-button:hover {
    background-color: #238e73;
}

/* *************************************** */
/* Style dla filtrów */
.newCli_filters-container {
    max-width: 1200px;
    margin: 10px auto 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.newCli_filters-form {
    display: flex;
    justify-content: space-between;
	align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.newCli_filter-group {
    flex: 1;
    min-width: 200px;
}

.newCli_filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.newCli_filter-group input,
.newCli_filter-group select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease-in-out;
}

.newCli_filter-group input:focus,
.newCli_filter-group select:focus {
    border-color: #29a080;
    outline: none;
}

.newCli_filter-group-date-in, 
.newCli_filter-group-date-delivery {
    display: flex;
    gap: 5px;
}

/* Przyciski Filtruj i Resetuj */
.newCli_filter-button {
    padding: 12px 20px; /* Ten sam padding dla obu przycisków */
    font-size: 16px; /* Ustawienie tej samej wielkości czcionki */
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    width: 150px; /* Stała szerokość dla obu przycisków */
    border: none; /* Usunięcie domyślnych obramowań */
	margin: 0;!important
	height: 45px;
}

.newCli_filter-submit {
    background-color: #29a080;
}

.newCli_filter-submit:hover {
    background-color: #238e73;
}

.newCli_filter-reset {
    background-color: #ddd;
    color: #333;
}

.newCli_filter-reset:hover {
    background-color: #bbb;
}

/* Wyśrodkowanie przycisków */
.newCli_filter-group-btn {
    display: flex;
    justify-content: center;
	align-items: center;
    gap: 15px; 
}
.newCli_separator {
	width: 2px;
	height: 100px;
	background-color: #ddd;
}
/* *************************************** */
/* Responsywność */
@media (max-width: 768px) {
    .newCli_filters-form {
        flex-direction: column;
        gap: 10px;
    }

    .newCli_data-container {
        padding: 15px;
    }

    .newCli_data-container h1 {
        font-size: 20px;
    }

    .newCli_filter-group label {
        font-size: 12px;
    }

    .newCli_filter-group input,
    .newCli_filter-group select {
        font-size: 12px;
    }

    .newCli_filter-submit,
    .newCli_filter-reset {
        font-size: 12px;
        width: 100%; /* Przyciski pełnej szerokości na urządzeniach mobilnych */
    }

    .newCli_filter-group-btn {
        flex-direction: column; /* Przyciski w kolumnie na małych ekranach */
        align-items: center; /* Wyśrodkowanie na osi poziomej */
    }
}

#offerForm .g-recaptcha {
	display: flex;
    justify-content: center;
    margin-bottom: 20px;
}