/* WAPF Info Icon and Modal Styles */

/* Label Flexbox Layout */
.wapf-field-label.wapf-has-info-icon,
label.wapf-has-info-icon {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

/* Alternative selector for different structures */
.wapf-field-label:has(.wapf-field-info-icon),
label:has(.wapf-field-info-icon) {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

/* Info Icon Styles */
.wapf-field-info-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    cursor: pointer;
    background: #2196F3 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #fff;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

.wapf-field-info-icon:hover {
    background: #1976D2 !important;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.wapf-field-info-icon svg {
    display: block;
    transition: stroke 0.3s ease;
    stroke: #fff;
}

/* Info Popup/Modal Styles */
.wapf-info-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
}

.wapf-info-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.wapf-info-popup {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    padding: 35px 40px;
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wapf-info-popup-overlay.active .wapf-info-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.wapf-info-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}

.wapf-info-popup-close:hover {
    background: #e74c3c;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.wapf-info-popup-close:hover svg {
    stroke: #fff;
}

.wapf-info-popup-close svg {
    width: 22px;
    height: 22px;
    transition: stroke 0.3s ease;
    stroke: #666;
}

.wapf-info-popup-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.wapf-info-popup-content h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #222;
    font-weight: 600;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
}

.wapf-info-popup-content p {
    margin-bottom: 12px;
}

.wapf-info-popup-content ul,
.wapf-info-popup-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.wapf-info-popup-content strong {
    color: #222;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wapf-info-popup {
        padding: 25px 20px;
        width: 95%;
        max-width: none;
        border-radius: 10px;
    }
    
    .wapf-field-info-icon {
        width: 20px;
        height: 20px;
    }
    
    .wapf-info-popup-content {
        font-size: 14px;
    }
    
    .wapf-info-popup-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .wapf-info-popup-close {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
}

 