/* GH CF7 Form – Basis-Styles
   Macht Contact Form 7 von Haus aus ordentlich; Feineinstellungen kommen
   node-scoped aus includes/frontend.css.php. */

.gh-cf7 .wpcf7 { margin: 0; }
.gh-cf7 .wpcf7-form-control-wrap { display: block; }

/* Felder */
.gh-cf7 .wpcf7-form input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=file]),
.gh-cf7 .wpcf7-form textarea,
.gh-cf7 .wpcf7-form select {
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gh-cf7 .wpcf7-form textarea { min-height: 140px; resize: vertical; }

.gh-cf7 .wpcf7-form input:focus,
.gh-cf7 .wpcf7-form textarea:focus,
.gh-cf7 .wpcf7-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Labels */
.gh-cf7 .wpcf7-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.gh-cf7 .wpcf7-form p { margin: 0 0 16px; }

/* Checkboxen / Radios inline halten */
.gh-cf7 .wpcf7-checkbox .wpcf7-list-item,
.gh-cf7 .wpcf7-radio .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 16px 8px 0;
}
.gh-cf7 .wpcf7-list-item input { width: auto; display: inline-block; }
.gh-cf7 .wpcf7-list-item label { display: inline; margin: 0; font-weight: 400; }

/* Acceptance / Zustimmungstext: 2 Spalten (Checkbox | Text), vertikal zentriert */
.gh-cf7 .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; }
.gh-cf7 .wpcf7-acceptance label {
	display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    column-gap: 10px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.gh-cf7 .wpcf7-acceptance input[type=checkbox] {
    width: auto;
    margin: 0;
}
.gh-cf7 .wpcf7-acceptance .wpcf7-list-item-label {
    display: block;
    font-size: .85em;
    line-height: 1.5;
}

/* Button */
.gh-cf7 .wpcf7-form .wpcf7-submit {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.gh-cf7 .wpcf7-form .wpcf7-submit:hover { opacity: .92; }
.gh-cf7 .wpcf7-spinner { margin: 0 0 0 10px; }

/* Validierung & Antwort */
.gh-cf7 .wpcf7-not-valid-tip { font-size: .85em; margin-top: 4px; }
.gh-cf7 .wpcf7-form .wpcf7-not-valid { border-color: #dc2626; }
.gh-cf7 .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .95em;
}

/* Builder-Hinweis */
.gh-cf7--notice {
    padding: 1rem;
    border: 1px dashed #c7ccd6;
    border-radius: 8px;
    color: #6b7280;
}
