/* CRITICAL FIX: Override home-banner height and overflow constraints */
.home-banner {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

/* Override banner-content padding to give form enough space */
.home-banner .banner-content {
    padding-bottom: 50px !important;
}

/* Wrapper spacing - provides the main spacing for the form */
.newslatter-wraper {
    padding-bottom: 150px !important;
    min-height: auto;
    margin-bottom: 100px !important;
}

/* ==================== OPTIMIZED FORM DESIGN ==================== */

/* Form Container - Enhanced */
.signup-form-container {
    max-width: 580px;
    margin: 40px auto 80px auto;
    padding: 45px 50px 50px 50px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 3px solid #5BBFB4;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255,255,255,0.6);
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-form-container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255,255,255,0.7);
}

/* Pricing Badge - Enhanced */
.pricing-badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #5BBFB4 0%, #4AA9A0 100%);
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(91, 191, 180, 0.45);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.03); }
}

/* Form Header - Improved Hierarchy */
.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.form-header p {
    font-size: 17px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Trust Indicators - NEW */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 18px;
    background: #F8FFFE;
    border-radius: 12px;
    border: 1px solid #E0F3F1;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2D3E50;
    font-weight: 500;
}

.trust-item svg {
    flex-shrink: 0;
}

/* Form Groups - Enhanced Spacing */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #E74C3C;
    margin-left: 2px;
}

.optional-badge {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    background: #F0F0F0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Input Fields - Enhanced UX */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"] {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #FAFAFA;
    transition: all 0.25s ease;
    color: #333;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="url"]::placeholder {
    color: #9CA3AF;
    font-size: 15px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus {
    outline: none;
    border-color: #5BBFB4;
    background: white;
    box-shadow: 0 0 0 4px rgba(91, 191, 180, 0.1);
    transform: translateY(-1px);
}

/* Input Validation States - NEW */
.form-group input.valid {
    border-color: #10B981;
    background: #F0FDF4;
}

.form-group input.invalid {
    border-color: #EF4444;
    background: #FEF2F2;
}

/* Field Hints - NEW */
.field-hint {
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
    font-style: italic;
}

/* Industry Selection - Complete Redesign */
.industry-group {
    margin-bottom: 28px;
}

.industry-group label.main-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.industry-select-wrapper {
    position: relative;
}

.industry-dropdown {
    display: none; /* Hidden but functional for form submission */
}

.industry-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.industry-pill {
    padding: 14px 16px;
    background: #F8F9FA;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    user-select: none;
}

.industry-pill:hover {
    background: #EFF6F5;
    border-color: #5BBFB4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 191, 180, 0.15);
}

.industry-pill.selected {
    background: linear-gradient(135deg, #5BBFB4 0%, #4AA9A0 100%);
    border-color: #5BBFB4;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(91, 191, 180, 0.3);
}

.industry-pill span {
    display: block;
}

/* Submit Button - Conversion Optimized */
.submit-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 24px rgba(255, 107, 53, 0.35),
        0 0 0 0 rgba(255, 107, 53, 0);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(255, 107, 53, 0.45),
        0 0 0 4px rgba(255, 107, 53, 0.1);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Loading State */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Privacy Notice - NEW */
.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 13px;
    color: #6B7280;
    text-align: center;
}

.privacy-notice svg {
    flex-shrink: 0;
}

/* Success State - Enhanced */
.form-success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #065F46;
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid #10B981;
    text-align: center;
    animation: successSlideIn 0.5s ease;
}

.form-success svg {
    margin: 0 auto 20px;
    display: block;
    animation: successCheck 0.6s ease;
}

.form-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #065F46;
}

.form-success p {
    font-size: 16px;
    margin: 0;
    color: #047857;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successCheck {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Error State - Enhanced */
.form-error {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #991B1B;
    padding: 20px 24px;
    border-radius: 12px;
    border: 2px solid #EF4444;
    text-align: center;
    font-weight: 500;
}

.form-error p {
    margin: 0;
    font-size: 15px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .home-banner {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .home-banner .banner-content {
        padding-bottom: 50px !important;
    }

    .newslatter-wraper {
        padding-bottom: 120px !important;
        margin-bottom: 80px !important;
    }

    .signup-form-container {
        padding: 35px 30px 40px 30px;
        margin: 30px 20px 60px 20px;
        border-radius: 20px;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .form-header p {
        font-size: 15px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }

    .industry-pills {
        grid-template-columns: 1fr;
    }

    .pricing-badge {
        font-size: 13px;
        padding: 10px 28px;
        top: -20px;
    }

    .submit-btn {
        font-size: 17px;
        padding: 16px 28px;
    }
}

@media (max-width: 480px) {
    .home-banner {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .home-banner .banner-content {
        padding-bottom: 30px !important;
    }

    .newslatter-wraper {
        padding-bottom: 100px !important;
        margin-bottom: 60px !important;
    }

    .signup-form-container {
        padding: 30px 20px 35px 20px;
        margin: 20px 15px 50px 15px;
        border-radius: 18px;
    }

    .form-header h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .form-header p {
        font-size: 14px;
    }

    .trust-indicators {
        padding: 14px;
    }

    .trust-item {
        font-size: 12px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="url"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .industry-pill {
        padding: 12px 14px;
        font-size: 13px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 15px 24px;
    }

    .privacy-notice {
        font-size: 12px;
        padding: 10px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
.signup-form-container *:focus-visible {
    outline: 3px solid #5BBFB4;
    outline-offset: 2px;
}
