/* ============================================================
   CS GROWTH LAB — FORMS PREMIUM CSS v2.0
   Floating labels, glass inputs, validation states
   ============================================================ */

/* ── WPForms Global Dark Override ── */
.wpforms-form,
.wpforms-container {
  color: var(--csgl-white, #fff) !important;
}

/* Field containers — floating label setup */
.wpforms-field,
.wpforms-field-container,
.elementor-field-group {
  position: relative !important;
  margin-bottom: 20px !important;
}

/* Labels */
.wpforms-field label,
.wpforms-label,
.elementor-field-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.50) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  display: block !important;
}

/* Input/Textarea/Select base */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="number"],
.wpforms-field input[type="url"],
.wpforms-field input[type="password"],
.wpforms-field textarea,
.wpforms-field select,
.elementor-field input,
.elementor-field textarea,
.elementor-field select {
  width: 100% !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #fff !important;
  outline: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  caret-color: var(--csgl-blue, #3b82f6) !important;
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder,
.elementor-field input::placeholder,
.elementor-field textarea::placeholder {
  color: rgba(255,255,255,0.25) !important;
}

/* Focus state */
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus,
.elementor-field input:focus,
.elementor-field textarea:focus,
.elementor-field select:focus {
  border-color: rgba(96,165,250,0.50) !important;
  background: rgba(255,255,255,0.055) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12), 0 0 20px rgba(59,130,246,0.06) !important;
  outline: none !important;
}

/* Textarea */
.wpforms-field textarea,
.elementor-field textarea {
  min-height: 120px !important;
  resize: vertical !important;
  line-height: 1.65 !important;
}

/* Select dropdown */
.wpforms-field select,
.elementor-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  padding-right: 44px !important;
  cursor: pointer !important;
}
option {
  background: #111115 !important;
  color: #fff !important;
}

/* Error state */
.wpforms-field.wpforms-has-error input,
.wpforms-field.wpforms-has-error textarea,
.wpforms-field.wpforms-has-error select,
.csgl-field-error input,
.csgl-field-error textarea {
  border-color: rgba(239,68,68,0.50) !important;
  background: rgba(239,68,68,0.04) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important;
  animation: csgl-shake 0.4s ease !important;
}
@keyframes csgl-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.wpforms-field-error,
.wpforms-error,
.csgl-field-error-msg {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: rgba(239,68,68,0.80) !important;
  margin-top: 6px !important;
  display: block !important;
  letter-spacing: 0.02em !important;
}

/* Success state */
.wpforms-field.wpforms-field-valid input,
.csgl-field-success input {
  border-color: rgba(34,197,94,0.40) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.06) !important;
}

/* Submit button */
.wpforms-submit,
.wpforms-submit-container .wpforms-submit,
[type="submit"].wpforms-submit {
  width: 100% !important;
  padding: 15px 28px !important;
  background: var(--csgl-blue, #3b82f6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1) !important;
  position: relative !important;
  overflow: hidden !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.wpforms-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wpforms-submit:hover {
  background: #2563eb !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 36px rgba(59,130,246,0.35) !important;
}
.wpforms-submit:hover::before {
  opacity: 1;
}
.wpforms-submit:active {
  transform: translateY(0) !important;
}

/* Success message */
.wpforms-confirmation-container,
.wpforms-confirmation-container-full {
  background: rgba(34,197,94,0.06) !important;
  border: 1px solid rgba(34,197,94,0.20) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  text-align: center !important;
}

/* Elementor form fields */
.elementor-form .elementor-field-group {
  margin-bottom: 16px !important;
}
.elementor-form .elementor-field-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.50) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}
.elementor-form .elementor-button {
  background: var(--csgl-blue, #3b82f6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  padding: 15px 28px !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
}
.elementor-form .elementor-button:hover {
  background: #2563eb !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 36px rgba(59,130,246,0.35) !important;
}

/* Mobile: prevent zoom on iOS (min 16px for inputs) */
@media (max-width: 768px) {
  .wpforms-field input,
  .wpforms-field textarea,
  .wpforms-field select,
  .elementor-field input,
  .elementor-field textarea,
  .elementor-field select {
    font-size: 16px !important;
  }
}
