/* Hero Form Layout Fixes - Remove Fixed Heights and Enable Proper Expansion */

/* Remove Slick Slider fixed heights */
.hero-slider-one,
.hero-slider-one .slick-list,
.hero-slider-one .slick-track,
.single-hero-slider,
.hero-wrapper-one {
    height: auto !important;
    min-height: auto !important;
}

/* Ensure hero section can expand */
.hero-section {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Remove overflow restrictions from signup form */
.signup-wrapper {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

.pesco-contact-form,
#sign-up {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

#sign-up .row {
    overflow: visible !important;
}

/* Ensure form groups can expand */
.form-group {
    overflow: visible !important;
}

/* Password requirements smooth expansion */
#passwordRequirements {
    background: #f8f9fa;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    border-left: 3px solid #FF8C00;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

#passwordRequirements:not(.d-none) {
    max-height: 200px;
    opacity: 1;
    padding: 10px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#passwordRequirements div {
    margin: 3px 0;
    color: #666;
    font-size: 12px;
}

#passwordRequirements .fa-check-circle {
    color: #28a745;
}

#passwordRequirements .fa-circle-o {
    color: #999;
}

/* Password strength indicator */
#passwordStrength {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

#passwordStrength:not(.d-none) {
    max-height: 50px;
    opacity: 1;
    margin-top: 0.5rem;
}

#passwordStrengthText {
    display: block;
    margin-top: 5px;
    font-weight: 600;
}

.progress {
    background-color: #e9ecef;
    height: 5px;
}

/* Confirm password success indicator */
#confirmPasswordSuccess {
    color: #28a745;
    font-weight: 600;
}

/* Ensure proper z-index for form */
.signup-wrapper {
    position: relative;
    z-index: 1;
}

/* Loader positioning */
#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

/* Link styling in consent text */
#sign-up label a {
    color: cornflowerblue;
    text-decoration: underline;
}

/* Prevent section overlap */
.hero-section {
    margin-bottom: 0;
}

.animated-headline-area {
    position: relative;
    z-index: 0;
    margin-top: 0;
}

/* Smooth transitions for form expansion */
.form-group {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding-bottom: 30px;
    }
    
    .signup-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    #passwordRequirements {
        font-size: 11px;
    }
    
    #passwordRequirements:not(.d-none) {
        padding: 8px;
    }
}
