/**
 * Form Elementor Kit - Frontend Styles
 *
 * @package Form_Elementor_Kit
 */

/* Tooltip styling for disabled submit button */
.fek-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fek-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Validation Icons */
.fek-validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 0;
}

.fek-validation-icon.fek-visible {
    opacity: 1;
}

.fek-valid {
    color: #27ae60;
}

.fek-invalid {
    color: #e74c3c;
}

/* Progress Indicator */
.fek-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.fek-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form field tweaks when icons are present */
.elementor-field-group.fek-has-icon .elementor-field {
    padding-right: 35px !important;
}

/* Disabled button wrapper */
.elementor-field-type-submit.fek-is-disabled {
    cursor: not-allowed;
}

.fek-button-disabled {
    pointer-events: none !important;
}
