/* ==========================================================================
   Formularz Zgód Pacjenta - Dziedziczenie stylów z motywu (1000px, pełna treść)
   ========================================================================== */

/* Główny kontener formularza */
.kl-form-container {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
    box-sizing: border-box !important;
    font-family: inherit;
    color: inherit;
}

.kl-form-container *,
.kl-form-container *::before,
.kl-form-container *::after {
    box-sizing: border-box !important;
}

/* Grupy pól i etykiety */
.kl-form-group {
    margin-bottom: 15px;
    width: 100% !important;
}

.kl-form-group label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: inherit;
    font-family: inherit;
}

/* Pola wprowadzania tekstu oraz listy rozwijane */
.kl-input-field,
.kl-select-field {
    width: 100% !important;
    max-width: 100% !important;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: inherit;
    line-height: 1.4;
    font-family: inherit;
}

.kl-select-field {
    font-weight: bold;
    color: #0073aa;
    cursor: pointer;
}

.kl-input-field:focus,
.kl-select-field:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 115, 170, 0.4);
}

/* Sekcje z oświadczeniami, regulaminem i RODO */
.kl-document-section {
    width: 100% !important;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.kl-doc-title {
    margin-top: 0;
    font-size: 1.25em;
    color: inherit;
    margin-bottom: 10px;
    font-family: inherit;
}

/* Pełna wysokość dokumentów bez scrollowania */
.kl-doc-content {
    width: 100% !important;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 12px;
    max-height: none !important;
    overflow-y: visible !important;
    color: inherit;
    font-family: inherit;
}

.kl-doc-content p,
.kl-doc-content span,
.kl-doc-content li,
.kl-doc-content div {
    font-family: inherit;
    color: inherit;
}

/* Checkboxy - czysty natywny wygląd */
.kl-checkbox-label {
    width: 100% !important;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    background: #f9f9f9;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #edf0f1;
    color: inherit;
    font-family: inherit;
}

.kl-checkbox-input {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-top: 1px !important;
    margin-right: 10px !important;
    cursor: pointer;
}

.kl-checkbox-input::before,
.kl-checkbox-input::after {
    content: none !important;
}

/* Przycisk wysyłania */
.kl-submit-button {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 4px;
    font-weight: bold;
    width: 100% !important;
    font-family: inherit;
    transition: background 0.2s ease;
}

.kl-submit-button:hover {
    background: #005177;
}

/* Komunikaty błędów / sukcesu */
.kl-no-access-container,
.kl-error-container,
.kl-success-container {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto 20px auto;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.kl-no-access-container,
.kl-error-container {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    font-weight: bold;
}

.kl-success-container {
    color: green;
    background-color: #e6ffe6;
    border: 1px solid green;
    font-weight: bold;
}