/* ─── PIK Newsletter Frontend — Mobile First ─── */

/* ═══ Fixed bottom bar ═══ */
.pik-nl-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    z-index: 99999;
    padding: 16px 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.35);
    font-family: 'Fira Sans', Arial, Helvetica, sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.pik-nl-bar.visible {
    transform: translateY(0);
}
.pik-nl-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 0 16px;
    position: relative;
}
.pik-nl-bar-text {
    margin-bottom: 10px;
}
.pik-nl-bar-text strong {
    font-size: 15px;
    display: block;
    margin-bottom: 2px;
}
.pik-nl-bar-text span {
    font-size: 12px;
    color: #ccc;
}
.pik-nl-close {
    position: absolute;
    top: -4px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.pik-nl-close:hover {
    color: #fff;
}

/* ═══ Footer section (nad stopką) ═══ */
.pik-nl-footer-section {
    background: #f0f0f0;
    padding: 24px 0;
    font-family: 'Fira Sans', Arial, Helvetica, sans-serif;
    border-top: 1px solid #e0e0e0;
}
.pik-nl-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.pik-nl-footer-text {
    margin-bottom: 12px;
}
.pik-nl-footer-text strong {
    font-size: 17px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 4px;
}
.pik-nl-footer-text span {
    font-size: 13px;
    color: #666;
}

/* ═══ Form (shared — mobile first) ═══ */
.pik-nl-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pik-nl-form input[type="text"],
.pik-nl-form input[type="email"] {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Fira Sans', Arial, Helvetica, sans-serif;
    font-size: 16px; /* 16px zapobiega zoom na iOS */
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
    -webkit-appearance: none;
}
.pik-nl-bar .pik-nl-form input[type="text"],
.pik-nl-bar .pik-nl-form input[type="email"] {
    border-color: #444;
    background: #2a2a2a;
    color: #fff;
}
.pik-nl-bar .pik-nl-form input::placeholder {
    color: #888;
}
.pik-nl-submit {
    background: var(--pik-nl-color, #f7a919);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Fira Sans', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    width: 100%;
    -webkit-appearance: none;
}
.pik-nl-submit:hover {
    background: var(--pik-nl-color, #f7a919);
    filter: brightness(0.85);
}
.pik-nl-submit:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Consents */
.pik-nl-consents {
    margin-top: 10px;
}
.pik-nl-consents label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 6px;
    cursor: pointer;
}
.pik-nl-bar .pik-nl-consents label {
    color: #bbb;
}
.pik-nl-footer-section .pik-nl-consents label {
    color: #666;
}
.pik-nl-consents input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.pik-nl-consents a {
    text-decoration: underline;
}
.pik-nl-bar .pik-nl-consents a {
    color: #ddd;
}
.pik-nl-footer-section .pik-nl-consents a {
    color: var(--pik-nl-color, #f7a919);
}

/* Messages (inline under form) */
.pik-nl-msg {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
}
.pik-nl-msg.success { color: #00a32a; }
.pik-nl-msg.error { color: #d63638; }
.pik-nl-bar .pik-nl-msg.success { color: #66cc66; }
.pik-nl-bar .pik-nl-msg.error { color: #ff6b6b; }

/* ═══ Modal popup (potwierdzenie, zapis, wypisanie) ═══ */
.pik-nl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pik-nl-modal-overlay.visible {
    opacity: 1;
}
.pik-nl-modal {
    background: #fff;
    border-radius: 14px;
    padding: 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    font-family: 'Fira Sans', Arial, Helvetica, sans-serif;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.pik-nl-modal-overlay.visible .pik-nl-modal {
    transform: scale(1);
}
.pik-nl-modal-icon {
    font-size: 52px;
    margin-bottom: 12px;
    line-height: 1;
}
.pik-nl-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.pik-nl-modal-msg {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin: 0 0 24px;
}
.pik-nl-modal-btn {
    background: var(--pik-nl-color, #f7a919);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-family: 'Fira Sans', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.pik-nl-modal-btn:hover {
    background: var(--pik-nl-color, #f7a919);
    filter: brightness(0.85);
}

/* ═══ Desktop (>=768px) ═══ */
@media (min-width: 768px) {
    .pik-nl-fields {
        flex-direction: row;
        align-items: center;
    }
    .pik-nl-form input[type="text"],
    .pik-nl-form input[type="email"] {
        width: 220px;
        font-size: 14px;
    }
    .pik-nl-submit {
        width: auto;
        font-size: 14px;
    }
    .pik-nl-bar-inner {
        padding: 0 20px;
    }
    .pik-nl-footer-inner {
        padding: 0 20px;
    }
    .pik-nl-bar-text strong {
        font-size: 16px;
    }
    .pik-nl-footer-text strong {
        font-size: 18px;
    }
}
