* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1c1c1c, #4b0000);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

form {
    max-width: 520px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: fadeIn 0.6s ease;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #b30000;
    letter-spacing: 0.5px;
}

label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: #b30000;
    box-shadow: 0 0 0 2px rgba(179,0,0,0.15);
}

#opiekunBox {
    margin-top: 10px;
    padding: 12px;
    background: #f7f7f7;
    border-left: 4px solid #b30000;
    border-radius: 6px;
}

.checkbox {
    margin-top: 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: auto;
}

.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #b30000, #ff3333);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(179,0,0,0.4);
    background: linear-gradient(135deg, #990000, #ff1a1a);
}

button:active {
    transform: scale(0.98);
}

/* Animacja wejścia */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 520px) {
    form {
        padding: 22px 20px;
    }

    h2 {
        font-size: 18px;
    }
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.radio-group input {
    accent-color: #b30000;
}

.radio-group label:hover {
    background: #f7f7f7;
    border-color: #b30000;
}