/**
 * NIO - Formularz badań profilaktycznych
 * Stylizacja v1.1 - Fixed validation colors
 */

.profilaktyka-form {
    max-width: 100%;
}

/* Stylizacja pól PESEL */
.pesel-input-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pesel-box {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #ced4da;
    border-radius: 6px;
    padding: 0;
    transition: all 0.3s ease;
}

.pesel-box:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    transform: scale(1.05);
}

/* Usuń domyślne czerwone obramowanie - tylko gdy pole ma wartość */
.pesel-box.filled-valid {
    border-color: #28a745;
}

.pesel-box.filled-invalid {
    border-color: #dc3545;
}

/* NIE pokazuj czerwonego obramowania dla pustych pól */
.pesel-box:invalid {
    border-color: #ced4da;
}

/* Responsywność dla małych ekranów */
@media (max-width: 576px) {
    .pesel-box {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }

    .pesel-input-group {
        gap: 4px;
    }
}

/* Stylizacja przycisku submit */
.contact-button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.contact-button:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.contact-button:active {
    transform: translateY(0);
}

.contact-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Stylizacja pól formularza */
.form-control {
    border-radius: 6px;
    border: 2px solid #ced4da;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    outline: none;
}

/* Stylizacja checkboxa RODO */
.form-check {
    padding-left: 30px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.15em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0056b3;
    border-color: #0056b3;
}

.form-check-label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

/* Komunikat sukcesu po wysłaniu */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 8px;
    animation: slideDown 0.5s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay podczas wysyłania */
.form-submitting {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.form-submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
