/* Kontener formularza */
.pm-form {
    max-width: 100%;
 }

.pm-field {
    margin-top:1rem;
}

/* Grupa input + label */
.pm-form .pm-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

/* Etykiety nad inputami */
.pm-form .pm-field label {
    font-size: 16px;
    font-weight: 500;
    color: #000;  
    margin-bottom: 0.375rem;
}

/* Style dla pól tekstowych */
.pm-form input[type="text"],
.pm-form input[type="email"],
.pm-form input[type="tel"],
.pm-form input[type="password"],
.pm-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db; /* Neutralna szara ramka */
    border-radius: 6px;
    box-sizing: border-box; /* Kluczowe dla width 100% z paddingiem */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Usunięcie domyślnego powiększania textarea na boki */
.pm-form textarea {
    resize: vertical;
}

/* Placeholder (tekst pomocniczy) */
.pm-form ::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Stan aktywny (Focus) */
.pm-form input[type="text"]:focus,
.pm-form input[type="email"]:focus,
.pm-form input[type="tel"]:focus,
.pm-form input[type="password"]:focus,
.pm-form textarea:focus {
    outline: none;
    border-color: #3b82f6; /* Nowoczesny niebieski (możesz zmienić na markowy kolor) */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* Subtelna poświata */
}

/* Kontener dla Checkboxa (label i input obok siebie) */
.pm-form .pm-field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

/* Stylizacja checkboxa */
.pm-form input[type="checkbox"] {
    appearance: none; /* Ukrywa domyślny, brzydki systemowy checkbox */
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    display: inline-grid;
    place-content: center;
    margin: 0;
    margin-top: 0.15rem; /* Delikatne wyrównanie do tekstu */
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Ptaszek wewnątrz checkboxa za pomocą pseudo-elementu */
.pm-form input[type="checkbox"]::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    transform: scale(0);
    transition: transform 0.1s ease-in-out;
    background-color: #ffffff;
    /* Tworzy kształt "ptaszka" za pomocą clip-path */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.pm-form input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.pm-form input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.pm-form input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Label dla checkboxa */
.pm-field-checkbox label {
    font-size: 16px;
    color: #4b5563;
    user-select: none;
    cursor: pointer;
    line-height: 1.4;
}

/* Prosty, ładny przycisk */
.pm-form .submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pm-form .submit-btn:hover {
    background-color: #2563eb;
}



.pm-btn--submit {
    margin-top:2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    
    /* Szerokość - jeśli ma być na 100% w formularzu, zostaw 100%. 
       Jeśli ma stać luźno na stronie, zmień na width: auto; */
    width: 100%; 
    padding: 0.8rem 1.75rem;
    
    /* Typografia */
 
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    
    /* Wygląd - delikatny gradient nadaje mu głębi */
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid #1d4ed8;
    border-radius: 8px; /* Miękkie, nowoczesne zaokrąglenie */
    cursor: pointer;
    
    /* Cienie - bardzo subtelne, dodające elegancji */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 
                0 4px 12px 0 rgba(37, 99, 235, 0.15);
    
    /* Płynne przejścia dla animacji */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efekt najechania myszką (Hover) */
.pm-btn--submit:hover {
    /* Przycisk delikatnie ciemnieje i unosi się (efekt zbliżenia) */
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 
                0 6px 20px 0 rgba(37, 99, 235, 0.25);
}

/* Animacja ikony wewnątrz przycisku podczas hoveru */
.pm-btn--submit:hover stroke,
.pm-btn--submit:hover svg {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

/* Efekt kliknięcia (Active) */
.pm-btn--submit:active {
    /* Przycisk wraca na swoje miejsce i dociska się do ziemi */
    transform: translateY(1px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Dla użytkowników poruszających się klawiaturą (Focus) */
.pm-btn--submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

.pm-consent__label {
    width:100%;
    display:block;
    margin-top:12px;
}

.pm-field__error { 
    font-size: 14px;
    color:#fff;
    background: #ff0000;
    padding:0.25rem;
    border-radius: 6px;
}

.pm-consent__text {
    font-size:16px;
}

.pm-form-errors {
    border: 1px solid #ff0000;
    font-size: 14px;
    padding: 1rem;
    border-radius: 6px;
}

.pm-signature-count { 
    border:1px solid #00ff00;
    border-radius: 6px;
    font-size:18px;
    font-weight:bold;
    text-align:center;
    padding:2rem;
}