/* ============================================
   KONTAKT FORM – jasne stylowanie
   Dedykowane klasy: .kf-* (kontakt form)
   Nie nadpisuje footer-input ani nic globalnego
   ============================================ */

/* Label */
.kf-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.kf-label-muted {
    font-weight: 400;
    color: #9ca3af;
}

/* Input / Textarea */
.kf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #111;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kf-input::placeholder {
    color: #b0b7c3;
}

.kf-input:focus {
    border-color: #d11919;
    box-shadow: 0 0 0 3px rgba(209, 25, 25, 0.08);
}

.kf-input.kf-error {
    border-color: #d11919;
    box-shadow: 0 0 0 3px rgba(209, 25, 25, 0.08);
}

.kf-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Checkbox */
.kf-checkbox-wrap {
    padding-top: 4px;
}

.kf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}

.kf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.kf-checkbox-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    position: relative;
    margin-top: 1px;
    transition: border-color 0.2s, background 0.2s;
}

.kf-checkbox-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.kf-checkbox-label input[type="checkbox"]:checked + .kf-checkbox-box {
    background: #d11919;
    border-color: #d11919;
}

.kf-checkbox-label input[type="checkbox"]:checked + .kf-checkbox-box .kf-checkbox-tick {
    transform: translate(-50%, -50%) scale(1);
}

.kf-checkbox-box.kf-error {
    border-color: #d11919;
}

.kf-checkbox-text a {
    color: #d11919;
    text-decoration: underline;
}

.kf-checkbox-text a:hover {
    color: #b01616;
}

/* Error hint */
.kf-hint-error {
    display: none;
    font-size: 11.5px;
    color: #d11919;
    margin-top: 4px;
}

.kf-hint-error.kf-visible {
    display: block;
}

/* Submit row */
.kf-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Submit button */
.kf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #d11919;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.kf-submit-btn:hover {
    background: #b01616;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(209, 25, 25, 0.22);
}

.kf-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.kf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status messages */
.kf-status {
    font-size: 13px;
    line-height: 1.45;
}

.kf-status--success {
    color: #15803d;
}

.kf-status--error {
    color: #d11919;
}

/* Divider pod formularzem */
.kf-divider {
    border-color: #f0f0f0;
}

/* Alternatywny telefon CTA */
.kf-phone-row {
    color: #555;
}

.kf-phone-link {
    color: #111;
    font-weight: 700;
    transition: color 0.2s;
}

.kf-phone-link:hover {
    color: #d11919;
}

/* Kompatybilność z footer-formularz-kontaktowy.js:
   JS dodaje klasy footer-status-success / footer-status-error na #footerStatusMsg
   oraz footer-input-error na inputy */
#footerStatusMsg.footer-status-success {
    color: #15803d;
}

#footerStatusMsg.footer-status-error {
    color: #d11919;
}

#footerContactForm .footer-input-error {
    border-color: #d11919;
    box-shadow: 0 0 0 3px rgba(209, 25, 25, 0.08);
}

    .kf-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kf-submit-btn {
        justify-content: center;
    }

    .kf-status {
        text-align: center;
    }
}
