/* ═══════════════════════════════════════════════════════════════
   gravity-wf.css — skórka Gravity Forms pod prototyp (sekcja 16.7).
   Selektory bazują na .gform_wrapper (działa dla starego .gravity-theme
   i nowego motywu „orbital"/framework z GF 2.7+). Enqueue PO css/theme.css.
   ═══════════════════════════════════════════════════════════════ */

/* Mocne nadpisania (GF 2.7+ „orbital" ma wysoką specyficzność własnych pól). */
.gform_wrapper .ginput_container input[type="text"],
.gform_wrapper .ginput_container input[type="email"],
.gform_wrapper .ginput_container input[type="tel"],
.gform_wrapper .ginput_container input[type="number"],
.gform_wrapper .ginput_container input[type="url"],
.gform_wrapper .ginput_container input[type="password"],
.gform_wrapper .ginput_container select,
.gform_wrapper .ginput_container textarea {
  width: 100% !important; border: 1px solid var(--line) !important; border-radius: 12px !important;
  padding: 15px 18px !important; font-size: 16px !important; background: var(--paper) !important; color: var(--ink) !important;
}
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button,
.gform_wrapper .gform_button { width: 100% !important; }

.gform_wrapper .gfield_label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px; display: block;
}
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="password"],
.gform_wrapper select,
.gform_wrapper textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px;
  font-family: inherit; font-size: 16px; background: var(--paper); color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.gform_wrapper textarea { min-height: 130px; }
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder { color: var(--ink-mute); opacity: .7; }
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
/* Odstępy między polami + czytelne radio/checkbox. */
.gform_wrapper .gform_fields { gap: 18px; }
.gform_wrapper .gfield { margin-top: 0; }
.gform_wrapper .gchoice { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.gform_wrapper .gchoice input[type="radio"],
.gform_wrapper .gchoice input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.gform_wrapper .gchoice label { font-size: 15px; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 500; margin: 0; }
/* Gwarantowany odstęp między kontrolką a etykietą (różne wersje markupu GF). */
.gform_wrapper input[type="radio"],
.gform_wrapper input[type="checkbox"] { margin-right: 10px; }
.gform_wrapper .gfield_radio label,
.gform_wrapper .gfield_checkbox label { padding-left: 2px; }

/* Pola wyszukiwania-typu pigułki */
.gform_wrapper .wf-pill input { border-radius: 999px; padding-left: 18px; }

/* Przycisk wysyłki → akcent (przebija domyślny niebieski orbital).
   Klasa .gform_button to aktualny przycisk GF; footer input/button dla starszych. */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button,
.gform_wrapper .gform_button {
  background: var(--accent) !important; color: #fff !important; border: none !important;
  border-radius: 12px !important; font-weight: 700; font-size: 16px; padding: 16px 28px;
  cursor: pointer; transition: background .2s; width: 100%;
}
.gform_wrapper .gform_footer { margin-top: 18px; }
.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button:hover,
.gform_wrapper .gform_button:hover { background: #E0531A !important; }

/* Walidacja */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea { border-color: #D14343; }
.gform_wrapper .validation_message { color: #D14343; font-size: 13px; }
/* Pole wymagane = pomarańczowa gwiazdka (natywny znacznik *, w kolorze akcentu). */
.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required_asterisk { color: var(--accent); }

/* Zgoda RODO (Consent) */
.gform_wrapper .gfield--type-consent .gfield_label { font-weight: 500; color: var(--ink-mute); }

/* ── Formularz na ciemnym tle: sekcja B2B „Powiedz nam, czego potrzebujesz" ──
   Etykiety/teksty jasne, znacznik „wymagane" w akcencie, inputy zostają białe. */
.wf-b2b-cta .gform_wrapper .gfield_label,
.wf-b2b-cta .gform_wrapper legend.gfield_label { color: rgba(255,255,255,.92); }
.wf-b2b-cta .gform_wrapper .gfield_required { color: var(--accent); }
.wf-b2b-cta .gform_wrapper .gfield_description,
.wf-b2b-cta .gform_wrapper .gform_required_legend { color: rgba(255,255,255,.6); }
.wf-b2b-cta .gform_wrapper .gfield--type-consent .gfield_label,
.wf-b2b-cta .gform_wrapper .gfield--type-consent label,
.wf-b2b-cta .gform_wrapper .ginput_container_consent label { color: rgba(255,255,255,.82); font-weight: 500; }
