/* Ustawienia ogólne */
body {
    font-family: 'Mulish', sans-serif;
}

#kalkulator-wynagrodzen-ro-form,
#wynik {
    color: #333;
    margin: 0 auto;
    max-width: 800px;
}

#kalkulator-wynagrodzen-ro-form {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Układ pól w jednej linii na desktopie */
@media (min-width: 768px) {
    .form-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .form-row .form-group {
        flex: 1;
        margin-right: 10px;
    }
    .form-row .form-group:last-child {
        margin-right: 0;
    }
}

/* Styl dla pól formularza */
#kalkulator-wynagrodzen-ro-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #535ee5; /* Primary color */
}

#kalkulator-wynagrodzen-ro-form input,
#kalkulator-wynagrodzen-ro-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#kalkulator-wynagrodzen-ro-form input:focus,
#kalkulator-wynagrodzen-ro-form select:focus {
    border-color: #535ee5; /* Primary color */
    outline: none;
}

#kalkulator-wynagrodzen-ro-form button[type="submit"] {
    padding: 12px 20px;
    background-color: #51e5a5; /* Button color */
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    border-radius: 4px;
}

#kalkulator-wynagrodzen-ro-form button[type="submit"]:hover {
    background-color: #43b683; /* Slightly darker button color */
}

@media (min-width: 768px) {
    #calculate-button {
        width: auto;
        margin-top: 10px;
    }
}

/* Styl dla przycisku "Dodatkowe opcje" */
.additional-options-toggle {
    background-color: transparent;
    color: #535ee5; /* Primary color */
    padding: 10px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.additional-options-toggle:hover {
    color: #443abb; /* Accent color */
}

.additional-options-toggle .gear-icon {
    margin-right: 10px;
}

.additional-options-toggle .toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.additional-options-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.additional-options-content {
    display: none;
    margin-bottom: 20px;
}

/* Spinner/Loader */
#loader {
    display: none;
    margin: 20px auto;
    text-align: center;
}

#loader img {
    width: 100px;
    height: auto;
}

/* Styl dla wyników */
#wynik {
    margin-top: 20px;
}

.result-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
}

.result-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #584de2 !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.result-section p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.result-section p strong {
    font-weight: 600;
    color: #333;
}

/* Dwa kolumny na desktopie */
@media (min-width: 768px) {
    #wynik {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .result-section {
        width: 48%;
    }

}
/* styl mobile */
@media (max-width: 767px) {
	.result-section p {
        flex-direction: column; /* Stack labels and values */
        justify-content: flex-start; /* Align items to the start */
    }
	.result-section p span {
        word-wrap: break-word; /* Ensure long text wraps */
    }
}

/* Styl dla tooltipa */
.tooltip {
    position: relative;
    cursor: pointer;
    color: #535ee5; /* Primary color */
    text-decoration: none;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1;
    width: 220px;
    font-size: 14px;
    line-height: 1.4;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Poprawa tooltipa na urządzeniach mobilnych */
@media (max-width: 767px) {
    .tooltip::after {
        width: 180px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ukrycie etykiet dla czytników ekranu */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}