/* --- Główny kontener i ogólne style --- */
#plotter-calculator-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 0px;
    font-family: Poppins;
    color: #333;
    max-width: 900px;
    margin: 0px auto;
}

/* --- Nawigacja kroków --- */
.kkp-step-navigation {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}
.kkp-step-nav-item {
    padding: 10px 0px 10px 0;
    font-size: 16px;
    font-weight: normal;
    color: #888;
    position: relative;
    cursor: default;
}
.kkp-step-nav-item.active {
    color: #0073e6;
}
.kkp-step-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80%;
    height: 3px;
    background-color: #0073e6;
}
.kkp-step-nav-item:not(:last-child) {
    margin-right: 20px;
}

/* --- Ukrywanie i pokazywanie kroków --- */
.calculator-step {
    display: none;
}
.calculator-step.active {
    display: block;
}

/* --- Nagłówki kroków --- */
.calculator-step h2 {
    font-size: 18px !important;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* --- Dwukolumnowy układ formularza --- */
.form-grid {

    grid-template-columns: repeat(2, 1fr);
    gap: 00px 10px;
}

/* --- Pojedyncza grupa formularza (label + select) --- */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}


.form-group label .icon-info {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #777;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 11px;
    line-height: 13px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: normal;
    margin-right: 5px;
    cursor: help;
}
/* --- Styl dla ceny wewnątrz opcji select --- */
/* Niestety, bezpośrednie stylowanie części tekstu w <option> nie jest możliwe. */
/* Możemy jednak użyć fontu monospaced, aby uzyskać efekt tabeli. */
.form-group select {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.form-group select {
width: 100%;
font-family: Poppins;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 0px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 300;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Pola na ostatnim kroku */
#step-3 .form-group {
    margin-bottom: 20px;
}
#step-3 input[type="text"],
#step-3 input[type="tel"],
#step-3 input[type="email"] {
    width: 100%;
    padding:6px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 14px;
}
#step-3 .consent-group {
    display: flex;
    align-items: center;
}
#step-3 .consent-group input {
    margin-right: 10px;
}

/* --- Przyciski nawigacyjne i cena --- */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
.price-display {
    text-align: left;
}
.price-display .price-label {
    font-size: 20px;
    color: #666;

    font-weight: bold;
    margin: 0;
}
.price-display .price-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.price-display .price-value span {
    font-size: 20px;
    font-weight: bold;
    margin-left: 5px;
}

.kkp-nav-buttons button {
    background-color: #104d83;
    color: white;
    border: none;
    padding: 12px 25px;
font-family: Poppins;
font-weight: bold;
    font-size: 16px;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.kkp-nav-buttons button:hover {
    background-color: #005bb5;
}
.kkp-nav-buttons button.prev-step {
    background-color: #6c757d;
}
.kkp-nav-buttons button.prev-step:hover {
    background-color: #5a6268;
}
.kkp-nav-buttons button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Status formularza --- */
#form-status {
    margin-top: 15px;
    font-weight: bold;
}

/* --- Pola warunkowe --- */
.form-group.conditional {
    display: none; /* Domyślnie ukryte */
}

/* Responsywność */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .step-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .price-display {
        margin-bottom: 20px;
    }
}
/* --- Style dla pola zgody na Kroku 3 --- */
#step-3 .consent-group-full-width {
    grid-column: 1 / -1; /* Rozciągnij na całą szerokość siatki */
    display: flex;
    align-items: flex-start; /* Wyrównaj do góry */
    margin-top: 20px;
}

#step-3 .consent-group-full-width input[type="checkbox"] {
    margin-top: 4px; /* Delikatne przesunięcie w dół, aby pasowało do tekstu */
    margin-right: 15px; /* Odstęp od tekstu */
    flex-shrink: 0; /* Zapobiegaj kurczeniu się checkboxa */
}

#step-3 .consent-group-full-width label {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.6;
    color: #555;
    cursor: pointer;
}


/* --- Styl dla zablokowanych (disabled) list select --- */
.form-group select:disabled {
    background-color: #e9ecef; /* Jasnoszare tło */
    opacity: 1; /* Pełna widoczność tekstu */
    cursor: not-allowed; /* Kursor informujący o blokadzie */
    color: #495057; /* Ciemniejszy tekst dla czytelności */
}

/* --- Styl dla pola "tylko do odczytu" --- */
p.readonly-value {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 0px;
    background-color: #e9ecef;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    box-sizing: border-box;
    color: #495057;
}

/* --- Styl dla pojedynczego wiersza z polami --- */
.form-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1; /* Każde pole zajmuje równą część przestrzeni */
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}