/* RESET I CZCIONKA */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #e9eef2;
    color: #333;
    line-height: 1.6;
}

/* NAGŁÓWEK */
.main-header {
    background-color: #007bff;
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

/* KONTENER GŁÓWNY */
.calculator-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* KARTA KALKULATORA */
.calculator-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 30px); /* 3 karty w rzędzie na dużych ekranach */
    min-width: 320px;
    transition: transform 0.3s;
}

.calculator-card:hover {
    transform: translateY(-3px);
}

.calculator-card h2 {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.calculator-card i {
    margin-right: 10px;
}

.description {
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

/* GRUPA WEJŚCIOWA (INPUT) */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* PRZYCISK */
button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
}

/* WYNIK */
.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* KARTA SPECJALNA (Świadczenie wspierające) */
.special-card {
    background-color: #fffacd; /* Lekko żółte tło dla wyróżnienia */
    border: 2px solid #ffc107;
    flex: 1 1 100%; /* Zajmuje całą szerokość */
}

.special-card h2 {
    color: #ffc107;
    border-bottom-color: #ffc107;
}

.special-card button {
    background-color: #ffc107;
    color: #333;
}

.special-card button:hover {
    background-color: #e0a800;
}

.special-card .result {
    background-color: #ffeeba;
    color: #856404;
    border-color: #ffc720;
}


/* STOPKA */
.main-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.85em;
}

.main-footer a {
    color: #007bff;
    text-decoration: none;
}

/* MEDIA QUERIES */
@media (max-width: 1000px) {
    .calculator-card {
        flex: 1 1 calc(50% - 30px); /* 2 karty w rzędzie */
    }
}

@media (max-width: 650px) {
    .calculator-card {
        flex: 1 1 100%; /* 1 karta w rzędzie */
    }
}