/**
 * OneWayBIT Forms Styles
 * Version: 1.1.0
 * Last Updated: January 6, 2026
 * 
 * v1.1.0: Added slide-down animation for success message
 * v1.0.1: Aggressive height fix for form reset cutoff
 */

/* ==========================================================================
   FLUENT FORMS - Container Height Fix
   Prevents form from being cut off after submit/reset
   ========================================================================== */

.ff-form-container,
.fluentform,
.frm-fluent-form,
.ff_conv_app,
.ff-form-wrapper {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.ff-form-container form,
.fluentform form {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.ff-form-container > *,
.fluentform > * {
  overflow: visible !important;
}

/* ==========================================================================
   SUCCESS MESSAGE - Slide Animation
   Smooth slide-down effect when success message appears
   ========================================================================== */

.ff-message-success {
  margin-top: 1rem;
  overflow: hidden !important;
  animation: ffSlideDown 0.4s ease-out forwards;
}

@keyframes ffSlideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
  }
  to {
    opacity: 1;
    max-height: 150px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   FORM RESET - Ensure form fades back in smoothly after reset
   ========================================================================== */

.ff-form-container form {
  transition: opacity 0.3s ease;
}
