/* General */
.fk-container.contact .fk-row {
    gap: 0;
}

/* Wrapper */
.fk-contact-form .fp-form {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 20px;
}

/* Standard Field */
.fk-contact-form .field {
    margin-bottom:15px !important;
}

/* 🔲 2-Spalten Layout */
.fk-contact-form .first-row,
.fk-contact-form .last-row {
    width: calc(50% - 10px);
}

/* 🔳 Full Width */
.fk-contact-form .single-field {
    width: 100%;
}

/* Standard Field */
.fk-contact-form .text-field {
    margin-top:15px;
}

/* 🧾 Inputs + Textarea */
.fk-contact-form input,
.fk-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--fk-border-light);
    background: var(--fk-surface);
    font-size: 16px;
    border-radius: 3px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.fk-contact-form ::-webkit-input-placeholder {
  color: var(--fk-text-muted);
}
.fk-contact-form ::-moz-placeholder {
  color: var(--fk-text-muted);
}
.fk-contact-form :-ms-input-placeholder {
  color: var(--fk-text-muted);
}
.fk-contact-form :-moz-placeholder {
  color: var(--fk-text-muted);
}

.fk-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Checkbox Gruppen Layout */
.fk-checkbox-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Label links */
.fk-checkbox-group .group-label {
    min-width: 450px;
    font-weight: 500;
  color: var(--fk-text);
}

/* Checkboxen rechts */
.fk-checkbox-group .fk-checkbox {
    margin-right: 10px;
}

/* Fehlerzustand */
.fk-contact-form input.error,
.fk-contact-form textarea.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Erfolg */
.fk-contact-form input.valid,
.fk-contact-form textarea.valid {
    border-color: #2ecc71;
}

/* Fehlermeldung */
.fk-error-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

/* Statusbox */
.fk-form-status {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 4px;
    display: none;
}

/* Erfolg */
.fk-form-status.success {
    display: block;
    background: #e9f9ef;
    color: #1e7e34;
    border: 1px solid #b7ebc6;
}

/* Fehler */
.fk-form-status.error {
    display: block;
    background: #fff3f3;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

/* Button Loader */
.fk-contact-form button {
    position: relative;
}

.fk-contact-form .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: fk-spin 0.7s linear infinite;
    margin-left: 10px;
}

.fk-contact-form.loading .btn-loader {
    display: inline-block;
}

.fk-contact-form.loading .btn-text {
    opacity: 0.6;
}

/* Spinner Animation */
@keyframes fk-spin {
    to { transform: rotate(360deg); }
}

/* Wrapper */
.fk-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    font-size: 14px;
    user-select: none;
}

/* Native Checkbox verstecken */
.fk-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Box */
.fk-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #f3f3f3;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

/* Hover */
.fk-checkbox:hover .checkmark {
    border-color: var(--fk-primary-color);
}

/* Checked */
.fk-checkbox input:checked + .checkmark {
    background: var(--fk-primary-color);
    border-color: var(--fk-primary-color);
}

/* Haken */
.fk-checkbox .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

/* Haken sichtbar */
.fk-checkbox input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* Fehlerzustand */
.fk-checkbox.error .checkmark {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Fokus */
.fk-contact-form input:focus,
.fk-contact-form textarea:focus {
    outline: none;
    border-color: var(--fk-primary-color);
    background: #fff;
}

/* 🔐 CAPTCHA WRAPPER */
.fk-contact-form .field.single-field:has(img) {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* CAPTCHA Bild */
.fk-contact-form .field.single-field img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

/* CAPTCHA Input */
.fk-contact-form .field.single-field input[name="captcha_system"] {
    flex: 1;
}

.fk-captcha-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fk-captcha-row img {
    width: 200px;
    flex-shrink: 0;
}

.fk-captcha-row input {
    flex: 1;
}

/* 📋 Checkbox */
.fk-contact-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* 🚀 Button */
.fk-contact-form .submit {
    width: 100%;
}

.fk-contact-form button {
    width: 100%;
    padding: 16px;
    background: var(--fk-primary);
    color: #fff;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fk-contact-form button:hover {
    background: var(--fk-primary-hover);
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .fk-contact-form .first-row,
    .fk-contact-form .last-row {
        width: 100%;
    }

    .fk-contact-form .field.single-field:has(img) {
        flex-direction: column;
        align-items: flex-start;
    }

    .fk-contact-form .field.single-field img {
        width: 100%;
        max-width: 220px;
    }
}