/* Floating Button */
#upf-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6F6BEF, #8C88F5);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    z-index: 9999;
    transition: all 0.3s ease;
}

#upf-button:hover {
    background: linear-gradient(135deg, #5A56D6, #6F6BEF);
    transform: translateY(-2px);
}

/* Popup Overlay */
#upf-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(111, 107, 239, 0.55);
    backdrop-filter: blur(4px);
    z-index: 10000;
    overflow-y: auto;
}

/* Popup Box */
.upf-content {
    background: #ffffff;
    max-width: 420px;
    width: calc(100% - 30px);
    margin: 6% auto;
    padding: 25px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: upfFadeIn 0.35s ease;
}

/* Animation */
@keyframes upfFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
#upf-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 24px;
    cursor: pointer;
    color: #6F6BEF;
    line-height: 1;
}

/* Inputs */
.upf-content input,
.upf-content select,
.upf-content textarea {
    width: 100%;
    padding: 11px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.upf-content input:focus,
.upf-content select:focus,
.upf-content textarea:focus {
    border-color: #6F6BEF;
    outline: none;
}

/* Submit Button */
.upf-content button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #6F6BEF, #8C88F5);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upf-content button:hover {
    background: linear-gradient(135deg, #5A56D6, #6F6BEF);
}

/* Success Message */
.upf-success {
    background: linear-gradient(135deg, #6F6BEF, #8C88F5);
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

/* Mobile Fix */
@media (max-width: 480px) {
    .upf-content {
        margin: 20% auto;
        padding: 20px;
    }
}