/* Custom Form Styling for LibaMove Carousel Form */

/* Fix duplicate heading - hide ALL plugin-generated duplicate headings completely */
.af2_question_heading_wrapper {
    display: none !important;
}
.af2_question_heading_wrapper.desktop,
.af2_question_heading_wrapper.af2_mobile {
    display: none !important;
}
.af2_question_heading_wrapper .af2_question_heading,
.af2_question_heading_wrapper .af2_question_description {
    display: none !important;
}

/* Hide form heading wrapper - questions are displayed in carousel items */
.af2_form_heading_wrapper {
    display: none !important;
}
.af2_form_heading_wrapper .af2_form_heading.desktop,
.af2_form_heading_wrapper .af2_form_heading.af2_mobile {
    display: none !important;
}

.af2_carousel_item {
    /* padding: 40px 30px !important; */
    /* min-height: 350px !important; */
    display: flex;
    align-items: flex-start !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

/* Ensure active items are visible */
.af2_carousel_item.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Increase height for large questions (radio step and contact step) */
.af2_carousel_item[data-step="3"],
.af2_carousel_item[data-step="4"],
.af2_carousel_item:has(.af2_answer_container),
.af2_carousel_item:has(.af2_question.af2_kontaktformular),
.af2_carousel_item:has(.af2_radio_wrapper),
.af2_carousel_item:has(.af2_answer) {
    min-height: 500px !important;
    padding: 10px 10px !important;
    height: auto !important;
}

/* Ensure carousel content expands for radio and contact steps */
.af2_carousel_item[data-step="3"] .af2_carousel_content,
.af2_carousel_item[data-step="4"] .af2_carousel_content,
.af2_carousel_item:has(.af2_answer_container) .af2_carousel_content {
    min-height: auto !important;
    height: auto !important;
}
.af2_carousel_content {
    width: 100% !important;
    /* max-width: 600px !important; */
    margin: 0 auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: auto !important;
    overflow: visible !important;
    height: auto !important;
}

/* Ensure all direct children of carousel content are visible */
.af2_carousel_content > * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific rules for subtitle and input wrapper within carousel content */
.af2_carousel_content .af2_question_subtitle,
.af2_carousel_content .af2_input_wrapper,
.af2_carousel_content .af2_question_heading {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Ensure input wrapper is visible */
.af2_input_wrapper {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: auto !important;
    height: auto !important;
}

/* Ensure all children of input wrapper are visible */
.af2_input_wrapper * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure input wrapper expands for radio buttons */
.af2_input_wrapper .af2_answer_container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.af2_question_heading {
    font-size: 32px !important;
    margin-bottom: 15px !important;
    color: #203e78 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.af2_question_subtitle {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
}

/* Ensure subtitle is visible even if parent has issues */
.af2_carousel_content .af2_question_subtitle,
.af2_carousel_item .af2_question_subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* New Clean Text Input Styling */
.funnel-text-input {
    width: 100% !important;
    padding: 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    display: block !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.funnel-text-input:focus {
    outline: none !important;
    border-color: #203e78 !important;
    box-shadow: 0 0 0 4px rgba(32, 62, 120, 0.15) !important;
    background-color: #fafbfc !important;
}

.funnel-text-input::placeholder {
    color: #999 !important;
    font-weight: 400 !important;
}

.funnel-text-input.funnel-error {
    border-color: #d32f2f !important;
    background-color: #fff5f5 !important;
}

/* Legacy support for existing inputs */
.af2_input,
.af2_textfeld_frage input[type="text"],
.af2_textfeld_frage input[type="email"],
.af2_textfeld_frage input[type="tel"],
.af2_textfeld_frage textarea,
.af2_text_type,
.af2_text_type_,
.af2_textbereich_frage {
    width: 100% !important;
    padding: 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
}

/* Ensure inputs are visible in all contexts */
.af2_carousel_content .af2_input,
.af2_carousel_item .af2_input,
.af2_input_wrapper .af2_input,
.af2_carousel_content input[type="text"],
.af2_carousel_content input[type="email"],
.af2_carousel_content input[type="tel"]{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
}


.af2_input:focus,
.af2_textfeld_frage input:focus,
.af2_textfeld_frage textarea:focus,
.af2_text_type:focus,
.af2_text_type_:focus {
    outline: none;
    border-color: #203e78;
    box-shadow: 0 0 0 4px rgba(32, 62, 120, 0.15);
    background-color: #fafbfc;
}

.af2_input.af2_error,
.af2_textfeld_frage input.af2_error,
.af2_textfeld_frage textarea.af2_error {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.af2_input::placeholder,
.af2_textfeld_frage input::placeholder,
.af2_textfeld_frage textarea::placeholder {
    color: #999 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
/* New Clean Radio Button Styling - All in a Row */
.funnel-radio-group {
    display: flex !important;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.funnel-radio-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    padding: 15px 18px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background-color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
}

.funnel-radio-option:hover {
    border-color: #203e78 !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 8px rgba(32, 62, 120, 0.1) !important;
}

.funnel-radio-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.funnel-radio-text {
    display: block !important;
    width: 100% !important;
}

.funnel-radio-option:has(.funnel-radio-input:checked) {
    border-color: #203e78 !important;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%) !important;
    box-shadow: 0 0 0 4px rgba(32, 62, 120, 0.15), 0 4px 12px rgba(32, 62, 120, 0.2) !important;
    font-weight: 600 !important;
    color: #203e78 !important;
}

.funnel-radio-option:has(.funnel-radio-input:checked) .funnel-radio-text {
    font-weight: 600 !important;
    color: #203e78 !important;
}

.funnel-radio-group.funnel-error {
    border: 2px solid #d32f2f !important;
    border-radius: 10px !important;
    padding: 2px !important;
}

.funnel-radio-group.funnel-error .funnel-radio-option {
    border-color: #d32f2f !important;
}
.af2_field_wrapper {
    margin-bottom: 25px !important;
    display: block !important;
    visibility: visible !important;
}
.af2_field_label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.af2_error {
    border-color: #d32f2f !important;
    background-color: #fff5f5 !important;
}

/* Hide duplicate buttons - show only one set */
.af2_form_bottombar .af2_form_foward_button.af2_mobile,
.af2_form_bottombar .af2_form_back_button.af2_mobile {
    display: none !important;
}
@media (max-width: 980px) {
    .af2_form_bottombar .af2_form_foward_button.desktop,
    .af2_form_bottombar .af2_form_back_button.desktop {
        display: none !important;
    }
    .af2_form_bottombar .af2_form_foward_button.af2_mobile,
    .af2_form_bottombar .af2_form_back_button.af2_mobile {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure progress bar is visible on mobile */
    .af2_form_progress_bar,
    .af2_form_progress {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Form Buttons Styling with Colors and Icons */
.af2_form_button {
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 140px !important;
}

.af2_form_foward_button:not(.af2_disabled) {
    background: linear-gradient(135deg, #203e78 0%, #2a4f9e 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(32, 62, 120, 0.3) !important;
}

.af2_form_foward_button:not(.af2_disabled):hover {
    background: linear-gradient(135deg, #152a5a 0%, #203e78 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(32, 62, 120, 0.4) !important;
}

.af2_form_foward_button:not(.af2_disabled) svg,
.af2_form_foward_button:not(.af2_disabled) i,
.af2_form_foward_button:not(.af2_disabled):after {
    color: #fff !important;
    font-size: 18px !important;
    display: inline-block !important;
}

/* Ensure button text and icon show together */
.af2_form_foward_button:not(.af2_disabled) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.af2_form_foward_button:not(.af2_disabled) svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
}

.af2_form_back_button:not(.af2_disabled) {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 2px solid #e0e0e0 !important;
}

.af2_form_back_button:not(.af2_disabled):hover {
    background-color: #e8e8e8 !important;
    border-color: #203e78 !important;
    color: #203e78 !important;
}

.af2_form_back_button:not(.af2_disabled) svg,
.af2_form_back_button:not(.af2_disabled) i {
    color: inherit !important;
    font-size: 18px !important;
}

/* Standardize SVG arrow styling for both buttons */
.af2_form_back_button svg,
.af2_form_foward_button svg {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    fill: currentColor !important;
}

/* Ensure buttons are visible on all steps */
.af2_form_foward_button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.af2_form_back_button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure buttons are visible on mobile */
@media (max-width: 980px) {
    .af2_form_foward_button,
    .af2_form_back_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .af2_form_foward_button.af2_mobile,
    .af2_form_back_button.af2_mobile {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Disabled buttons should still be visible but with reduced opacity */
.af2_form_button.af2_disabled {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Full width submit button on final step - positioned below checkbox */
.af2_form_foward_button.funnel-submit-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    /* margin-top: 20px !important; */
}

.af2_submit_button {
    background: linear-gradient(135deg, #203e78 0%, #2a4f9e 100%) !important;
    color: #fff !important;
    padding: 16px 40px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(32, 62, 120, 0.3) !important;
    transition: all 0.3s ease !important;
}

.af2_submit_button:hover {
    background: linear-gradient(135deg, #152a5a 0%, #203e78 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(32, 62, 120, 0.4) !important;
}

/* Progress Bar */
.af2_form_progress {
    background: linear-gradient(90deg, #203e78 0%, #2a4f9e 100%) !important;
    height: 5px !important;
    transition: width 0.5s ease !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 4px rgba(32, 62, 120, 0.2) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.af2_form_progress_bar {
    background-color: #e0e0e0 !important;
    border-radius: 3px !important;
    height: 5px !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* New Clean Contact Form Styling - Compact Redesign */
.funnel-contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
}

.funnel-text-field {
    width: 100% !important;
}

.funnel-text-field .funnel-text-input {
    margin-bottom: 0 !important;
}

.funnel-checkbox-field {
    width: 100% !important;
    margin-top: 10px !important;
}

.funnel-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    padding: 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background-color: #f8f9fa !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.funnel-checkbox-label:hover {
    border-color: #203e78 !important;
    background-color: #f0f4ff !important;
}

.funnel-checkbox-input {
    margin-right: 12px !important;
    margin-top: 3px !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #203e78 !important;
}

.funnel-checkbox-text {
    flex: 1 !important;
    color: #333 !important;
}

.funnel-checkbox-label:has(.funnel-checkbox-input:checked) {
    border-color: #203e78 !important;
    background-color: #f0f4ff !important;
}

.funnel-checkbox-field.funnel-error .funnel-checkbox-label {
    border-color: #d32f2f !important;
    background-color: #fff5f5 !important;
}

/* Submit button below checkbox - full width centered */
.af2_carousel_item[data-step="4"] .af2_input_wrapper {
    display: flex !important;
    flex-direction: column !important;
}

.af2_carousel_item[data-step="4"] .funnel-contact-form {
    margin-bottom: 0 !important;
}

.af2_carousel_item[data-step="4"] .funnel-checkbox-field {
    margin-bottom: 30px !important;
}

/* Final Contact Section Styling - Legacy Support */
.af2_question.af2_kontaktformular {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px 20px !important;
    margin-top: 15px !important;
    border: 2px solid #e0e0e0 !important;
    min-height: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure contact form fields are visible */
.af2_carousel_item[data-step="4"] .af2_field_wrapper,
.af2_carousel_item[data-step="4"] .af2_input_wrapper {
    min-height: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.af2_question.af2_kontaktformular .af2_question_heading {
    color: #203e78;
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.af2_question.af2_kontaktformular .af2_question_description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.af2_question.af2_kontaktformular .af2_textfeld_frage,
.af2_question.af2_kontaktformular .af2_text_type {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 16px 18px !important;
    margin-bottom: 15px !important;
    font-size: 15px !important;
}

.af2_question.af2_kontaktformular .af2_textfeld_frage:focus,
.af2_question.af2_kontaktformular .af2_text_type:focus {
    border-color: #203e78;
    box-shadow: 0 0 0 3px rgba(32, 62, 120, 0.1);
}

.af2_question.af2_kontaktformular .af2_question {
    margin-bottom: 15px;
}

.af2_question.af2_kontaktformular .af2_question_label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.af2_question_cf_text_type_icon {
    background: linear-gradient(135deg, #203e78 0%, #2a4f9e 100%) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    min-width: 50px !important;
}

.af2_question_cf_text_type_icon i {
    color: #fff !important;
    font-size: 18px !important;
}

/* Compact checkbox styling in contact form */
.af2_question.af2_kontaktformular .af2_question_cb_label {
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

/* Ensure radio and checkbox inputs are visible */
.af2_radio_label input[type="radio"],
.af2_checkbox_label input[type="checkbox"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Ensure all form elements maintain visibility */
.af2_carousel_item.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 768px) {
    .af2_carousel_item {
        padding: 35px 25px !important;
    }
    
    .af2_question_heading {
        font-size: 26px !important;
    }
    
    .af2_question_subtitle {
        font-size: 15px !important;
    }
    
    .funnel-radio-group {
        gap: 12px !important;
    }
    
    .funnel-radio-option {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    
    .af2_form_button {
        padding: 13px 28px !important;
        font-size: 15px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .af2_question_heading {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    .af2_question_subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }
    
    .af2_carousel_item {
        padding: 25px 15px !important;
        min-height: auto !important;
    }
    
    .af2_carousel_item[data-step="3"],
    .af2_carousel_item[data-step="4"] {
        min-height: auto !important;
        padding: 20px 15px !important;
    }
    
    .af2_carousel_content {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .af2_input_wrapper {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    /* Text inputs on mobile */
    .funnel-text-input,
    .af2_input,
    .af2_carousel_content input[type="text"],
    .af2_carousel_content input[type="email"],
    .af2_carousel_content input[type="tel"] {
        font-size: 16px !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Buttons on mobile */
    .af2_form_button {
        padding: 14px 20px !important;
        font-size: 15px !important;
        min-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .af2_form_foward_button,
    .af2_form_back_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .af2_form_foward_button.af2_mobile,
    .af2_form_back_button.af2_mobile {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .af2_form_foward_button.funnel-submit-fullwidth {
        width: 100% !important;
        margin-top: 15px !important;
    }
    
    /* Radio buttons stack on mobile */
    .funnel-radio-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .funnel-radio-option {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    
    /* Contact form on mobile */
    .funnel-contact-form {
        gap: 15px !important;
        width: 100% !important;
    }
    
    .funnel-text-field {
        width: 100% !important;
    }
    
    .funnel-checkbox-field {
        width: 100% !important;
        margin-top: 5px !important;
    }
    
    .funnel-checkbox-label {
        padding: 12px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .funnel-checkbox-input {
        width: 18px !important;
        height: 18px !important;
        margin-right: 10px !important;
    }
    
    /* Legacy support */
    .af2_answer_container {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    
    .af2_radio_wrapper {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .af2_answer {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    /* Compact contact form on mobile */
    .af2_question.af2_kontaktformular {
        padding: 20px 15px !important;
    }
    
    .af2_question.af2_kontaktformular .af2_question_heading {
        font-size: 18px !important;
    }
    
    /* Progress bar visibility on mobile */
    .af2_form_progress_bar,
    .af2_form_progress {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 5px !important;
    }
    
    /* Bottom bar buttons on mobile */
    .af2_form_bottombar {
        padding: 15px !important;
        gap: 10px !important;
        flex-direction: column !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .af2_form_bottombar .af2_form_foward_button,
    .af2_form_bottombar .af2_form_back_button {
        width: 100% !important;
        min-width: 100% !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .af2_question_heading {
        font-size: 20px !important;
    }
    
    .af2_question_subtitle {
        font-size: 12px !important;
    }
    
    .af2_carousel_item {
        padding: 20px 12px !important;
    }
    
    .funnel-text-input,
    .af2_input {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
    
    /* Ensure buttons are visible on small devices */
    .af2_form_button {
        padding: 12px 18px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .af2_form_foward_button,
    .af2_form_back_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .af2_form_foward_button.af2_mobile,
    .af2_form_back_button.af2_mobile {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure bottom bar is visible */
    .af2_form_bottombar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        padding: 12px !important;
        gap: 8px !important;
    }
    
    .af2_form_bottombar .af2_form_foward_button,
    .af2_form_bottombar .af2_form_back_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Progress bar visibility */
    .af2_form_progress_bar,
    .af2_form_progress {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .funnel-radio-option {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
    
    .funnel-checkbox-label {
        padding: 10px !important;
        font-size: 12px !important;
    }
}

