/* Wygląd dopasowany do strony Kontakt (Astra Child + Spectra). Style są odizolowane. */
.psk-contact-form {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(28px, 4.5vw, 56px);
    background: #011502;
    border-radius: 32px;
    color: #fff;
    font-family: inherit;
}
.psk-contact-form *,
.psk-contact-form *::before,
.psk-contact-form *::after { box-sizing: border-box; }
.psk-contact-form .psk-contact-form__heading {
    color: #fff;
    font-size: clamp(26px, 2.6vw, 32px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 12px;
    padding: 0;
}
.psk-contact-form__form { display: flex; flex-direction: column; gap: 14px; }
.psk-contact-form__field { width: 100%; margin: 0; }
.psk-contact-form .psk-contact-form__field input,
.psk-contact-form .psk-contact-form__field textarea,
.psk-contact-form .psk-contact-form__fake-field {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 17px 18px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    box-shadow: none;
}
.psk-contact-form .psk-contact-form__field input { min-height: 56px; height: auto; }
.psk-contact-form .psk-contact-form__field textarea { min-height: 165px; resize: vertical; }
.psk-contact-form .psk-contact-form__field input::placeholder,
.psk-contact-form .psk-contact-form__field textarea::placeholder { color: #111; opacity: 1; }
.psk-contact-form .psk-contact-form__field input:focus,
.psk-contact-form .psk-contact-form__field textarea:focus {
    outline: 2px solid #77bc54;
    outline-offset: 2px;
    border-color: #77bc54;
}
.psk-contact-form .psk-contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
}
.psk-contact-form .psk-contact-form__consent input[type="checkbox"] {
    flex: 0 0 auto;
    appearance: auto;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 4px 0 0;
    padding: 0;
    accent-color: #377a00;
    cursor: pointer;
}
.psk-contact-form .psk-contact-form__consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.psk-contact-form .psk-contact-form__consent a:hover { color: #d3f2c2; }
.psk-contact-form__captcha-area { margin-top: 6px; max-width: 100%; overflow: visible; }
.psk-contact-form__captcha { min-height: 78px; }
.psk-contact-form .psk-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    min-height: 55px;
    margin: 5px 0 0;
    padding: 15px 32px;
    border: 0;
    border-radius: 999px;
    background: #377a00;
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.psk-contact-form .psk-contact-form__submit:hover { background: #458f0c; color: #fff; transform: translateY(-1px); }
.psk-contact-form .psk-contact-form__submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.psk-contact-form .psk-contact-form__submit:disabled { opacity: .65; cursor: wait; transform: none; }
.psk-contact-form__notice {
    padding: 12px 16px;
    margin: 0 0 18px;
    border-radius: 6px;
    background: #fff1f0;
    color: #7d1e1a;
    font-size: 15px;
}
.psk-contact-form__notice.is-success { background: #e5f5e2; color: #175421; }
.psk-contact-form__notice[hidden] { display: none !important; }
.psk-contact-form__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.psk-form-config-warning, .psk-form-unavailable { padding: 16px; background: #fff6d7; color: #342c10; border: 1px solid #eccd68; }
.psk-contact-form--editor { pointer-events: none; }
.psk-contact-form--editor .psk-contact-form__fake-field { color: #111; }
.psk-contact-form--editor .psk-contact-form__fake-message { min-height: 145px; }
.psk-contact-form--editor .psk-contact-form__consent { margin: 16px 0; }
.psk-contact-form--editor .psk-contact-form__fake-checkbox { flex: 0 0 18px; height: 18px; margin-top: 4px; background: #fff; border: 1px solid #aaa; border-radius: 3px; }
.psk-contact-form--editor .psk-contact-form__fake-captcha { background: #fafafa; border: 1px solid #ccc; color: #333; width: 302px; max-width: 100%; padding: 20px 12px; }
.psk-contact-form--editor .psk-contact-form__editor-note { display: block; color: #e5e5e5; margin-top: 14px; font-size: 13px; }
@media (max-width: 600px) {
    .psk-contact-form { padding: 26px 20px; border-radius: 24px; }
    .psk-contact-form__form { gap: 12px; }
    .psk-contact-form .psk-contact-form__heading { font-size: 26px; }
    .psk-contact-form .psk-contact-form__field input,
    .psk-contact-form .psk-contact-form__field textarea { font-size: 16px; padding: 14px; }
    .psk-contact-form .psk-contact-form__consent { font-size: 14px; }
    .psk-contact-form .psk-contact-form__submit { width: auto; min-height: 50px; padding: 13px 23px; font-size: 15px; }
}
@media (max-width: 355px) {
    .psk-contact-form { padding-left: 12px; padding-right: 12px; }
    .psk-contact-form__captcha-area { transform: scale(.86); transform-origin: left top; margin-bottom: -10px; }
}
