body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 20px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

label {
    font-size: 1em;
    margin-left: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    box-sizing: border-box;
}


input[type="radio"] {
    transform: scale(1.4);
    margin-right: 10px;
    margin-top: 10px;
    cursor: pointer;
}

select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    background-color: #fff;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    resize: vertical;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}

input[type="datetime-local"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    background-color: #fff;
    box-sizing: border-box;
    margin-top: 10px;
}

input[type="submit"] {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 8px;
}

.tooltip-icon {
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 1em;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
}

.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: #2c3e50;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #2c3e50 transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#wynik {
    font-size: 1.5em;
    font-weight: bold;
    color: inherit;
    background-color: #EAF7EA;
    border: 2px solid #2E8B57;
    padding: 15px;
    text-align: center;
    margin-top: 30px;
    border-radius: 10px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-sizing: border-box;
    margin-top: 10px;
}


@media (max-width: 600px) {
    form {
        padding: 20px;
    }
    input[type="radio"] {
        transform: scale(1.2);
    }
}
