/**
 * WebsiteWerk - Elementor Pro Form Enhancer
 * Frontend Styles
 * 
 * @package WebsiteWerk Form Enhancer
 * @author Kristian Snaczke - WebsiteWerk
 * @link https://www.websitewerk.de
 * @version 1.0.0
 * 
 * CRITICAL: This CSS must NOT override Elementor's native layout system!
 * ONLY style plugin-specific elements with .wefoen- prefix!
 * DO NOT modify .elementor-form-fields-wrapper or .elementor-field-group without .wefoen- prefix!
 */

/* ==========================================
   CONDITIONAL LOGIC
   ========================================== */
.wefoen-conditional-field.wefoen-hidden,
.elementor-field-group.wefoen-hidden {
    display: none !important;
}

/* ==========================================
   RANGE SLIDER
   ========================================== */
.wefoen-range-wrapper {
    width: 100%;
    padding: 10px 0;
}

.wefoen-range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--fill-color, #6ec1e4) var(--fill-percent, 50%), var(--track-color, #e0e0e0) var(--fill-percent, 50%));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.wefoen-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fill-color, #6ec1e4);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 3px solid #fff;
}

.wefoen-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.wefoen-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fill-color, #6ec1e4);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wefoen-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.wefoen-range-current {
    font-weight: 600;
    font-size: 18px;
    color: var(--fill-color, #6ec1e4);
    background: rgba(110, 193, 228, 0.1);
    padding: 6px 16px;
    border-radius: 6px;
}

/* ==========================================
   RATING FIELD
   ========================================== */
.wefoen-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.wefoen-rating-icons {
    display: flex;
    gap: 4px;
}

.wefoen-rating-icon {
    font-size: var(--rating-size, 28px);
    color: var(--rating-color-inactive, #ddd);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
    line-height: 1;
}

.wefoen-rating-icon:hover,
.wefoen-rating-icon.wefoen-hover {
    transform: scale(1.2);
}

.wefoen-rating-icon.wefoen-active {
    color: var(--rating-color-active, #ffc107);
}

.wefoen-rating-display {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 45px;
}

/* ==========================================
   SIGNATURE FIELD
   ========================================== */
.wefoen-signature-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wefoen-signature-canvas-wrapper {
    position: relative;
}

.wefoen-signature-pad {
    cursor: crosshair;
    display: block;
    max-width: 100%;
}

.wefoen-signature-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.wefoen-signature-wrapper.has-signature .wefoen-signature-placeholder {
    opacity: 0;
}

.wefoen-signature-actions {
    display: flex;
    gap: 10px;
}

.wefoen-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #333;
}

.wefoen-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* ==========================================
   COUNTRY CODE TELEPHONE
   ========================================== */
.wefoen-country-tel-wrapper {
    width: 100%;
}

.wefoen-country-tel-wrapper .iti {
    width: 100%;
}

.wefoen-country-tel-wrapper .iti__flag-container {
    z-index: 10;
}

.wefoen-country-tel-wrapper .iti__country-list {
    max-height: 250px;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wefoen-country-tel-wrapper .iti__selected-flag {
    border-radius: 4px 0 0 4px;
}

.wefoen-tel-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* ==========================================
   CALCULATOR FIELD
   ========================================== */
.wefoen-calculator-wrapper {
    width: 100%;
}

.wefoen-calculator-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.wefoen-calc-result {
    font-weight: 700;
    font-size: 20px;
    color: #333;
}

.wefoen-calc-prefix,
.wefoen-calc-suffix {
    color: #666;
    font-weight: 500;
}

.wefoen-calc-style-prominent .wefoen-calculator-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 24px;
    border: none;
    border-radius: 10px;
}

.wefoen-calc-style-prominent .wefoen-calc-result {
    font-size: 32px;
    color: #fff;
}

.wefoen-calc-style-prominent .wefoen-calc-prefix,
.wefoen-calc-style-prominent .wefoen-calc-suffix {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
}

.wefoen-calc-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wefoen-calc-input-wrapper input {
    flex: 1;
}

/* ==========================================
   IMAGE SELECT (Radio/Checkbox)
   ========================================== */
.wefoen-image-select-wrapper {
    display: grid;
    grid-template-columns: repeat(var(--img-select-columns, 3), 1fr);
    gap: 15px;
    width: 100%;
}

.wefoen-image-select-option {
    cursor: pointer;
}

.wefoen-image-select-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wefoen-image-select-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: var(--img-select-radius, 8px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.wefoen-image-select-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.wefoen-image-select-input:checked + .wefoen-image-select-card {
    border-color: var(--img-select-active, #6ec1e4);
    background: rgba(110, 193, 228, 0.05);
    box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.2);
}

.wefoen-image-select-img {
    width: var(--img-select-size, 100px);
    height: var(--img-select-size, 100px);
    object-fit: cover;
    border-radius: calc(var(--img-select-radius, 8px) - 4px);
}

.wefoen-image-select-placeholder {
    width: var(--img-select-size, 100px);
    height: var(--img-select-size, 100px);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: calc(var(--img-select-radius, 8px) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wefoen-image-select-placeholder span {
    font-size: 36px;
    font-weight: 700;
    color: #bbb;
}

.wefoen-image-select-content {
    text-align: center;
    margin-top: 10px;
}

.wefoen-image-select-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wefoen-image-select-price {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.wefoen-image-select-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--img-select-active, #6ec1e4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.wefoen-image-select-input:checked + .wefoen-image-select-card .wefoen-image-select-check {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   INPUT MASKS
   ========================================== */
.wefoen-masked-input::placeholder {
    font-family: monospace;
    letter-spacing: 1px;
}

.wefoen-mask-valid {
    border-color: #28a745 !important;
}

.wefoen-mask-invalid {
    border-color: #dc3545 !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767px) {
    .wefoen-signature-pad {
        width: 100% !important;
        height: auto !important;
        min-height: 120px;
        aspect-ratio: 8/3;
    }
    
    .wefoen-rating-icon {
        font-size: calc(var(--rating-size, 28px) * 0.8);
    }
    
    .wefoen-image-select-wrapper {
        grid-template-columns: repeat(var(--img-select-columns-mobile, 2), 1fr);
        gap: 10px;
    }
    
    .wefoen-image-select-card {
        padding: 10px;
    }
    
    .wefoen-calc-style-prominent .wefoen-calc-result {
        font-size: 24px;
    }
}

/* ==========================================
   HIDDEN INPUT (for all custom fields)
   ========================================== */
.wefoen-image-select-hidden {
    display: none;
}

/* ==========================================
   SELECT2 / SEARCHABLE DROPDOWN
   ========================================== */
.wefoen-select2-wrapper {
    width: 100%;
}

.wefoen-select2-wrapper .select2-container {
    width: 100% !important;
}

/* Match Elementor standard field styling */
.wefoen-select2-wrapper .select2-container--default .select2-selection--single,
.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple {
    border: 1px solid #d5d8dc;
    border-radius: 0;
    min-height: 45px;
    padding: 0;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wefoen-select2-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.wefoen-select2-wrapper .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #d5d8dc;
    box-shadow: none;
    outline: none;
}

/* DO NOT override Select2's positioning! It handles it automatically when attached to body */

.wefoen-select2-wrapper .select2-container--default .select2-selection--single {
    height: 45px;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
    padding-left: 12px;
    padding-right: 30px;
    color: #495057;
    font-size: 14px;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 8px;
    top: 1px;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #495057 transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-top: -3px;
}

/* Multiple selection styling with checkboxes */
.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple {
    min-height: 45px;
    padding: 2px 8px;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    margin: 0;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f9fa;
    border: 1px solid #d5d8dc;
    border-radius: 0;
    color: #495057;
    padding: 4px 8px;
    margin: 4px 4px 4px 0;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #6c757d;
    margin-right: 0;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: #dc3545;
    color: #fff;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0;
}

/* Search field styling - make it visible and professional - ONLY for our fields */
.wefoen-select2-wrapper .select2-search--dropdown {
    padding: 8px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #d5d8dc;
}

.wefoen-select2-wrapper .select2-search--dropdown .select2-search__field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d5d8dc;
    border-radius: 0;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wefoen-select2-wrapper .select2-search--dropdown .select2-search__field:focus {
    border-color: #d5d8dc;
    box-shadow: none;
}

.wefoen-select2-wrapper .select2-search--dropdown .select2-search__field::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Wrapper must be position: relative for dropdown positioning */
.wefoen-select2-wrapper {
    position: relative;
}

/* Dropdown styling - positioned by JavaScript */
.wefoen-select2-wrapper .select2-dropdown {
    border: 1px solid #d5d8dc;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    transform: none !important;
}

.wefoen-select2-wrapper .select2-results {
    padding: 0;
}

.wefoen-select2-wrapper .select2-results__options {
    max-height: 300px;
    overflow-y: auto;
}

.wefoen-select2-wrapper .select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
    color: #495057;
    transition: background-color 0.15s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Checkbox styling for multiple select - positioned on the left */
.wefoen-select2-wrapper .select2-container--default .select2-results__option {
    padding-left: 40px;
}

.wefoen-select2-wrapper .select2-container--default .select2-results__option::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #d5d8dc;
    background-color: #fff;
    border-radius: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

/* Checked state checkbox - dark gray, not light blue */
.wefoen-select2-wrapper .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f8f9fa;
}

.wefoen-select2-wrapper .select2-container--default .select2-results__option[aria-selected="true"]::before {
    border-color: #495057;
    background-color: #495057;
}

.wefoen-select2-wrapper .select2-container--default .select2-results__option[aria-selected="true"]::after {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
}

/* Hover state - keep text readable, subtle background */
.wefoen-select2-wrapper .select2-container--default .select2-results__option--highlighted {
    background-color: #f0f0f0 !important;
    color: #495057 !important;
}

.wefoen-select2-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background-color: #f0f0f0 !important;
    color: #495057 !important;
}

.wefoen-select2-wrapper .select2-container--default .select2-results__option--highlighted::before {
    border-color: #495057;
}

.wefoen-select2-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected="true"]::before {
    border-color: #495057;
    background-color: #495057;
}

/* Text content - ensure it's positioned correctly */
.wefoen-select2-wrapper .select2-results__option .select2-results__option-text {
    margin-left: 0;
    flex: 1;
}

/* No results message */
.wefoen-select2-wrapper .select2-results__option--load-more,
.wefoen-select2-wrapper .select2-results__message {
    padding: 10px 12px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

/* Placeholder styling - vertically centered */
.wefoen-select2-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
    line-height: 45px;
}

/* Placeholder for multiple select */
.wefoen-select2-wrapper .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d;
    line-height: 41px;
    padding-left: 8px;
}

/* Clear button */
.wefoen-select2-wrapper .select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 25px;
    color: #6c757d;
    font-size: 18px;
    line-height: 43px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.wefoen-select2-wrapper .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545;
}

/* ==========================================
   DATE RESTRICT / ENHANCED DATE PICKER
   ========================================== */
.wefoen-date-restrict-wrapper {
    position: relative;
    width: 100%;
}

.wefoen-date-restrict {
    padding-right: 40px !important;
    cursor: pointer;
}

.wefoen-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    opacity: 0.6;
}

.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: none;
}

.flatpickr-day.selected {
    background: var(--e-global-color-primary, #6ec1e4) !important;
    border-color: var(--e-global-color-primary, #6ec1e4) !important;
}

.flatpickr-day:hover {
    background: rgba(110, 193, 228, 0.15);
}

/* ==========================================
   REPEATER FIELD
   ========================================== */
.wefoen-repeater-wrapper {
    width: 100%;
}

.wefoen-repeater-entries {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.wefoen-repeater-entry {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.wefoen-repeater-entry:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.wefoen-repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.wefoen-repeater-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wefoen-repeater-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    transition: transform 0.2s ease;
}

.wefoen-repeater-entry.collapsed .wefoen-repeater-toggle {
    transform: rotate(-90deg);
}

.wefoen-repeater-entry.collapsed .wefoen-repeater-content {
    display: none;
}

.wefoen-repeater-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wefoen-repeater-field {
    flex: 1;
    min-width: 0;
}

.wefoen-repeater-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.wefoen-repeater-field input,
.wefoen-repeater-field select,
.wefoen-repeater-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.wefoen-repeater-field input:focus,
.wefoen-repeater-field select:focus,
.wefoen-repeater-field textarea:focus {
    outline: none;
    border-color: var(--e-global-color-primary, #6ec1e4);
    box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.15);
}

.wefoen-repeater-remove {
    margin-top: 15px;
}

.wefoen-repeater-drag {
    position: absolute;
    top: 20px;
    right: 60px;
    cursor: grab;
    padding: 4px 8px;
    font-size: 16px;
    color: #999;
}

.wefoen-repeater-drag:active {
    cursor: grabbing;
}

.wefoen-repeater-add {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ccc;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.wefoen-repeater-add:hover {
    border-color: var(--e-global-color-primary, #6ec1e4);
    color: var(--e-global-color-primary, #6ec1e4);
    background: rgba(110, 193, 228, 0.05);
}

.wefoen-required {
    color: #dc3545;
    margin-left: 2px;
}

.wefoen-btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.wefoen-btn-danger:hover {
    background: #c82333;
}

.wefoen-btn-icon {
    background: none;
    border: none;
    padding: 4px;
}

/* ==========================================
   CLOUDFLARE TURNSTILE
   ========================================== */
.wefoen-turnstile-wrapper {
    padding: 10px 0;
}

/* ==========================================
   MULTI-STEP ENHANCED ANIMATIONS
   ========================================== */
.wefoen-multistep-enhanced {
    position: relative;
    overflow: hidden;
}

.wefoen-step-wrapper {
    will-change: transform, opacity;
}

.wefoen-transitioning .wefoen-step-wrapper {
    position: relative;
}

/* Progress Bar Styles */
.wefoen-progress {
    margin-bottom: 30px;
}

.wefoen-progress-bar-track {
    height: 8px;
    background: var(--wefoen-progress-bg, #e0e0e0);
    border-radius: 4px;
    overflow: hidden;
}

.wefoen-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wefoen-progress-color, var(--e-global-color-primary, #6ec1e4)), color-mix(in srgb, var(--wefoen-progress-color, var(--e-global-color-primary, #6ec1e4)) 70%, white));
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.wefoen-progress-percent,
.wefoen-progress-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Steps Progress */
.wefoen-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wefoen-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.wefoen-progress-step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wefoen-progress-bg, #e0e0e0);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.wefoen-progress-step.wefoen-progress-active .wefoen-progress-step-indicator,
.wefoen-progress-step.wefoen-progress-completed .wefoen-progress-step-indicator,
.wefoen-progress-step.active .wefoen-progress-step-number,
.wefoen-progress-step.completed .wefoen-progress-step-number {
    background: var(--wefoen-progress-color, var(--e-global-color-primary, #6ec1e4));
    color: #fff;
    box-shadow: 0 2px 10px rgba(110, 193, 228, 0.4);
}

.wefoen-progress-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wefoen-progress-bg, #e0e0e0);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.wefoen-progress-step.wefoen-progress-completed .wefoen-progress-step-indicator::after,
.wefoen-progress-step.completed .wefoen-progress-step-number::after {
    content: '✓';
    position: absolute;
    font-size: 16px;
}

.wefoen-progress-step.wefoen-progress-completed .wefoen-progress-step-indicator,
.wefoen-progress-step.completed .wefoen-progress-step-number {
    font-size: 0;
}

.wefoen-progress-step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    text-align: center;
    transition: color 0.3s ease;
}

.wefoen-progress-step.wefoen-progress-active .wefoen-progress-step-label,
.wefoen-progress-step.active .wefoen-progress-step-label {
    color: var(--wefoen-progress-color, var(--e-global-color-primary, #6ec1e4));
    font-weight: 600;
}

/* Line Connect Progress */
.wefoen-progress-line-connect .wefoen-progress-steps {
    position: relative;
}

.wefoen-progress-connector {
    flex: 1;
    height: 3px;
    background: var(--wefoen-progress-bg, #e0e0e0);
    margin: 17px -10px 0;
    transition: background 0.3s ease;
}

.wefoen-progress-connector.wefoen-progress-active,
.wefoen-progress-connector.active {
    background: var(--wefoen-progress-color, var(--e-global-color-primary, #6ec1e4));
}

/* Dots Progress */
.wefoen-progress-dots .wefoen-progress-step-indicator {
    width: 14px;
    height: 14px;
    font-size: 0;
}

.wefoen-progress-dots .wefoen-progress-step.wefoen-progress-completed .wefoen-progress-step-indicator::after {
    display: none;
}

/* Circle Progress */
.wefoen-progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.wefoen-progress-circle svg {
    transform: rotate(-90deg);
}

.wefoen-progress-circle-bg {
    fill: none;
    stroke: var(--wefoen-progress-bg, #e0e0e0);
    stroke-width: 8;
}

.wefoen-progress-circle-fill {
    fill: none;
    stroke: var(--e-global-color-primary, #6ec1e4);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wefoen-progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Validation Styles */
.wefoen-field-error {
    border-color: var(--wefoen-error-color, #dc3545) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.wefoen-error-message {
    color: var(--wefoen-error-color, #dc3545);
    font-size: 12px;
    margin-top: 4px;
}

/* Shake Animation */
@keyframes wefoen-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.wefoen-shake {
    animation: wefoen-shake 0.5s ease-in-out;
}

/* ==========================================
   TOGGLE / SWITCH FIELD
   ========================================== */
.wefoen-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.wefoen-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.wefoen-toggle-switch {
    position: relative;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.wefoen-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.wefoen-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.wefoen-toggle-field:checked + .wefoen-toggle-label .wefoen-toggle-slider {
    background-color: var(--toggle-color, #6ec1e4);
}

.wefoen-toggle-field:checked + .wefoen-toggle-label .wefoen-toggle-slider:before {
    transform: translateX(26px);
}

/* Toggle Styles */
[data-style="ios"] .wefoen-toggle-slider {
    border-radius: 28px;
    box-shadow: inset 0 0 0 2px #e0e0e0;
}

[data-style="material"] .wefoen-toggle-slider {
    border-radius: 2px;
}

[data-style="square"] .wefoen-toggle-slider {
    border-radius: 4px;
}

[data-style="square"] .wefoen-toggle-slider:before {
    border-radius: 2px;
}

.wefoen-toggle-text-off {
    display: inline;
    color: #666;
}

.wefoen-toggle-text-on {
    display: none;
    color: var(--toggle-color, #6ec1e4);
    font-weight: 600;
}

.wefoen-toggle-field:checked + .wefoen-toggle-label .wefoen-toggle-text-off {
    display: none;
}

.wefoen-toggle-field:checked + .wefoen-toggle-label .wefoen-toggle-text-on {
    display: inline;
}

/* ==========================================
   GDPR ACCEPTANCE FIELD
   ========================================== */
.wefoen-gdpr-wrapper {
    padding: 15px 0;
}

.wefoen-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.wefoen-gdpr-checkbox {
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.wefoen-gdpr-field {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wefoen-gdpr-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.wefoen-gdpr-field:checked + .wefoen-gdpr-checkmark {
    background: var(--e-global-color-primary, #6ec1e4);
    border-color: var(--e-global-color-primary, #6ec1e4);
}

.wefoen-gdpr-checkmark svg {
    width: 12px;
    height: 10px;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.wefoen-gdpr-field:checked + .wefoen-gdpr-checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.wefoen-gdpr-text {
    flex: 1;
    line-height: 1.6;
    color: #333;
}

.wefoen-gdpr-link {
    color: var(--e-global-color-primary, #6ec1e4);
    text-decoration: underline;
    font-weight: 500;
}

.wefoen-gdpr-link:hover {
    text-decoration: none;
}

[data-style="modern"] .wefoen-gdpr-checkmark {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-style="rounded"] .wefoen-gdpr-checkmark {
    border-radius: 50%;
}

[data-style="square"] .wefoen-gdpr-checkmark {
    border-radius: 0;
}

/* ==========================================
   WYSIWYG / RICH TEXT EDITOR
   ========================================== */
.wefoen-wysiwyg-wrapper {
    position: relative;
}

.wefoen-wysiwyg-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.wefoen-wysiwyg-editor:focus-within {
    border-color: var(--e-global-color-primary, #6ec1e4);
    box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.1);
}

.wefoen-wysiwyg-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.wefoen-wysiwyg-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.wefoen-wysiwyg-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.wefoen-wysiwyg-btn.active {
    background: var(--e-global-color-primary, #6ec1e4);
    color: #fff;
    border-color: var(--e-global-color-primary, #6ec1e4);
}

.wefoen-wysiwyg-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.wefoen-wysiwyg-counter .current {
    font-weight: 600;
    color: var(--e-global-color-primary, #6ec1e4);
}

.wefoen-wysiwyg-counter.over-limit .current {
    color: #dc3545;
}

/* ==========================================
   AUTOCOMPLETE FIELD
   ========================================== */
.wefoen-autocomplete-wrapper {
    position: relative;
}

.wefoen-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.wefoen-autocomplete-results.active {
    display: block;
}

.wefoen-autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.wefoen-autocomplete-item:hover,
.wefoen-autocomplete-item.selected {
    background: #f5f5f5;
}

.wefoen-autocomplete-item:last-child {
    border-bottom: none;
}

.wefoen-autocomplete-no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.wefoen-autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* ==========================================
   TIME PICKER
   ========================================== */
.wefoen-time-picker {
    cursor: pointer;
}

/* ==========================================
   COUNTRY & STATE FIELD
   ========================================== */
.wefoen-country-state-wrapper {
    display: grid;
    gap: 15px;
}

.wefoen-country-state-wrapper[data-searchable="1"] {
    grid-template-columns: 1fr 1fr;
}

.wefoen-cs-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wefoen-cs-field label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.wefoen-cs-field select {
    width: 100%;
}

.wefoen-state-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* ==========================================
   CHARACTER COUNTER
   ========================================== */
.wefoen-char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.wefoen-char-counter .current {
    font-weight: 600;
    color: var(--e-global-color-primary, #6ec1e4);
}

.wefoen-char-counter.warning .current {
    color: #ff9800;
}

.wefoen-char-counter.danger .current {
    color: #dc3545;
}

/* ==========================================
   PASSWORD STRENGTH METER
   ========================================== */
.wefoen-password-strength {
    margin-top: 8px;
}

.wefoen-strength-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.wefoen-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.wefoen-strength-fill.weak {
    width: 33%;
    background: #dc3545;
}

.wefoen-strength-fill.medium {
    width: 66%;
    background: #ff9800;
}

.wefoen-strength-fill.strong {
    width: 100%;
    background: #4caf50;
}

.wefoen-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.wefoen-strength-text.weak {
    color: #dc3545;
}

.wefoen-strength-text.medium {
    color: #ff9800;
}

.wefoen-strength-text.strong {
    color: #4caf50;
}

/* ==========================================
   HONEYPOT (Hidden)
   ========================================== */
.wefoen-honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================
   hCAPTCHA
   ========================================== */
.wefoen-hcaptcha-wrapper {
    margin: 15px 0;
}

.wefoen-hcaptcha-wrapper .h-captcha {
    display: inline-block;
}

.wefoen-hcaptcha-wrapper iframe {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==========================================
   FIELD TOOLTIPS
   ========================================== */
.wefoen-field-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.wefoen-tooltip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6ec1e4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.wefoen-tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.wefoen-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.wefoen-field-tooltip:hover .wefoen-tooltip-content {
    opacity: 1;
}

/* ==========================================
   PROGRESS BAR (Form Completion)
   ========================================== */
.wefoen-form-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.wefoen-form-progress-fill {
    height: 100%;
    background: var(--e-global-color-primary, #6ec1e4);
    transition: width 0.3s ease;
    width: 0%;
}

/* ==========================================
   RADIO & CHECKBOX CUSTOM STYLES
   ========================================== */
.wefoen-radio-custom,
.wefoen-checkbox-custom {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Material Design Style */
[data-style="material"] .wefoen-radio-custom + label,
[data-style="material"] .wefoen-checkbox-custom + label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
}

[data-style="material"] .wefoen-radio-custom + label::before,
[data-style="material"] .wefoen-checkbox-custom + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s ease;
}

[data-style="material"] .wefoen-checkbox-custom + label::before {
    border-radius: 4px;
}

[data-style="material"] .wefoen-radio-custom:checked + label::before,
[data-style="material"] .wefoen-checkbox-custom:checked + label::before {
    background-color: var(--e-global-color-primary, #6ec1e4);
    border-color: var(--e-global-color-primary, #6ec1e4);
}

[data-style="material"] .wefoen-checkbox-custom:checked + label::after {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* iOS Style */
[data-style="ios"] .wefoen-checkbox-custom + label::before {
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #e0e0e0;
}

/* Custom Style */
[data-style="custom"] .wefoen-radio-custom + label::before,
[data-style="custom"] .wefoen-checkbox-custom + label::before {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==========================================
   FLOATING LABELS
   ========================================== */
.wefoen-field-floating {
    position: relative;
}

.wefoen-field-floating label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.wefoen-field-floating input:focus + label,
.wefoen-field-floating input:not(:placeholder-shown) + label,
.wefoen-field-floating textarea:focus + label,
.wefoen-field-floating textarea:not(:placeholder-shown) + label,
.wefoen-field-floating select:focus + label,
.wefoen-field-floating select:not([value=""]) + label {
    top: -8px;
    font-size: 12px;
    color: var(--e-global-color-primary, #6ec1e4);
}

/* Inline Labels */
.wefoen-field-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wefoen-field-inline label {
    flex-shrink: 0;
    margin: 0;
    min-width: 150px;
}

.wefoen-field-inline input,
.wefoen-field-inline select,
.wefoen-field-inline textarea {
    flex: 1;
}

/* Hidden Labels */
.wefoen-field-hidden label {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================
   COLLAPSIBLE GROUPS
   ========================================== */
.wefoen-collapsible-group {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.wefoen-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f8f8;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.wefoen-collapsible-header:hover {
    background: #f0f0f0;
}

.wefoen-collapsible-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.wefoen-collapsible-icon {
    transition: transform 0.3s ease;
}

.wefoen-collapsible-group.open .wefoen-collapsible-icon {
    transform: rotate(180deg);
}

.wefoen-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wefoen-collapsible-group.open .wefoen-collapsible-content {
    max-height: 2000px;
    padding: 15px;
}

/* ==========================================
   SUMMARY MODAL
   ========================================== */
.wefoen-summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wefoen-summary-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.wefoen-summary-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wefoen-summary-overlay.active .wefoen-summary-modal {
    transform: scale(1);
}

.wefoen-summary-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wefoen-summary-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.wefoen-summary-body {
    padding: 20px;
}

.wefoen-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wefoen-summary-item:last-child {
    border-bottom: none;
}

.wefoen-summary-label {
    font-weight: 500;
    color: #666;
}

.wefoen-summary-value {
    color: #333;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.wefoen-summary-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.wefoen-summary-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wefoen-summary-btn-edit {
    background: #f0f0f0;
    color: #333;
}

.wefoen-summary-btn-edit:hover {
    background: #e0e0e0;
}

.wefoen-summary-btn-submit {
    background: var(--e-global-color-primary, #6ec1e4);
    color: #fff;
}

.wefoen-summary-btn-submit:hover {
    background: #5ab0d3;
}

/* ==========================================
   AUTO-SAVE INDICATOR
   ========================================== */
.wefoen-autosave-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

.wefoen-autosave-indicator.show {
    opacity: 1;
}

.wefoen-autosave-indicator.saving {
    background: #ff9800;
}

.wefoen-autosave-indicator.saved {
    background: #4caf50;
}

.wefoen-autosave-indicator.error {
    background: #dc3545;
}

/* ==========================================
   MULTI-COLUMN LAYOUT - DO NOT INTERFERE WITH ELEMENTOR
   ========================================== */
/* Elementor handles columns natively via .elementor-field-group width settings */
/* DO NOT add any CSS rules that affect .elementor-field-group without .wefoen- prefix! */
/* DO NOT set display, width, or flex properties on .elementor-form-fields-wrapper! */

/* Only utility classes for plugin-specific needs */
.elementor-field-group.wefoen-full-width {
    width: 100% !important;
    grid-column: 1 / -1;
}

/* ==========================================
   CALCULATOR RESULT DISPLAY
   ========================================== */
.wefoen-calculator-result {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    animation: wefoen-result-appear 0.4s ease;
}

@keyframes wefoen-result-appear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wefoen-calculator-result small {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
    font-weight: normal;
}

/* Calculator Templates Styling */
.wefoen-calculator-emi .wefoen-calculator-result {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.wefoen-calculator-bmi .wefoen-calculator-result {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wefoen-calculator-tax .wefoen-calculator-result {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wefoen-calculator-pricing .wefoen-calculator-result {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* ==========================================
   DRAG & DROP FILE UPLOAD
   ========================================== */
.wefoen-drag-drop-zone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.wefoen-drag-drop-zone:hover {
    border-color: #999;
    background: #f5f5f5;
}

.wefoen-drag-drop-zone.wefoen-drag-active {
    border-color: var(--e-global-color-primary, #6ec1e4);
    background: rgba(110, 193, 228, 0.1);
    transform: scale(1.02);
}

.wefoen-drag-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wefoen-drag-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.wefoen-drag-hint {
    font-size: 13px;
    color: #999;
    margin: 5px 0 0;
}

.wefoen-files-selected {
    text-align: left;
}

.wefoen-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 8px 0;
}

.wefoen-file-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wefoen-file-size {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.wefoen-change-files {
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--e-global-color-primary, #6ec1e4);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.wefoen-change-files:hover {
    background: #5ab0d3;
}

/* ==========================================
   MULTI-CONDITION INDICATOR
   ========================================== */
.wefoen-condition-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-left: 8px;
    text-transform: uppercase;
}

.wefoen-condition-badge.and {
    background: #e3f2fd;
    color: #1976d2;
}

.wefoen-condition-badge.or {
    background: #fff3e0;
    color: #f57c00;
}

/* ==========================================
   CONDITIONAL EMAIL INDICATOR
   ========================================== */
.wefoen-conditional-email-active {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-left: 8px;
    animation: wefoen-pulse 2s infinite;
}

@keyframes wefoen-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ==========================================
   RESPONSIVE ADDITIONS
   ========================================== */
@media (max-width: 767px) {
    .wefoen-repeater-fields {
        flex-direction: column;
    }
    
    .wefoen-repeater-field {
        width: 100% !important;
    }
    
    .wefoen-progress-step-label {
        font-size: 10px;
    }
    
    .wefoen-progress-step-indicator {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .wefoen-country-state-wrapper[data-searchable="1"] {
        grid-template-columns: 1fr;
    }
    
    .wefoen-toggle-text {
        font-size: 14px;
    }
    
    .wefoen-wysiwyg-toolbar {
        gap: 2px;
    }
    
    .wefoen-wysiwyg-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
}
