/* CAŁA SEKCJA */
#kalkulator-transportu {
    padding: 5vh 5%; /* Padding zależny od wysokości i szerokości okna */
    background-color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

.calculator-header h1 {
    text-align: center;
    color: #ffffff;
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Tekst skaluje się z ekranem */
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* RESPONSYWNA SIATKA */
.calc-grid {
    display: flex;
    flex-wrap: wrap; /* Pozwala panelom przeskoczyć pod siebie */
    gap: 2%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

/* PANEL FORMULARZA - PROCENTOWY */
.input-panel {
    flex: 1 1 350px; /* Rośnie i kurczy się, startuje od 350px */
    max-width: 100%; /* Nigdy nie wyjdzie poza ekran */
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    height: fit-content;
    box-sizing: border-box;
}

/* MAPA - PROCENTOWA */
#map {
    flex: 2 1 500px; /* Zabiera 2x więcej miejsca niż formularz */
    min-height: 500px;
    height: 70vh; /* Wysokość zależna od ekranu */
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

/* ETYKIETY I INPUTY */
.field { margin-bottom: 1.5rem; }

.field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box; /* Ważne przy width: 100% */
}

/* PRZYCISK */
.btn-calc {
    width: 100%;
    padding: 1.2rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

/* WYNIKI - PEŁNA CZYTELNOŚĆ */
.results-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 18px;
    border: 1px solid #eee;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.result-value {
    font-weight: 800;
    color: #000;
}

.price-total {
    color: #2b8a3e !important;
    font-size: 1.3rem;
}

/* MEDIA QUERIES DLA MAŁYCH EKRANÓW */
@media (max-width: 768px) {
    .calc-grid {
        flex-direction: column; /* Wszystko w jednej kolumnie */
    }
    
    #map {
        order: -1; /* Mapa na górze */
        height: 350px;
        min-height: 350px;
    }

    .input-panel {
        padding: 1.5rem;
    }
}