/*
 * Limex Partner-Formular (Contact Form 7)
 * @package Limex-Child
 */

/* ─── WRAPPER ────────────────────────────────────── */
.partner-form-wrap {
  max-width: 820px;
  margin: 0 auto;
}

/* ─── ROWS ───────────────────────────────────────── */
.pf-row {
  margin-bottom: 20px;
}

.pf-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* CF7 span-Wrapper auf block setzen damit grid funktioniert */
.partner-form-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ─── INPUTS ─────────────────────────────────────── */
.partner-form-wrap input[type="text"],
.partner-form-wrap input[type="email"],
.partner-form-wrap input[type="tel"],
.partner-form-wrap input[type="password"],
.partner-form-wrap textarea {
  width: 100%;
  border: 1.5px solid #0f1e2d;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
  color: #1a202c;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.partner-form-wrap input[type="text"]:focus,
.partner-form-wrap input[type="email"]:focus,
.partner-form-wrap input[type="tel"]:focus,
.partner-form-wrap input[type="password"]:focus,
.partner-form-wrap textarea:focus {
  border-color: #1a9e8f;
}

.partner-form-wrap textarea {
  resize: vertical;
  min-height: 200px;
}

/* ─── PASSWORT-HINWEIS ───────────────────────────── */
.pf-hint {
  font-size: 12px;
  color: #6b7280;
  margin: -12px 0 20px;
}

/* ─── FILE UPLOAD ────────────────────────────────── */
/* Input per clip unsichtbar aber für das Label noch anklickbar */
.pf-upload-row .wpcf7-form-control-wrap,
.pf-upload-row input[type="file"] {
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  pointer-events: none;
}

/* Das sichtbare Label ist der eigentliche Button */
.pf-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f1e2d;
  color: #fff;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.pf-upload-label:hover {
  background: #1F375A;
}

.pf-filename {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  min-height: 18px;
}

/* ─── CHECKBOXEN ─────────────────────────────────── */
.pf-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

/* CF7 acceptance */
.pf-checks .wpcf7-form-control-wrap,
.pf-checks .wpcf7-acceptance {
  display: block;
}
.pf-checks .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.pf-checks .wpcf7-list-item-label {
  font-size: 14px;
  color: #1a202c;
}
.pf-checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a9e8f;
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── SUBMIT-BUTTON ──────────────────────────────── */
.partner-form-wrap input[type="submit"],
.partner-form-wrap .wpcf7-submit {
  background: #1a9e8f !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  box-shadow: none !important;
}
.partner-form-wrap input[type="submit"]:hover,
.partner-form-wrap .wpcf7-submit:hover {
  background: #148070 !important;
}

/* ─── VALIDATION ─────────────────────────────────── */
.partner-form-wrap .wpcf7-not-valid {
  border-color: #e53e3e !important;
}
.partner-form-wrap .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e53e3e;
  display: block;
  margin-top: 4px;
}
.partner-form-wrap .wpcf7-response-output {
  border-radius: 4px;
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 14px;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 640px) {
  .pf-2col {
    grid-template-columns: 1fr;
  }
}
