/* Contact form shortcode */

.pjm-contact-form {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
    border: 1px solid #e3e9e5;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 18px 44px rgba(22, 36, 29, 0.1);
}

.pjm-cf-head {
    margin-bottom: 22px;
}

.pjm-cf-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5f1;
    color: #1B5E4B;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.pjm-cf-head h3 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #16241D;
    font-weight: 800;
}

.pjm-cf-head p {
    margin: 0;
    color: #5f6f67;
    font-size: 14px;
    line-height: 1.65;
}

.pjm-cf-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pjm-cf-row .pjm-cf-group {
    flex: 1;
    min-width: 220px;
}

.pjm-cf-group {
    margin-bottom: 18px;
}

.pjm-cf-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #16241D;
    margin-bottom: 8px;
}

.pjm-cf-group label span {
    color: #c0392b;
}

.pjm-contact-form input,
.pjm-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #d8ded9;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #16241D;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.pjm-contact-form textarea {
    min-height: 168px;
    resize: vertical;
}

.pjm-contact-form input::placeholder,
.pjm-contact-form textarea::placeholder {
    color: #93a19a;
}

.pjm-contact-form input:focus,
.pjm-contact-form textarea:focus {
    outline: none;
    border-color: #1B5E4B;
    box-shadow: 0 0 0 4px rgba(27, 94, 75, .12);
}

.pjm-cf-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.65;
    color: #5f6f67;
    margin: 10px 0 22px;
}

.pjm-cf-consent input {
    width: auto;
    margin-top: 3px;
    transform: scale(1.08);
}

.pjm-cf-consent a {
    color: #1B5E4B;
    text-decoration: underline;
}

.pjm-cf-actions {
    display: flex;
    align-items: center;
}

.pjm-cf-submit {
    background: #1B5E4B;
    color: #fff;
    border: none;
    border-radius: 12px;
    min-height: 52px;
    padding: 14px 30px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(27, 94, 75, 0.22);
    transition: transform .15s, box-shadow .15s, background-color .15s;
}

.pjm-cf-submit:hover {
    background: #154A3B;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(27, 94, 75, 0.26);
}

.pjm-cf-submit:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.pjm-cf-msg {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
}

.pjm-cf-msg.ok { color: #15803d; }
.pjm-cf-msg.err { color: #b91c1c; }

/* Honeypot antyspamowy — niewidoczny dla użytkowników */
.pjm-cf-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .pjm-contact-form {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .pjm-cf-head h3 {
        font-size: 1.3rem;
    }

    .pjm-cf-row {
        flex-direction: column;
    }

    .pjm-cf-row .pjm-cf-group {
        min-width: 0;
    }

    .pjm-cf-submit {
        width: 100%;
    }
}
