/**
 * CF7 Overrides — Smile Bydgoszcz
 * Formularz wygląda identycznie jak .form-card z motywu:
 * gradient fuchsia do białego, białe inputy, ciemny tekst
 */

/* ── Ukryj domyślny wrapper CF7 ── */
.wpcf7 {
  margin: 0;
  padding: 0;
}
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Pola tekstowe, tel, email ── */
.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 12px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(214,0,110,0.22) !important;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  color: #0f0c0a !important;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(0,0,0,0.38) !important;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  background: #fff !important;
  border-color: #d6006e !important;
  outline: none;
  box-shadow: none;
}

/* ── Textarea ── */
.wpcf7 textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Checkbox RODO ── */
.wpcf7-checkbox,
.wpcf7-acceptance {
  display: block;
  margin-bottom: 14px;
}
.wpcf7 .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.wpcf7 .wpcf7-list-item-label {
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  line-height: 1.55;
  cursor: pointer;
}
.wpcf7 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #d6006e;
  cursor: pointer;
  margin-top: 1px;
}

/* ── Przycisk submit ── */
.wpcf7 input[type="submit"] {
  width: 100%;
  background: #d6006e;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  margin-top: 8px;
  box-shadow: 0 4px 24px rgba(214,0,110,0.4);
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="submit"]:hover {
  background: #c0003e;
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 8px 40px rgba(214,0,110,0.5);
}
.wpcf7 input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Komunikaty walidacji ── */
.wpcf7-not-valid-tip {
  color: #d6006e;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}
.wpcf7-response-output {
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
  border: none !important;
}
.wpcf7-mail-sent-ok {
  background: rgba(45,155,132,0.12);
  color: #2d9b84;
  font-weight: 600;
}
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: rgba(214,0,110,0.08);
  color: #d6006e;
  font-weight: 600;
}
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: rgba(245,200,0,0.12);
  color: #7a6400;
  font-weight: 600;
}

/* ── Spinner ładowania ── */
.wpcf7 .ajax-loader {
  display: none;
}
