/**
 * Property Sync Pro — Kontakt-Formular-Styles.
 *
 * Bewusst eigenständig gehalten (nicht in lead-form.css gemerged), weil das
 * Kontakt-Form ein eigenständiges Widget ist mit eigenem Layout (z. B.
 * Suchprofil-Block). Klassen-Prefix `omcpro-cf-` damit's nicht mit dem
 * Lead-Form (`omcpro-lf-`) kollidiert.
 */

.omcpro-cf {
  font-family: inherit;
  color: #1f2937;
  max-width: 720px;
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.omcpro-cf-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f172a;
}

.omcpro-cf-lead {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 20px;
}

.omcpro-cf-form {
  display: block;
}

.omcpro-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.omcpro-cf-row.single {
  grid-template-columns: 1fr;
}

.omcpro-cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.omcpro-cf-field label {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.omcpro-cf-field label.req::after {
  content: " *";
  color: #dc2626;
}

.omcpro-cf-field input,
.omcpro-cf-field select,
.omcpro-cf-field textarea {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.omcpro-cf-field input:focus,
.omcpro-cf-field select:focus,
.omcpro-cf-field textarea:focus {
  border-color: var(--brand, #0e2e49);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #0e2e49) 15%, transparent);
}

.omcpro-cf-field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}

.omcpro-cf-field .err {
  font-size: 12px;
  color: #dc2626;
}

.omcpro-cf-section {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.omcpro-cf-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.omcpro-cf-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.omcpro-cf-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.omcpro-cf-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.omcpro-cf-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--brand, #0e2e49);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.omcpro-cf-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.omcpro-cf-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.omcpro-cf-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.omcpro-cf-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.omcpro-cf-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.omcpro-cf-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

@media (max-width: 480px) {
  .omcpro-cf-row {
    grid-template-columns: 1fr;
  }
}
